@@ -8,41 +8,41 @@ import (
88)
99
1010func TestTenantConfigurationHelp (t * testing.T ) {
11- cmd := NewTenantConfigurationCommand (mock.TenantConfigurationMockWrapper {}, & mock.JWTMockWrapper {}, & mock. FeatureFlagsMockWrapper {} )
11+ cmd := NewTenantConfigurationCommand (mock.TenantConfigurationMockWrapper {}, & mock.JWTMockWrapper {})
1212 cmd .SetArgs ([]string {"utils" , "tenant" , "--help" })
1313 err := cmd .Execute ()
1414 assert .Assert (t , err == nil )
1515}
1616
1717func TestTenantConfigurationJsonFormat (t * testing.T ) {
18- cmd := NewTenantConfigurationCommand (mock.TenantConfigurationMockWrapper {}, & mock.JWTMockWrapper {}, & mock. FeatureFlagsMockWrapper {} )
18+ cmd := NewTenantConfigurationCommand (mock.TenantConfigurationMockWrapper {}, & mock.JWTMockWrapper {})
1919 cmd .SetArgs ([]string {"utils" , "tenant" , "--format" , "json" })
2020 err := cmd .Execute ()
2121 assert .NilError (t , err , "Tenant configuration command should run with no errors and print to json" )
2222}
2323
2424func TestTenantConfigurationListFormat (t * testing.T ) {
25- cmd := NewTenantConfigurationCommand (mock.TenantConfigurationMockWrapper {}, & mock.JWTMockWrapper {}, & mock. FeatureFlagsMockWrapper {} )
25+ cmd := NewTenantConfigurationCommand (mock.TenantConfigurationMockWrapper {}, & mock.JWTMockWrapper {})
2626 cmd .SetArgs ([]string {"utils" , "tenant" , "--format" , "list" })
2727 err := cmd .Execute ()
2828 assert .NilError (t , err , "Tenant configuration command should run with no errors and print to list" )
2929}
3030
3131func TestTenantConfigurationTableFormat (t * testing.T ) {
32- cmd := NewTenantConfigurationCommand (mock.TenantConfigurationMockWrapper {}, & mock.JWTMockWrapper {}, & mock. FeatureFlagsMockWrapper {} )
32+ cmd := NewTenantConfigurationCommand (mock.TenantConfigurationMockWrapper {}, & mock.JWTMockWrapper {})
3333 cmd .SetArgs ([]string {"utils" , "tenant" , "--format" , "table" })
3434 err := cmd .Execute ()
3535 assert .NilError (t , err , "Tenant configuration command should run with no errors and print to table" )
3636}
3737
3838func TestTenantConfigurationInvalidFormat (t * testing.T ) {
39- cmd := NewTenantConfigurationCommand (mock.TenantConfigurationMockWrapper {}, & mock.JWTMockWrapper {}, & mock. FeatureFlagsMockWrapper {} )
39+ cmd := NewTenantConfigurationCommand (mock.TenantConfigurationMockWrapper {}, & mock.JWTMockWrapper {})
4040 cmd .SetArgs ([]string {"utils" , "tenant" , "--format" , "MOCK" })
4141 err := cmd .Execute ()
4242 assert .Assert (t , err .Error () == mockFormatErrorMessage )
4343}
4444
4545func TestNewTenantConfigurationCommand (t * testing.T ) {
46- cmd := NewTenantConfigurationCommand (mock.TenantConfigurationMockWrapper {}, & mock.JWTMockWrapper {}, & mock. FeatureFlagsMockWrapper {} )
46+ cmd := NewTenantConfigurationCommand (mock.TenantConfigurationMockWrapper {}, & mock.JWTMockWrapper {})
4747 assert .Assert (t , cmd != nil , "Tenant configuration command must exist" )
4848}
0 commit comments