Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix e2e tests for the ModuleTemplate creation after the template operator upgrade #1948

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-e2e-create-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
env:
K3D_VERSION: v5.4.7
MODULE_TEMPLATE_VERSION: 0.1.0
MODULE_TEMPLATE_VERSION: 0.1.2
OCI_REPOSITORY_URL: http://k3d-oci.localhost:5001
steps:
- name: Checkout Kyma CLI
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/create_module/kyma_create_module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func Test_ModuleTemplate(t *testing.T) {
ociArtifactAccessSpec, ok := resourceAccessSpec.(*ociartifact.AccessSpec)
assert.True(t, ok)
assert.Equal(t, ociartifact.Type, ociArtifactAccessSpec.GetType())
assert.Equal(t, "europe-docker.pkg.dev/kyma-project/prod/template-operator:0.1.0",
assert.Equal(t, "europe-docker.pkg.dev/kyma-project/prod/template-operator:0.1.2",
ociArtifactAccessSpec.ImageReference)
})

Expand Down Expand Up @@ -102,7 +102,7 @@ func Test_ModuleTemplate(t *testing.T) {
flattened := e2e.Flatten(secScanLabels)
assert.Equal(t, map[string]string{
"git.kyma-project.io/ref": "refs/heads/main",
"scan.security.kyma-project.io/rc-tag": "0.1.0",
"scan.security.kyma-project.io/rc-tag": "0.1.2",
"scan.security.kyma-project.io/language": "golang-mod",
"scan.security.kyma-project.io/dev-branch": "main",
"scan.security.kyma-project.io/subprojects": "false",
Expand Down
Loading