Skip to content

Commit 978d8e8

Browse files
authored
Some minor fixes for the local env (#93)
1 parent 095a4ad commit 978d8e8

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

.vscode/tasks.json

+10
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@
6464
"group": "build",
6565
"isBackground": true
6666
},
67+
{
68+
"label": "start mocked id provider",
69+
"type": "shell",
70+
"command": "npm run mock:id_provider",
71+
"options": {
72+
"cwd": "${workspaceFolder}/tests"
73+
},
74+
"group": "build",
75+
"isBackground": true
76+
},
6777
{
6878
"label": "identity: cloud",
6979
"type": "shell",

services/identity/server_config.test.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
},
1717
"auth": {
1818
"appName": "Scytta",
19-
"homeUrl": "https://local-scytta.com:8443/",
20-
"errorUrl": "https://local-scytta.com:8443/error",
19+
"homeUrl": "https://local-scytta.com:4443/",
20+
"errorUrl": "https://local-scytta.com:4443/error",
2121
"authBaseUrl": "https://cloud.local-scytta.com:8443/identity/auth/",
2222
"superUserApiKeyHash": "$2b$05$0OWeMQAQuh9kmD642a0ZHeVl6VNa2g.z1HTI2rrQ3RPkmxoCNUohG",
2323
"pageRedirectTime": 0,

tests/api-tests/identity/login_oauth2.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test.describe('Check OAuth2 auth', () => {
3232

3333
expect(response).toHaveStatus(200);
3434
expect(getPageRedirectUrl(await response.text())).toEqual(
35-
'https://local-scytta.com:8443/error?type=authError&status=400'
35+
'https://local-scytta.com:4443/error?type=authError&status=400'
3636
);
3737
expect(await response.text()).toContain('"MissingExternalLoginCookie"');
3838

@@ -51,7 +51,7 @@ test.describe('Check OAuth2 auth', () => {
5151
.send();
5252
expect(response).toHaveStatus(200);
5353
expect(getPageRedirectUrl(await response.text())).toEqual(
54-
'https://local-scytta.com:8443/error?type=authError&status=400'
54+
'https://local-scytta.com:4443/error?type=authError&status=400'
5555
);
5656
expect(await response.text()).toContain('"MissingExternalLoginCookie"');
5757

tests/api-tests/identity/login_openid.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test.describe('Check OpenId auth', () => {
3232

3333
expect(response).toHaveStatus(200);
3434
expect(getPageRedirectUrl(await response.text())).toEqual(
35-
'https://local-scytta.com:8443/error?type=authError&status=400'
35+
'https://local-scytta.com:4443/error?type=authError&status=400'
3636
);
3737
expect(await response.text()).toContain('"MissingExternalLoginCookie"');
3838

@@ -56,7 +56,7 @@ test.describe('Check OpenId auth', () => {
5656
.send();
5757
expect(response).toHaveStatus(200);
5858
expect(getPageRedirectUrl(await response.text())).toEqual(
59-
'https://local-scytta.com:8443/error?type=authError&status=400'
59+
'https://local-scytta.com:4443/error?type=authError&status=400'
6060
);
6161
expect(await response.text()).toContain('"MissingExternalLoginCookie"');
6262

tests/api-tests/identity/login_token.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test.describe('Login with token for new user', () => {
1313
.send();
1414
expect(response).toHaveStatus(200);
1515
expect(getPageRedirectUrl(await response.text())).toEqual(
16-
'https://local-scytta.com:8443/error?type=invalidInput&status=400'
16+
'https://local-scytta.com:4443/error?type=invalidInput&status=400'
1717
);
1818
expect(await response.text()).toContain('Failed to deserialize query string');
1919

0 commit comments

Comments
 (0)