Skip to content

Commit 382cbaa

Browse files
committed
fix tests
1 parent e455188 commit 382cbaa

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

internal/cac/storage/server_storage_test.go

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func TestStorage(t *testing.T) {
4141
},
4242
assert: func(t *testing.T, path string, bts []byte) {
4343
require.YAMLEq(t, `access_token_ttl: 10m0s
44+
authentication_mechanisms: []
4445
authorization_code_ttl: 0s
4546
backchannel_token_delivery_modes_supported: []
4647
backchannel_user_code_parameter_supported: false
@@ -62,6 +63,7 @@ pushed_authorization_request_ttl: 0s
6263
refresh_token_ttl: 0s
6364
require_pushed_authorization_requests: false
6465
rotated_secrets: []
66+
scope_claim_formats: []
6567
subject_identifier_types: []
6668
template: false
6769
tenant_id: ""
@@ -85,6 +87,7 @@ version: 0`, string(bts))
8587
},
8688
assert: func(t *testing.T, path string, bts []byte) {
8789
require.YAMLEq(t, `application_types: []
90+
default_acr_values: []
8891
audience: []
8992
authorization_details_types: []
9093
backchannel_logout_session_required: false
@@ -102,6 +105,9 @@ post_logout_redirect_uris: []
102105
request_uris: []
103106
require_pushed_authorization_requests: false
104107
rotated_secrets: []
108+
saml_allowed_attributes: []
109+
saml_metadata_updated_at: 0001-01-01T00:00:00.000Z
110+
saml_override_attributes: false
105111
scopes: []
106112
system: false
107113
tls_client_certificate_bound_access_tokens: false
@@ -226,12 +232,14 @@ name: Some Gateway`, string(bts))
226232
"workspaces/demo/pools/Some_Pool.yaml",
227233
},
228234
assert: func(t *testing.T, path string, bts []byte) {
229-
require.YAMLEq(t, `deleted: false
235+
require.YAMLEq(t, `allow_skip_2fa: false
236+
deleted: false
230237
id: some-pool
231238
identifier_case_insensitive: false
232239
mfa_session_ttl: 0s
233240
name: Some Pool
234241
public_registration_allowed: false
242+
second_factor_threshold: 0
235243
system: false`, string(bts))
236244
},
237245
},
@@ -581,12 +589,14 @@ name: Some IDP
581589
static_amr: []
582590
version: 0`, string(bts))
583591
case "workspaces/demo/pools/Some_Pool.yaml":
584-
require.YAMLEq(t, `deleted: false
592+
require.YAMLEq(t, `allow_skip_2fa: false
593+
deleted: false
585594
id: some-pool
586595
identifier_case_insensitive: false
587596
mfa_session_ttl: 0s
588597
name: Some Pool
589598
public_registration_allowed: false
599+
second_factor_threshold: 0
590600
system: false`, string(bts))
591601
}
592602
},

internal/cac/storage/tenant_storage_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ id: sms
6060
mechanism: sms`, string(bts))
6161
case "workspaces/demo/server.yaml":
6262
require.YAMLEq(t, `access_token_ttl: 10m0s
63+
authentication_mechanisms: []
6364
authorization_code_ttl: 0s
6465
backchannel_token_delivery_modes_supported: []
6566
backchannel_user_code_parameter_supported: false
@@ -81,6 +82,7 @@ pushed_authorization_request_ttl: 0s
8182
refresh_token_ttl: 0s
8283
require_pushed_authorization_requests: false
8384
rotated_secrets: []
85+
scope_claim_formats: []
8486
subject_identifier_types: []
8587
template: false
8688
tenant_id: ""

0 commit comments

Comments
 (0)