Skip to content

Commit 0d17860

Browse files
committed
Fix test failures
1 parent a7a3f1d commit 0d17860

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/kepctl/kepctl_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func TestValidate(t *testing.T) {
4141
{
4242
name: "invalid kep fails valdiate for owning-sig",
4343
file: "testdata/invalid-kep.yaml",
44-
err: fmt.Errorf(`kep is invalid: error validating KEP metadata: "owning-sig" must be one of (committee-code-of-conduct,committee-product-security,committee-steering,sig-api-machinery,sig-apps,sig-architecture,sig-auth,sig-autoscaling,sig-cli,sig-cloud-provider,sig-cluster-lifecycle,sig-contributor-experience,sig-docs,sig-instrumentation,sig-multicluster,sig-network,sig-node,sig-release,sig-scalability,sig-scheduling,sig-service-catalog,sig-storage,sig-testing,sig-ui,sig-usability,sig-windows,ug-big-data,ug-vmware-users,wg-api-expression,wg-component-standard,wg-data-protection,wg-iot-edge,wg-k8s-infra,wg-lts,wg-machine-learning,wg-multitenancy,wg-policy,wg-security-audit) but it is a string: sig-awesome`),
44+
err: fmt.Errorf(`kep is invalid: error validating KEP metadata: "owning-sig" must be one of (committee-code-of-conduct,committee-product-security,committee-steering,sig-api-machinery,sig-apps,sig-architecture,sig-auth,sig-autoscaling,sig-cli,sig-cloud-provider,sig-cluster-lifecycle,sig-contributor-experience,sig-docs,sig-instrumentation,sig-multicluster,sig-network,sig-node,sig-release,sig-scalability,sig-scheduling,sig-service-catalog,sig-storage,sig-testing,sig-ui,sig-usability,sig-windows,ug-big-data,ug-vmware-users,wg-api-expression,wg-component-standard,wg-data-protection,wg-iot-edge,wg-k8s-infra,wg-lts,wg-machine-learning,wg-multitenancy,wg-naming,wg-policy,wg-security-audit) but it is a string: sig-awesome`),
4545
},
4646
}
4747

pkg/kepctl/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (c *Client) Query(opts QueryOpts) error {
5555
for _, k := range names {
5656
kep, err := c.readKEP(repoPath, sig, k)
5757
if err != nil {
58-
fmt.Fprintf(c.Err, "ERROR READING KEP %s: %s\n", err)
58+
fmt.Fprintf(c.Err, "ERROR READING KEP %s: %s\n", k, err)
5959
} else {
6060
allKEPs = append(allKEPs, kep)
6161
}

0 commit comments

Comments
 (0)