Skip to content

Commit 01db099

Browse files
committed
chore: use better example domains in the unit tests
1 parent 72a30f8 commit 01db099

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

tests/conftest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ def client(iam_server):
77
client_id="client_id",
88
client_secret="client_secret",
99
client_name="Nubla Dashboard",
10-
client_uri="http://example.org",
11-
redirect_uris=["http://example.org/authorize"],
10+
client_uri="http://client.test",
11+
redirect_uris=["http://client.test/authorize"],
1212
grant_types=["authorization_code"],
1313
response_types=["code", "token", "id_token"],
1414
token_endpoint_auth_method="client_secret_basic",
@@ -24,7 +24,7 @@ def user(iam_server):
2424
inst = iam_server.models.User(
2525
user_name="user",
2626
formatted_name="John Doe",
27-
emails=["email@example.org"],
27+
emails=["email@example.com"],
2828
password="password",
2929
)
3030
iam_server.backend.save(inst)

tests/test_client_application.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def test_client_dynamic_registration(iam_server):
1818
f"{iam_server.url}/oauth/register",
1919
json={
2020
"client_name": "Nubla Dashboard",
21-
"client_uri": "http://example.org",
22-
"redirect_uris": ["http://example.org/authorize"],
21+
"client_uri": "http://client.test",
22+
"redirect_uris": ["http://client.test/authorize"],
2323
"grant_types": ["authorization_code"],
2424
"response_types": ["code", "token", "id_token"],
2525
"token_endpoint_auth_method": "client_secret_basic",
@@ -39,8 +39,8 @@ def test_logs(iam_server, caplog):
3939
f"{iam_server.url}/oauth/register",
4040
json={
4141
"client_name": "Nubla Dashboard",
42-
"client_uri": "http://example.org",
43-
"redirect_uris": ["http://example.org/authorize"],
42+
"client_uri": "http://client.test",
43+
"redirect_uris": ["http://client.test/authorize"],
4444
"grant_types": ["authorization_code"],
4545
"response_types": ["code", "token", "id_token"],
4646
"token_endpoint_auth_method": "client_secret_basic",
@@ -59,7 +59,7 @@ def test_logs(iam_server, caplog):
5959
def app(iam_server, client):
6060
app = Flask(__name__)
6161
app.config["SECRET_KEY"] = str(uuid.uuid4())
62-
app.config["SERVER_NAME"] = "example.org"
62+
app.config["SERVER_NAME"] = "client.test"
6363

6464
oauth = OAuth()
6565
oauth.init_app(app)

tests/test_resource_server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
def app(iam_server, client):
1212
app = Flask(__name__)
1313
app.config["SECRET_KEY"] = str(uuid.uuid4())
14-
app.config["SERVER_NAME"] = "example.org"
14+
app.config["SERVER_NAME"] = "resource-server.test"
1515

1616
class MyIntrospectTokenValidator(IntrospectTokenValidator):
1717
def introspect_token(self, token_string):

0 commit comments

Comments
 (0)