@@ -41,7 +41,9 @@ 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: []
4445authorization_code_ttl: 0s
46+ scope_claim_formats: []
4547backchannel_token_delivery_modes_supported: []
4648backchannel_user_code_parameter_supported: false
4749cookie_max_age: 0s
@@ -93,6 +95,7 @@ client_id_issued_at: 0
9395client_name: Demo Portal
9496client_secret_expires_at: 0
9597created_at: 0001-01-01T00:00:00.000Z
98+ default_acr_values: []
9699dpop_bound_access_tokens: false
97100dynamically_registered: false
98101grant_types: []
@@ -232,6 +235,7 @@ identifier_case_insensitive: false
232235mfa_session_ttl: 0s
233236name: Some Pool
234237public_registration_allowed: false
238+ second_factor_threshold: 0
235239system: false` , string (bts ))
236240 },
237241 },
@@ -587,10 +591,30 @@ identifier_case_insensitive: false
587591mfa_session_ttl: 0s
588592name: Some Pool
589593public_registration_allowed: false
594+ second_factor_threshold: 0
590595system: false` , string (bts ))
591596 }
592597 },
593598 },
599+ {
600+ desc : "secrets" ,
601+ data : & models.TreeServer {
602+ Secrets : models.TreeSecrets {
603+ "Some_secret" : models.TreeSecret {
604+ CreatedAt : dateTime ,
605+ Secret : "test" ,
606+ },
607+ },
608+ },
609+ files : []string {
610+ "workspaces/demo/secrets/Some_secret.yaml" ,
611+ },
612+ assert : func (t * testing.T , path string , bts []byte ) {
613+ require .YAMLEq (t , `created_at: 2024-01-23T23:19:30.004+01:00
614+ id: Some_secret
615+ secret: test` , string (bts ))
616+ },
617+ },
594618 }
595619
596620 for _ , tc := range tcs {
0 commit comments