Skip to content

Commit b0778fd

Browse files
committed
test: fix tests and ci scripts for oauth2
1 parent 3938c52 commit b0778fd

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.circleci/config_continue.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
test:
2929
docker:
3030
- image: rishabhpoddar/supertokens_website_sdk_testing_node_16
31+
- image: rishabhpoddar/oauth-server-cicd
3132
environment:
3233
MOCHA_FILE: test_report/report_node-<< parameters.fdi-version >>.xml
3334
RUN_REACT_16_TESTS: << parameters.run-react-16-tests >>

.circleci/setupAndTestWithFreeCore.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ echo -e "core,$1\nplugin-interface,$pluginInterfaceVersionXY" > modules.txt
3535
./loadModules --ssh
3636
cd supertokens-core
3737
git checkout $coreTag
38+
39+
# Update oauth provider config in devConfig.yaml
40+
sed -i 's/# oauth_provider_public_service_url:/oauth_provider_public_service_url: "http:\/\/localhost:4444"/' devConfig.yaml
41+
sed -i 's/# oauth_provider_admin_service_url:/oauth_provider_admin_service_url: "http:\/\/localhost:4445"/' devConfig.yaml
42+
sed -i 's/# oauth_provider_consent_login_base_url:/oauth_provider_consent_login_base_url: "http:\/\/localhost:3001\/auth"/' devConfig.yaml
43+
3844
cd ../supertokens-plugin-interface
3945
git checkout $pluginInterfaceTag
4046
cd ../

test/end-to-end/signin-rrdv5.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ describe("SuperTokens SignIn with react router dom v5", function () {
416416
assert.strictEqual(request.headers().rid, "emailpassword");
417417
assert.strictEqual(
418418
request.postData(),
419-
'{"formFields":[{"id":"email","value":"[email protected]"},{"id":"password","value":"Str0ngP@ssw0rd"}]}'
419+
'{"formFields":[{"id":"email","value":"[email protected]"},{"id":"password","value":"Str0ngP@ssw0rd"}],"shouldTryLinkingWithSessionUser":false}'
420420
);
421421

422422
assert.strictEqual(response.status, "OK");

0 commit comments

Comments
 (0)