Skip to content

Commit 7e776b9

Browse files
committed
multi_stage: add credential-only cluster profile test case
Add a test case for the scenario where cluster_profile is set without any releases or tag_specification configured, verifying that no release dependencies are required. This covers the credential-only use case (e.g., Azure cleanup jobs using profile just for cloud credentials).
1 parent 3ab93c6 commit 7e776b9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/steps/multi_stage/multi_stage_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ func TestRequires(t *testing.T) {
5757
req: []api.StepLink{
5858
api.ReleaseImagesLink(api.LatestReleaseName),
5959
},
60+
}, {
61+
name: "cluster profile only without releases should not require any release links",
62+
steps: api.MultiStageTestConfigurationLiteral{
63+
ClusterProfile: api.ClusterProfileAWS,
64+
},
65+
req: nil,
6066
}, {
6167
name: "cluster profile with tag_specification should require release payload",
6268
config: api.ReleaseBuildConfiguration{

0 commit comments

Comments
 (0)