Skip to content

Commit c7bb1f0

Browse files
test: Update set-namespace E2E tests to use v0.4.5
Updates all E2E tests to use set-namespace:v0.4.5 instead of older versions (v0.2.0, v0.4.1, v0.4). This ensures tests work with the most recent function version. Also updates internal/kptops/functions.go to v0.4.5 as suggested by maintainers for performance reasons (compiled-in functions). Fixes #4297 Signed-off-by: Surbhi <agarwalsurbhi1807@gmail.com>
1 parent 48a6439 commit c7bb1f0

119 files changed

Lines changed: 168 additions & 168 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

e2e/testdata/fn-eval/fn-config-file-in-pkg/.expected/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414

1515
testType: eval
16-
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.2.0
16+
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.4.5
1717
fnConfig: ../config.yaml

e2e/testdata/fn-eval/fn-config-file/pkg/.expected/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414

1515
testType: eval
16-
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.2.0
16+
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.4.5
1717
fnConfig: ../../config.yaml

e2e/testdata/fn-eval/fnconfig-missing-name/pkg/.expected/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
testType: eval
16-
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.2.0
16+
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.4.5
1717
fnConfig: ../../config.yaml
1818
exitCode: 1
1919
stdErr: "resource must have `metadata.name`"

e2e/testdata/fn-eval/include-meta-resources-v1alpha1/.expected/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
runCount: 2
1616
testType: eval
17-
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.2.0
17+
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.4.5
1818
includeMetaResources: true
1919
exitCode: 1
2020
args:

e2e/testdata/fn-eval/include-meta-resources-v1alpha2/.expected/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
runCount: 2
1616
testType: eval
17-
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.2.0
17+
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.4.5
1818
includeMetaResources: true
1919
exitCode: 1
2020
args:

e2e/testdata/fn-eval/include-meta-resources/.expected/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
runCount: 2
1616
testType: eval
17-
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.2.0
17+
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.4.5
1818
includeMetaResources: true
1919
exitCode: 1
2020
args:

e2e/testdata/fn-eval/invalid-fn-config-file/pkg/.expected/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414

1515
testType: eval
1616
exitCode: 1
17-
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.2.0
17+
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.4.5
1818
fnConfig: ../../config.yaml
1919
stdErr: "wrong node kind: expected MappingNode but got ScalarNode: node contents:\nI am not a valid config file\n"

e2e/testdata/fn-eval/missing-fn-config/.expected/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414

1515
testType: eval
1616
exitCode: 1
17-
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.2.0
17+
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.4.5
1818
stdErr: "failed to configure function: input namespace cannot be empty"

e2e/testdata/fn-eval/multiple-fn-config-one-file/pkg/.expected/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
testType: eval
16-
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.2.0
16+
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.4.5
1717
fnConfig: ../../config.yaml
1818
exitCode: 1
1919
stdErr: "must not contain more than one config, got 2"

e2e/testdata/fn-eval/non-krm-resource/.expected/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
# limitations under the License.
1414

1515
testType: eval
16-
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.2.0
16+
image: ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.4.5
1717
args:
1818
namespace: staging
1919
exitCode: 1
2020
stdErr: |
21-
[FAIL] "ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.2.0" in 0s
21+
[FAIL] "ghcr.io/kptdev/krm-functions-catalog/set-namespace:v0.4.5" in 0s
2222
error: input resource list must contain only KRM resources: nonkrm.yaml: resource must have `apiVersion`

0 commit comments

Comments
 (0)