Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5c8232f

Browse files
committedMar 11, 2025·
test: validate step actions in hub resolver
1 parent 6d26a86 commit 5c8232f

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed
 

‎pkg/remoteresolution/resolver/hub/resolver_test.go

+11-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,16 @@ func TestValidate(t *testing.T) {
6060
version: "bar",
6161
catalog: "baz",
6262
hubType: ArtifactHubType,
63-
}, {
63+
},
64+
{
65+
testName: "stepaction validation",
66+
kind: "stepaction",
67+
resourceName: "foo",
68+
version: "bar",
69+
catalog: "baz",
70+
hubType: ArtifactHubType,
71+
},
72+
{
6473
testName: "tekton type validation",
6574
kind: "task",
6675
resourceName: "foo",
@@ -134,7 +143,7 @@ func TestValidateConflictingKindName(t *testing.T) {
134143
hubType string
135144
}{
136145
{
137-
kind: "not-taskpipeline",
146+
kind: "not-taskpipelineorstepaction",
138147
name: "foo",
139148
version: "bar",
140149
catalog: "baz",

‎pkg/resolution/resolver/hub/resolver_test.go

+11-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,16 @@ func TestValidateParams(t *testing.T) {
6262
version: "bar",
6363
catalog: "baz",
6464
hubType: ArtifactHubType,
65-
}, {
65+
},
66+
{
67+
testName: "stepaction validation",
68+
kind: "stepaction",
69+
resourceName: "foo",
70+
version: "bar",
71+
catalog: "baz",
72+
hubType: ArtifactHubType,
73+
},
74+
{
6675
testName: "tekton type validation",
6776
kind: "task",
6877
resourceName: "foo",
@@ -148,7 +157,7 @@ func TestValidateParamsConflictingKindName(t *testing.T) {
148157
hubType string
149158
}{
150159
{
151-
kind: "not-taskpipeline",
160+
kind: "not-taskpipelineorstepaction",
152161
name: "foo",
153162
version: "bar",
154163
catalog: "baz",

0 commit comments

Comments
 (0)
Please sign in to comment.