fix(pkg/downloader): add failing test for build with repo alias

Signed-off-by: Hang Park <hangpark@kaist.ac.kr>
pull/6943/head
Hang Park 6 years ago
parent e44ffd3a1a
commit 17553db485
No known key found for this signature in database
GPG Key ID: 35E3D27C832D49A2

@ -181,7 +181,8 @@ func TestGetRepoNames(t *testing.T) {
}
}
// This function is the skeleton test code of failing tests for #6416 and bugs due to #5874.
// This function is the skeleton test code of failing tests for #6416 and #6871 and bugs due to #5874.
//
// This function is used by below tests that ensures success of build operation
// with optional fields, alias, condition, tags, and even with ranged version.
// Parent chart includes local-subchart 0.1.0 subchart from a fake repository, by default.
@ -283,3 +284,11 @@ func TestBuild_WithTags(t *testing.T) {
Tags: []string{"tag1", "tag2"},
})
}
// Failing test for #6871
func TestBuild_WithRepositoryAlias(t *testing.T) {
// Dependency repository is aliased in Chart.yaml
checkBuildWithOptionalFields(t, "with-repository-alias", chart.Dependency{
Repository: "@test",
})
}

Loading…
Cancel
Save