@@ -101,7 +101,7 @@ func TestOIDCProviderConfig(t *testing.T) {
101101 s := echoServer ([]byte (oidcConfigResponse ), t )
102102 defer s .Close ()
103103
104- client := s .Client . pcc
104+ client := s .Client
105105 oidc , err := client .OIDCProviderConfig (context .Background (), "oidc.provider" )
106106 if err != nil {
107107 t .Fatal (err )
@@ -139,7 +139,7 @@ func TestOIDCProviderConfigError(t *testing.T) {
139139 defer s .Close ()
140140 s .Status = http .StatusNotFound
141141
142- client := s .Client . pcc
142+ client := s .Client
143143 saml , err := client .OIDCProviderConfig (context .Background (), "oidc.provider" )
144144 if saml != nil || err == nil || ! IsConfigurationNotFound (err ) {
145145 t .Errorf ("OIDCProviderConfig() = (%v, %v); want = (nil, ConfigurationNotFound)" , saml , err )
@@ -150,7 +150,7 @@ func TestCreateOIDCProviderConfig(t *testing.T) {
150150 s := echoServer ([]byte (oidcConfigResponse ), t )
151151 defer s .Close ()
152152
153- client := s .Client . pcc
153+ client := s .Client
154154 options := (& OIDCProviderConfigToCreate {}).
155155 ID (oidcProviderConfig .ID ).
156156 DisplayName (oidcProviderConfig .DisplayName ).
@@ -181,7 +181,7 @@ func TestCreateOIDCProviderConfigMinimal(t *testing.T) {
181181 s := echoServer ([]byte (oidcConfigResponse ), t )
182182 defer s .Close ()
183183
184- client := s .Client . pcc
184+ client := s .Client
185185 options := (& OIDCProviderConfigToCreate {}).
186186 ID (oidcProviderConfig .ID ).
187187 ClientID (oidcProviderConfig .ClientID ).
@@ -207,7 +207,7 @@ func TestCreateOIDCProviderConfigMinimal(t *testing.T) {
207207func TestCreateOIDCProviderConfigZeroValues (t * testing.T ) {
208208 s := echoServer ([]byte (oidcConfigResponse ), t )
209209 defer s .Close ()
210- client := s .Client . pcc
210+ client := s .Client
211211
212212 options := (& OIDCProviderConfigToCreate {}).
213213 ID (oidcProviderConfig .ID ).
@@ -240,7 +240,8 @@ func TestCreateOIDCProviderConfigError(t *testing.T) {
240240 s .Status = http .StatusInternalServerError
241241 defer s .Close ()
242242
243- client := s .Client .pcc
243+ client := s .Client
244+ client .providerConfigClient .httpClient .RetryConfig = nil
244245 options := (& OIDCProviderConfigToCreate {}).
245246 ID (oidcProviderConfig .ID ).
246247 ClientID (oidcProviderConfig .ClientID ).
@@ -316,7 +317,7 @@ func TestUpdateOIDCProviderConfig(t *testing.T) {
316317 s := echoServer ([]byte (oidcConfigResponse ), t )
317318 defer s .Close ()
318319
319- client := s .Client . pcc
320+ client := s .Client
320321 options := (& OIDCProviderConfigToUpdate {}).
321322 DisplayName (oidcProviderConfig .DisplayName ).
322323 Enabled (oidcProviderConfig .Enabled ).
@@ -352,7 +353,7 @@ func TestUpdateOIDCProviderConfigMinimal(t *testing.T) {
352353 s := echoServer ([]byte (oidcConfigResponse ), t )
353354 defer s .Close ()
354355
355- client := s .Client . pcc
356+ client := s .Client
356357 options := (& OIDCProviderConfigToUpdate {}).
357358 DisplayName ("Other name" )
358359 oidc , err := client .UpdateOIDCProviderConfig (context .Background (), "oidc.provider" , options )
@@ -379,7 +380,7 @@ func TestUpdateOIDCProviderConfigZeroValues(t *testing.T) {
379380 s := echoServer ([]byte (oidcConfigResponse ), t )
380381 defer s .Close ()
381382
382- client := s .Client . pcc
383+ client := s .Client
383384 options := (& OIDCProviderConfigToUpdate {}).
384385 DisplayName ("" ).
385386 Enabled (false )
@@ -468,7 +469,7 @@ func TestDeleteOIDCProviderConfig(t *testing.T) {
468469 s := echoServer ([]byte ("{}" ), t )
469470 defer s .Close ()
470471
471- client := s .Client . pcc
472+ client := s .Client
472473 if err := client .DeleteOIDCProviderConfig (context .Background (), "oidc.provider" ); err != nil {
473474 t .Fatal (err )
474475 }
@@ -501,7 +502,7 @@ func TestDeleteOIDCProviderConfigError(t *testing.T) {
501502 defer s .Close ()
502503 s .Status = http .StatusNotFound
503504
504- client := s .Client . pcc
505+ client := s .Client
505506 err := client .DeleteOIDCProviderConfig (context .Background (), "oidc.provider" )
506507 if err == nil || ! IsConfigurationNotFound (err ) {
507508 t .Errorf ("DeleteOIDCProviderConfig() = %v; want = ConfigurationNotFound" , err )
@@ -562,7 +563,7 @@ func TestOIDCProviderConfigs(t *testing.T) {
562563 }
563564 }
564565
565- client := s .Client . pcc
566+ client := s .Client
566567 testIterator (
567568 client .OIDCProviderConfigs (context .Background (), "" ),
568569 "" ,
@@ -578,7 +579,8 @@ func TestOIDCProviderConfigsError(t *testing.T) {
578579 defer s .Close ()
579580 s .Status = http .StatusInternalServerError
580581
581- client := s .Client .pcc
582+ client := s .Client
583+ client .providerConfigClient .httpClient .RetryConfig = nil
582584 it := client .OIDCProviderConfigs (context .Background (), "" )
583585 config , err := it .Next ()
584586 if config != nil || err == nil || ! IsUnknown (err ) {
@@ -590,7 +592,7 @@ func TestSAMLProviderConfig(t *testing.T) {
590592 s := echoServer ([]byte (samlConfigResponse ), t )
591593 defer s .Close ()
592594
593- client := s .Client . pcc
595+ client := s .Client
594596 saml , err := client .SAMLProviderConfig (context .Background (), "saml.provider" )
595597 if err != nil {
596598 t .Fatal (err )
@@ -628,7 +630,7 @@ func TestSAMLProviderConfigError(t *testing.T) {
628630 defer s .Close ()
629631 s .Status = http .StatusNotFound
630632
631- client := s .Client . pcc
633+ client := s .Client
632634 saml , err := client .SAMLProviderConfig (context .Background (), "saml.provider" )
633635 if saml != nil || err == nil || ! IsConfigurationNotFound (err ) {
634636 t .Errorf ("SAMLProviderConfig() = (%v, %v); want = (nil, ConfigurationNotFound)" , saml , err )
@@ -639,7 +641,7 @@ func TestCreateSAMLProviderConfig(t *testing.T) {
639641 s := echoServer ([]byte (samlConfigResponse ), t )
640642 defer s .Close ()
641643
642- client := s .Client . pcc
644+ client := s .Client
643645 options := (& SAMLProviderConfigToCreate {}).
644646 ID (samlProviderConfig .ID ).
645647 DisplayName (samlProviderConfig .DisplayName ).
@@ -682,7 +684,7 @@ func TestCreateSAMLProviderConfigMinimal(t *testing.T) {
682684 s := echoServer ([]byte (samlConfigResponse ), t )
683685 defer s .Close ()
684686
685- client := s .Client . pcc
687+ client := s .Client
686688 options := (& SAMLProviderConfigToCreate {}).
687689 ID (samlProviderConfig .ID ).
688690 IDPEntityID (samlProviderConfig .IDPEntityID ).
@@ -718,7 +720,7 @@ func TestCreateSAMLProviderConfigMinimal(t *testing.T) {
718720func TestCreateSAMLProviderConfigZeroValues (t * testing.T ) {
719721 s := echoServer ([]byte (samlConfigResponse ), t )
720722 defer s .Close ()
721- client := s .Client . pcc
723+ client := s .Client
722724
723725 options := (& SAMLProviderConfigToCreate {}).
724726 ID (samlProviderConfig .ID ).
@@ -763,7 +765,8 @@ func TestCreateSAMLProviderConfigError(t *testing.T) {
763765 s .Status = http .StatusInternalServerError
764766 defer s .Close ()
765767
766- client := s .Client .pcc
768+ client := s .Client
769+ client .providerConfigClient .httpClient .RetryConfig = nil
767770 options := (& SAMLProviderConfigToCreate {}).
768771 ID (samlProviderConfig .ID ).
769772 IDPEntityID (samlProviderConfig .IDPEntityID ).
@@ -889,7 +892,7 @@ func TestUpdateSAMLProviderConfig(t *testing.T) {
889892 s := echoServer ([]byte (samlConfigResponse ), t )
890893 defer s .Close ()
891894
892- client := s .Client . pcc
895+ client := s .Client
893896 options := (& SAMLProviderConfigToUpdate {}).
894897 DisplayName (samlProviderConfig .DisplayName ).
895898 Enabled (samlProviderConfig .Enabled ).
@@ -941,7 +944,7 @@ func TestUpdateSAMLProviderConfigMinimal(t *testing.T) {
941944 s := echoServer ([]byte (samlConfigResponse ), t )
942945 defer s .Close ()
943946
944- client := s .Client . pcc
947+ client := s .Client
945948 options := (& SAMLProviderConfigToUpdate {}).
946949 DisplayName ("Other name" )
947950 saml , err := client .UpdateSAMLProviderConfig (context .Background (), "saml.provider" , options )
@@ -968,7 +971,7 @@ func TestUpdateSAMLProviderConfigZeroValues(t *testing.T) {
968971 s := echoServer ([]byte (samlConfigResponse ), t )
969972 defer s .Close ()
970973
971- client := s .Client . pcc
974+ client := s .Client
972975 options := (& SAMLProviderConfigToUpdate {}).
973976 DisplayName ("" ).
974977 Enabled (false ).
@@ -1094,7 +1097,7 @@ func TestDeleteSAMLProviderConfig(t *testing.T) {
10941097 s := echoServer ([]byte ("{}" ), t )
10951098 defer s .Close ()
10961099
1097- client := s .Client . pcc
1100+ client := s .Client
10981101 if err := client .DeleteSAMLProviderConfig (context .Background (), "saml.provider" ); err != nil {
10991102 t .Fatal (err )
11001103 }
@@ -1127,7 +1130,7 @@ func TestDeleteSAMLProviderConfigError(t *testing.T) {
11271130 defer s .Close ()
11281131 s .Status = http .StatusNotFound
11291132
1130- client := s .Client . pcc
1133+ client := s .Client
11311134 err := client .DeleteSAMLProviderConfig (context .Background (), "saml.provider" )
11321135 if err == nil || ! IsConfigurationNotFound (err ) {
11331136 t .Errorf ("DeleteSAMLProviderConfig() = %v; want = ConfigurationNotFound" , err )
@@ -1188,7 +1191,7 @@ func TestSAMLProviderConfigs(t *testing.T) {
11881191 }
11891192 }
11901193
1191- client := s .Client . pcc
1194+ client := s .Client
11921195 testIterator (
11931196 client .SAMLProviderConfigs (context .Background (), "" ),
11941197 "" ,
@@ -1204,7 +1207,8 @@ func TestSAMLProviderConfigsError(t *testing.T) {
12041207 defer s .Close ()
12051208 s .Status = http .StatusInternalServerError
12061209
1207- client := s .Client .pcc
1210+ client := s .Client
1211+ client .providerConfigClient .httpClient .RetryConfig = nil
12081212 it := client .SAMLProviderConfigs (context .Background (), "" )
12091213 config , err := it .Next ()
12101214 if config != nil || err == nil || ! IsUnknown (err ) {
0 commit comments