From fa96d2b80a4d08d931a19e463a3b5e91f9aba22f Mon Sep 17 00:00:00 2001 From: AhmedGrati Date: Tue, 24 Oct 2023 16:34:28 +0100 Subject: [PATCH] fix: remove e2e flakiness by making the loop deterministic Signed-off-by: AhmedGrati --- script/test/fixtures/env/output-k8s.yaml | 12 ++++++------ script/test/fixtures/env/output-os.yaml | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/script/test/fixtures/env/output-k8s.yaml b/script/test/fixtures/env/output-k8s.yaml index 05a6f4b89..61bf3efe4 100644 --- a/script/test/fixtures/env/output-k8s.yaml +++ b/script/test/fixtures/env/output-k8s.yaml @@ -67,12 +67,12 @@ spec: valueFrom: configMapKeyRef: key: BAR - name: Users-ahmedgrati-projects-kompose-script-test-fixtures-env-hadoop-hive-namenode-env + name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env - name: FOO valueFrom: configMapKeyRef: key: FOO - name: Users-ahmedgrati-projects-kompose-script-test-fixtures-env-hadoop-hive-namenode-env + name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env image: bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8 name: another-namenode ports: @@ -95,8 +95,8 @@ kind: ConfigMap metadata: creationTimestamp: null labels: - io.kompose.service: another-namenode-Users-ahmedgrati-projects-kompose-script-test-fixtures-env-hadoop-hive-namenode-env - name: Users-ahmedgrati-projects-kompose-script-test-fixtures-env-hadoop-hive-namenode-env + io.kompose.service: another-namenode-home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env + name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env --- apiVersion: apps/v1 @@ -125,14 +125,14 @@ spec: valueFrom: configMapKeyRef: key: BAR - name: Users-ahmedgrati-projects-kompose-script-test-fixtures-env-hadoop-hive-namenode-env + name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env - name: CLUSTER_NAME value: test - name: FOO valueFrom: configMapKeyRef: key: FOO - name: Users-ahmedgrati-projects-kompose-script-test-fixtures-env-hadoop-hive-namenode-env + name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env image: bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8 name: namenode ports: diff --git a/script/test/fixtures/env/output-os.yaml b/script/test/fixtures/env/output-os.yaml index fa1778b91..f42839594 100644 --- a/script/test/fixtures/env/output-os.yaml +++ b/script/test/fixtures/env/output-os.yaml @@ -49,8 +49,8 @@ kind: ConfigMap metadata: creationTimestamp: null labels: - io.kompose.service: another-namenode-Users-ahmedgrati-projects-kompose-script-test-fixtures-env-hadoop-hive-namenode-env - name: Users-ahmedgrati-projects-kompose-script-test-fixtures-env-hadoop-hive-namenode-env + io.kompose.service: another-namenode-home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env + name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env --- apiVersion: apps.openshift.io/v1 @@ -79,12 +79,12 @@ spec: valueFrom: configMapKeyRef: key: BAR - name: Users-ahmedgrati-projects-kompose-script-test-fixtures-env-hadoop-hive-namenode-env + name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env - name: FOO valueFrom: configMapKeyRef: key: FOO - name: Users-ahmedgrati-projects-kompose-script-test-fixtures-env-hadoop-hive-namenode-env + name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env image: ' ' name: another-namenode ports: @@ -166,14 +166,14 @@ spec: valueFrom: configMapKeyRef: key: BAR - name: Users-ahmedgrati-projects-kompose-script-test-fixtures-env-hadoop-hive-namenode-env + name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env - name: CLUSTER_NAME value: test - name: FOO valueFrom: configMapKeyRef: key: FOO - name: Users-ahmedgrati-projects-kompose-script-test-fixtures-env-hadoop-hive-namenode-env + name: home-runner-work-kompose-kompose-script-test-fixtures-env-hadoop-hive-namenode-env image: ' ' name: namenode ports: