expectedErr:"failed to download \"test/pre-release-chart\"",
expectedErr:"chart \"pre-release-chart\" matching not found in test index. (try 'helm repo update'): no chart version found for pre-release-chart-",
},
{
name:"show pre-release chart",
args:"test/pre-release-chart",
fail:true,
flags:"--version 1.0.0",
expectedErr:"failed to download \"test/pre-release-chart\" at version \"1.0.0\"",
expectedErr:"chart \"pre-release-chart\" matching 1.0.0 not found in test index. (try 'helm repo update'): no chart version found for pre-release-chart-1.0.0",
@ -111,10 +132,13 @@ func (s *EnvSettings) AddFlags(fs *pflag.FlagSet) {
fs.StringArrayVar(&s.KubeAsGroups,"kube-as-group",s.KubeAsGroups,"group to impersonate for the operation, this flag can be repeated to specify multiple groups.")
fs.StringVar(&s.KubeAPIServer,"kube-apiserver",s.KubeAPIServer,"the address and the port for the Kubernetes API server")
fs.StringVar(&s.KubeCaFile,"kube-ca-file",s.KubeCaFile,"the certificate authority file for the Kubernetes API server connection")
fs.StringVar(&s.KubeTLSServerName,"kube-tls-server-name",s.KubeTLSServerName,"server name to use for Kubernetes API server certificate validation. If it is not provided, the hostname used to contact the server is used")
fs.BoolVar(&s.KubeInsecureSkipTLSVerify,"kube-insecure-skip-tls-verify",s.KubeInsecureSkipTLSVerify,"if true, the Kubernetes API server's certificate will not be checked for validity. This will make your HTTPS connections insecure")
c.log("StatefulSet is not ready: %s/%s. currentRevision %s does not yet match updateRevision %s",sts.Namespace,sts.Name,sts.Status.CurrentRevision,sts.Status.UpdateRevision)
returnfalse
}
c.log("StatefulSet is ready: %s/%s. %d out of %d expected pods are ready",sts.Namespace,sts.Name,sts.Status.ReadyReplicas,replicas)
if!strings.Contains(err.Error(),"x509: certificate signed by unknown authority"){
// Go communicates with the platform and different platforms return different messages. Go itself tests darwin
// differently for its message. On newer versions of Darwin the message includes the "Acme Co" portion while older
// versions of Darwin do not. As there are people developing Helm using both old and new versions of Darwin we test
// for both messages.
ifruntime.GOOS=="darwin"{
if!strings.Contains(err.Error(),"x509: “Acme Co” certificate is not trusted")&&!strings.Contains(err.Error(),"x509: certificate signed by unknown authority"){
t.Errorf("Expected TLS error for function FindChartInAuthAndTLSAndPassRepoURL not found, but got a different error (%v)",err)
}
}elseif!strings.Contains(err.Error(),"x509: certificate signed by unknown authority"){
t.Errorf("Expected TLS error for function FindChartInAuthAndTLSAndPassRepoURL not found, but got a different error (%v)",err)