@@ -689,6 +689,7 @@ func TestAuthMethodSAMLResource(t *testing.T) {
689689 force_sub_claims = true
690690 allowed_redirect_uri = ["https://localhost/callback"]
691691 subclaims_delimiters = [","]
692+ use_dedicated_saml_urls = true
692693 }
693694 ` , name , path )
694695
@@ -705,6 +706,7 @@ func TestAuthMethodSAMLResource(t *testing.T) {
705706 force_sub_claims = false
706707 allowed_redirect_uri = ["https://localhost/callback", "https://localhost/callback2"]
707708 subclaims_delimiters = [",", ";"]
709+ use_dedicated_saml_urls = false
708710 }
709711 ` , name , path )
710712
@@ -723,6 +725,7 @@ func TestAuthMethodSAMLResource(t *testing.T) {
723725 resource .TestCheckResourceAttr ("akeyless_auth_method_saml." + name , "force_sub_claims" , "true" ),
724726 resource .TestCheckResourceAttr ("akeyless_auth_method_saml." + name , "allowed_redirect_uri.0" , "https://localhost/callback" ),
725727 resource .TestCheckResourceAttr ("akeyless_auth_method_saml." + name , "subclaims_delimiters.0" , "," ),
728+ resource .TestCheckResourceAttr ("akeyless_auth_method_saml." + name , "use_dedicated_saml_urls" , "true" ),
726729 resource .TestCheckResourceAttrSet ("akeyless_auth_method_saml." + name , "access_id" ),
727730 ),
728731 },
@@ -736,6 +739,7 @@ func TestAuthMethodSAMLResource(t *testing.T) {
736739 resource .TestCheckResourceAttr ("akeyless_auth_method_saml." + name , "force_sub_claims" , "false" ),
737740 resource .TestCheckResourceAttr ("akeyless_auth_method_saml." + name , "allowed_redirect_uri.#" , "2" ),
738741 resource .TestCheckResourceAttr ("akeyless_auth_method_saml." + name , "subclaims_delimiters.#" , "2" ),
742+ resource .TestCheckResourceAttr ("akeyless_auth_method_saml." + name , "use_dedicated_saml_urls" , "false" ),
739743 resource .TestCheckResourceAttrSet ("akeyless_auth_method_saml." + name , "access_id" ),
740744 ),
741745 },
@@ -798,29 +802,31 @@ func TestAuthMethodUIDResource(t *testing.T) {
798802
799803 config := fmt .Sprintf (`
800804 resource "akeyless_auth_method_universal_identity" "%v" {
801- name = "%v"
802- description = "test uid auth method"
803- jwt_ttl = 42
804- deny_inheritance = true
805- ttl = 120
806- audit_logs_claims = ["eee","kk"]
807- delete_protection = "true"
808- access_expires = 1638741817
809- force_sub_claims = true
810- deny_rotate = true
805+ name = "%v"
806+ description = "test uid auth method"
807+ jwt_ttl = 42
808+ deny_inheritance = true
809+ ttl = 120
810+ audit_logs_claims = ["eee","kk"]
811+ delete_protection = "true"
812+ access_expires = 1638741817
813+ force_sub_claims = true
814+ deny_rotate = true
815+ uid_expiration_event_at = ["10", "50"]
811816 }
812817 ` , name , path )
813818 configUpdate := fmt .Sprintf (`
814819 resource "akeyless_auth_method_universal_identity" "%v" {
815- name = "%v"
816- description = "updated uid auth method"
817- deny_inheritance = false
818- bound_ips = ["1.1.1.0/32"]
819- audit_logs_claims = ["eee","kk"]
820- delete_protection = "false"
821- access_expires = 1638741817
822- force_sub_claims = false
823- deny_rotate = false
820+ name = "%v"
821+ description = "updated uid auth method"
822+ deny_inheritance = false
823+ bound_ips = ["1.1.1.0/32"]
824+ audit_logs_claims = ["eee","kk"]
825+ delete_protection = "false"
826+ access_expires = 1638741817
827+ force_sub_claims = false
828+ deny_rotate = false
829+ uid_expiration_event_at = ["20"]
824830 }
825831 ` , name , path )
826832
@@ -837,6 +843,7 @@ func TestAuthMethodUIDResource(t *testing.T) {
837843 resource .TestCheckResourceAttr ("akeyless_auth_method_universal_identity." + name , "access_expires" , "1638741817" ),
838844 resource .TestCheckResourceAttr ("akeyless_auth_method_universal_identity." + name , "force_sub_claims" , "true" ),
839845 resource .TestCheckResourceAttr ("akeyless_auth_method_universal_identity." + name , "deny_rotate" , "true" ),
846+ resource .TestCheckResourceAttr ("akeyless_auth_method_universal_identity." + name , "uid_expiration_event_at.#" , "2" ),
840847 resource .TestCheckResourceAttrSet ("akeyless_auth_method_universal_identity." + name , "access_id" ),
841848 ),
842849 },
@@ -848,6 +855,7 @@ func TestAuthMethodUIDResource(t *testing.T) {
848855 resource .TestCheckResourceAttr ("akeyless_auth_method_universal_identity." + name , "description" , "updated uid auth method" ),
849856 resource .TestCheckResourceAttr ("akeyless_auth_method_universal_identity." + name , "force_sub_claims" , "false" ),
850857 resource .TestCheckResourceAttr ("akeyless_auth_method_universal_identity." + name , "deny_rotate" , "false" ),
858+ resource .TestCheckResourceAttr ("akeyless_auth_method_universal_identity." + name , "uid_expiration_event_at.#" , "1" ),
851859 resource .TestCheckResourceAttrSet ("akeyless_auth_method_universal_identity." + name , "access_id" ),
852860 ),
853861 },
0 commit comments