Skip to content

Commit

Permalink
Update tests for new config
Browse files Browse the repository at this point in the history
  • Loading branch information
tung2744 authored and louischan-oursky committed May 7, 2024
1 parent 715d244 commit 1f86cbc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/lib/config/schema_test.go
Expand Up @@ -45,7 +45,7 @@ func TestAppConfigSchema(t *testing.T) {
"testdata/login_flow_tests.yaml",
"testdata/signup_login_flow_tests.yaml",
"testdata/reauth_flow_tests.yaml",
"testdata/authflow_account_linking_tests.yaml",
"testdata/account_linking_tests.yaml",
}

type TestCase struct {
Expand Down
@@ -1,4 +1,4 @@
part: AuthenticationFlowAccountLinking
part: AccountLinkingConfig
name: valid
error: null
value:
Expand All @@ -21,10 +21,9 @@ value:
pointer: "/phone_number"
user_profile:
pointer: "/phone_number"
login_flow: flow1

---
part: AuthenticationFlowAccountLinking
part: AccountLinkingConfig
name: invalid
error: |-
invalid value:
Expand All @@ -37,7 +36,7 @@ error: |-
/oauth/1: required
map[actual:[action] expected:[action alias oauth_claim user_profile] missing:[alias oauth_claim user_profile]]
/oauth/2: required
map[actual:[alias login_flow oauth_claim user_profile] expected:[action alias oauth_claim user_profile] missing:[action]]
map[actual:[alias oauth_claim user_profile] expected:[action alias oauth_claim user_profile] missing:[action]]
value:
oauth:
- alias: "google"
Expand All @@ -51,4 +50,3 @@ value:
pointer: "/phone_number"
user_profile:
pointer: "/phone_number"
login_flow: flow1
2 changes: 1 addition & 1 deletion pkg/lib/config/testdata/default_config.yaml
Expand Up @@ -637,8 +637,8 @@ test_mode:
enabled: false
email:
enabled: false
account_linking: {}
authentication_flow:
default_account_linking: {}
rate_limits:
per_ip:
enabled: true
Expand Down

0 comments on commit 1f86cbc

Please sign in to comment.