@@ -383,7 +383,7 @@ func Test_ValidateAndCombineConfig(t *testing.T) {
383383 organization_id: foo
384384 cluster_id: bar
385385 ` )),
386- withCmdLineFlags ("--disable-compression" , "--credentials-file" , path ))
386+ withCmdLineFlags ("--disable-compression" , "--credentials-file" , path , "--install-namespace" , "venafi" ))
387387 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 " )
388388 })
389389
@@ -674,8 +674,9 @@ func Test_ValidateAndCombineConfig_VenafiCloudKeyPair(t *testing.T) {
674674 uploader_id: no
675675 upload_path: /v1/tlspk/upload/clusterdata
676676 ` )),
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" ),
678678 )
679+ require .NoError (t , err )
679680 testutil .TrustCA (t , cl , cert )
680681 assert .Equal (t , VenafiCloudKeypair , got .AuthMode )
681682 require .NoError (t , err )
@@ -712,8 +713,9 @@ func Test_ValidateAndCombineConfig_VenafiCloudKeyPair(t *testing.T) {
712713 uploader_id: no
713714 upload_path: /v1/tlspk/upload/clusterdata
714715 ` )),
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" ),
716717 )
718+ require .NoError (t , err )
717719 testutil .TrustCA (t , cl , cert )
718720 assert .Equal (t , VenafiCloudKeypair , got .AuthMode )
719721 require .NoError (t , err )
0 commit comments