@@ -383,7 +383,7 @@ func Test_ValidateAndCombineConfig(t *testing.T) {
383
383
organization_id: foo
384
384
cluster_id: bar
385
385
` )),
386
- withCmdLineFlags ("--disable-compression" , "--credentials-file" , path ))
386
+ withCmdLineFlags ("--disable-compression" , "--credentials-file" , path , "--install-namespace" , "venafi" ))
387
387
require .EqualError (t , err , "1 error occurred:\n \t * --disable-compression can only be used with the Venafi Cloud Key Pair Service Account and Venafi Cloud VenafiConnection modes\n \n " )
388
388
})
389
389
@@ -674,8 +674,9 @@ func Test_ValidateAndCombineConfig_VenafiCloudKeyPair(t *testing.T) {
674
674
uploader_id: no
675
675
upload_path: /v1/tlspk/upload/clusterdata
676
676
` )),
677
- withCmdLineFlags ("--client-id" , "5bc7d07c-45da-11ef-a878-523f1e1d7de1" , "--private-key-path" , privKeyPath ),
677
+ withCmdLineFlags ("--client-id" , "5bc7d07c-45da-11ef-a878-523f1e1d7de1" , "--private-key-path" , privKeyPath , "--install-namespace" , "venafi" ),
678
678
)
679
+ require .NoError (t , err )
679
680
testutil .TrustCA (t , cl , cert )
680
681
assert .Equal (t , VenafiCloudKeypair , got .AuthMode )
681
682
require .NoError (t , err )
@@ -712,8 +713,9 @@ func Test_ValidateAndCombineConfig_VenafiCloudKeyPair(t *testing.T) {
712
713
uploader_id: no
713
714
upload_path: /v1/tlspk/upload/clusterdata
714
715
` )),
715
- withCmdLineFlags ("--disable-compression" , "--client-id" , "5bc7d07c-45da-11ef-a878-523f1e1d7de1" , "--private-key-path" , privKeyPath ),
716
+ withCmdLineFlags ("--disable-compression" , "--client-id" , "5bc7d07c-45da-11ef-a878-523f1e1d7de1" , "--private-key-path" , privKeyPath , "--install-namespace" , "venafi" ),
716
717
)
718
+ require .NoError (t , err )
717
719
testutil .TrustCA (t , cl , cert )
718
720
assert .Equal (t , VenafiCloudKeypair , got .AuthMode )
719
721
require .NoError (t , err )
0 commit comments