|
|
@ -162,13 +162,13 @@ func (suite *RegistryClientTestSuite) Test_2_LoadChart() {
|
|
|
|
// non-existent ref
|
|
|
|
// non-existent ref
|
|
|
|
ref, err := ParseReference(fmt.Sprintf("%s/testrepo/whodis:9.9.9", suite.DockerRegistryHost))
|
|
|
|
ref, err := ParseReference(fmt.Sprintf("%s/testrepo/whodis:9.9.9", suite.DockerRegistryHost))
|
|
|
|
suite.Nil(err)
|
|
|
|
suite.Nil(err)
|
|
|
|
ch, err := suite.RegistryClient.LoadChart(ref)
|
|
|
|
_, err = suite.RegistryClient.LoadChart(ref)
|
|
|
|
suite.NotNil(err)
|
|
|
|
suite.NotNil(err)
|
|
|
|
|
|
|
|
|
|
|
|
// existing ref
|
|
|
|
// existing ref
|
|
|
|
ref, err = ParseReference(fmt.Sprintf("%s/testrepo/testchart:1.2.3", suite.DockerRegistryHost))
|
|
|
|
ref, err = ParseReference(fmt.Sprintf("%s/testrepo/testchart:1.2.3", suite.DockerRegistryHost))
|
|
|
|
suite.Nil(err)
|
|
|
|
suite.Nil(err)
|
|
|
|
ch, err = suite.RegistryClient.LoadChart(ref)
|
|
|
|
ch, err := suite.RegistryClient.LoadChart(ref)
|
|
|
|
suite.Nil(err)
|
|
|
|
suite.Nil(err)
|
|
|
|
suite.Equal("testchart", ch.Metadata.Name)
|
|
|
|
suite.Equal("testchart", ch.Metadata.Name)
|
|
|
|
suite.Equal("1.2.3", ch.Metadata.Version)
|
|
|
|
suite.Equal("1.2.3", ch.Metadata.Version)
|
|
|
|