Page MenuHomeSoftware Heritage

Remove uses of valid domains from test data
Closed, MigratedEdits Locked

Description

And use one of the domains defined in RFC 6761 (example.org, example.com, example.net, and example; or one of their subdomains)

(Somewhat) exhaustive list of occurences to replace as of today:

swh-auth/swh/auth/tests/django/test_models.py:        email="foo@bar.org",
swh-auth/swh/auth/tests/test_keycloak.py:            "server_url": "https://auth.swh.org/SWHTest",
swh-deposit/swh/deposit/tests/api/test_collection_post_atom.py:    "url", ["https://gitlab.org/user/repo", "https://whatever.else/repo",]
swh-deposit/swh/deposit/tests/api/test_collection_post_atom.py:    url = "https://gitlab.org/user/repo"
swh-deposit/swh/deposit/tests/cli/test_admin.py:            "user@org.org",
swh-deposit/swh/deposit/tests/cli/test_admin.py:            "http://some-provider.org",
swh-deposit/swh/deposit/tests/cli/test_admin.py:    assert user.provider_url == "http://some-provider.org"
swh-deposit/swh/deposit/tests/cli/test_admin.py:    assert user.email == "user@org.org"
swh-deposit/swh/deposit/tests/cli/test_client.py:    api_call = BaseDepositClient(url="https://somewhere.org/")
swh-deposit/swh/deposit/tests/cli/test_client.py:    api_call = ServiceDocumentDepositClient(url="https://somewhere.org/")
swh-deposit/swh/deposit/tests/conftest.py:KEYCLOAK_SERVER_URL = "https://auth.swh.org/SWHTest"
swh-deposit/swh/deposit/tests/loader/test_client.py:    "url": "https://nowhere.org/",
swh-deposit/swh/deposit/tests/loader/test_client.py:        "https://nowhere.org/update/status",
swh-deposit/swh/deposit/tests/loader/test_client.py:        "https://nowhere.org/update/status/fail",
swh-indexer/swh/indexer/tests/test_origin_metadata.py:    result = indexer.index_list(["https://unknown.org/foo"])
swh-lister/swh/lister/cgit/tests/test_tasks.py:    kwargs = dict(url="https://git.kernel.org/", instance="kernel", base_git_url=None)
swh-lister/swh/lister/gnu/tests/test_tree.py:        ("https://sthg.org/gnu/sthg.tar.gz", "sthg"),
swh-lister/swh/lister/gnu/tests/test_tree.py:        ("https://sthg.org/gnu/DLDF-1.1.4.tar.gz", "1.1.4"),
swh-lister/swh/lister/gnu/tests/test_tree.py:        ("https://sthg.org/gnu/anubis-latest.tar.bz2", "latest"),
swh-lister/swh/lister/gnu/tests/test_tree.py:        ("https://ftp.org/gnu/aris-w32.zip", "w32"),
swh-lister/swh/lister/gnu/tests/test_tree.py:        ("https://ftp.org/gnu/aris-w32-2.2.zip", "w32-2.2"),
swh-lister/swh/lister/gnu/tests/test_tree.py:        ("https://ftp.org/gnu/autogen.info.tar.gz", "autogen.info"),
swh-lister/swh/lister/gnu/tests/test_tree.py:        ("https://ftp.org/gnu/crypto-build-demo.tar.gz", "crypto-build-demo"),
swh-lister/swh/lister/gnu/tests/test_tree.py:        ("https://ftp.org/gnu/clue+clio+xit.clisp.tar.gz", "clue+clio+xit.clisp"),
swh-lister/swh/lister/gnu/tests/test_tree.py:        ("https://ftp.org/gnu/clue+clio.for-pcl.tar.gz", "clue+clio.for-pcl"),
swh-lister/swh/lister/gnu/tests/test_tree.py:            "https://ftp.org/gnu/clisp-hppa2.0-hp-hpux10.20.tar.gz",
swh-loader-core/swh/loader/package/archive/tests/test_archive.py:    url = "https://something.else.org/8sync/"
swh-loader-core/swh/loader/package/debian/tests/test_debian.py:    uid = "Someone Name <someone@orga.org>"
swh-loader-core/swh/loader/package/debian/tests/test_debian.py:        "email": "someone@orga.org",
swh-loader-core/swh/loader/package/debian/tests/test_debian.py:            "email": "someone@orga.org",
swh-loader-core/swh/loader/package/debian/tests/test_debian.py:            "fullname": "Someone Name <someone@orga.org>",
swh-loader-core/swh/loader/package/debian/tests/test_debian.py:        email=b"someone@orga.org",
swh-loader-core/swh/loader/package/debian/tests/test_debian.py:        fullname=b"Someone Name <someone@orga.org>",
swh-loader-core/swh/loader/package/nixguix/tests/test_nixguix.py:            "urls": [f"https://server.org/my-url.{ext}"],
swh-loader-core/swh/loader/package/nixguix/tests/test_nixguix.py:            "urls": [f"https://server.org/my-url.{ext}"],
swh-loader-core/swh/loader/package/npm/tests/test_npm.py:        ({"name": "groot", "email": "groot@galaxy.org",}, "groot <groot@galaxy.org>"),
swh-loader-core/swh/loader/package/npm/tests/test_npm.py:        ({"email": "no@one.org"}, " <no@one.org>"),  # note first elt is an extra blank
swh-loader-core/swh/loader/package/npm/tests/test_npm.py:            "xufuzi <xufuzi@ywwl.com> (https://7993.org)"
swh-loader-git/swh/loader/git/tests/test_converters.py:        tagger = b"hey dude <hello@mail.org>"
swh-loader-git/swh/loader/git/tests/test_converters.py:                email=b"hello@mail.org",
swh-loader-git/swh/loader/git/tests/test_converters.py:                fullname=b"hey dude <hello@mail.org>",
swh-loader-git/swh/loader/git/tests/test_converters.py:        tagger = b"hey dude <hello@mail.org>"
swh-loader-git/swh/loader/git/tests/test_converters.py:                email=b"hello@mail.org",
swh-loader-git/swh/loader/git/tests/test_converters.py:                fullname=b"hey dude <hello@mail.org>",
swh-loader-git/swh/loader/git/tests/test_converters.py:        tagger = b"hey dude <hello@mail.org>"
swh-loader-git/swh/loader/git/tests/test_converters.py:                email=b"hello@mail.org",
swh-loader-git/swh/loader/git/tests/test_converters.py:                fullname=b"hey dude <hello@mail.org>",
swh-loader-mercurial/swh/loader/mercurial/tests/test_loader.py:    # cf. test_loader.org for explaining from where those hashes
swh-model/swh/model/tests/swh_model_data.py:    Origin(url="https://somewhere.org/den/fox",),
swh-model/swh/model/tests/swh_model_data.py:    Origin(url="https://overtherainbow.org/fox/den",),
swh-model/swh/model/tests/test_from_disk.py:                        "name": b"another-quote.org",
swh-model/swh/model/tests/test_from_disk.py:            b"bar/barfoo/another-quote.org": {
swh-model/swh/model/tests/test_from_disk.py:                "data": b"bar/barfoo/another-quote.org",
swh-scanner/swh/scanner/tests/conftest.py:    file_ = sub_dirs / "file.org"
swh-scanner/swh/scanner/tests/test_dashboard.py:    # CoreSWHID of 'another-quote.org'
swh-scanner/swh/scanner/tests/test_dashboard.py:                                children="another-quote.org",
swh-scanner/swh/scanner/tests/test_dashboard.py:                                href=f"file://{dir_path}/another-quote.org",
swh-web-client/swh/web/client/tests/api_data_static.py:    "origin/save/git/url/https://gitlab.org/gazelle/itest/": r"""
swh-web-client/swh/web/client/tests/api_data_static.py:    "origin_url": "https://gitlab.org/gazelle/itest",
swh-web-client/swh/web/client/tests/test_cli.py:        ("git", "https://gitlab.org/gazelle/itest"),
swh-web-client/swh/web/client/tests/test_cli.py:            "origin_url": "https://gitlab.org/gazelle/itest",
swh-web-client/swh/web/client/tests/test_web_api_client.py:        ("git", "https://gitlab.org/gazelle/itest"),
swh-web/swh/web/tests/admin/test_origin_save.py:_authorized_origin_url = "https://scm.ourproject.org/anonscm/"
swh-web/swh/web/tests/api/views/test_origin_save.py:    origin_url = "https://unkwownforge.org/user/repo"
swh-web/swh/web/tests/api/views/test_origin_save.py:    originUrl = "https://somewhere.org/simple"
swh-web/swh/web/tests/api/views/test_origin_save.py:    originUrl = "https://somewhere.org/simple"
swh-web/swh/web/tests/api/views/test_release.py:                email=b"author@company.org",
swh-web/swh/web/tests/api/views/test_release.py:                fullname=b"author <author@company.org>",
swh-web/swh/web/tests/browse/test_utils.py:        "email": "john.doe@swh.org",
swh-web/swh/web/tests/browse/test_utils.py:        "fullname": "John Doe <john.doe@swh.org>",
swh-web/swh/web/tests/browse/test_utils.py:    person_partial_email = {"name": None, "email": None, "fullname": "john.doe@swh.org"}
swh-web/swh/web/tests/browse/test_utils.py:        "fullname": "John Doe <john.doe@swh.org>",
swh-web/swh/web/tests/common/test_django_command.py:AUTHORIZED_ORIGIN_URL = "https://scm.ourproject.org/anonscm/%s"
swh-web/swh/web/tests/create_test_admin.py:email = "admin@swh-web.org"
swh-web/swh/web/tests/create_test_users.py:    "user": ("user", "user@swh-web.org", []),
swh-web/swh/web/tests/create_test_users.py:    "ambassador": ("ambassador", "ambassador@swh-web.org", [SWH_AMBASSADOR_PERMISSION]),
swh-web/swh/web/tests/strategies.py:    email = "%s@company.org" % name