From f6c7de6102d6fe8be7affab20ede1b1b215ca4b7 Mon Sep 17 00:00:00 2001 From: Tomasz Konieczny <tomasz.konieczny@kubeshop.io> Date: Thu, 19 Sep 2024 12:32:43 +0200 Subject: [PATCH] feat: Status page - example workflows (#5857) * curl workflow tests updated * curl - status-page - example workflows * container image --- .../executor-tests/crd-workflow/smoke.yaml | 6 +-- test/examples/status-page/crd.yaml | 53 +++++++++++++++++++ 2 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 test/examples/status-page/crd.yaml diff --git a/test/curl/executor-tests/crd-workflow/smoke.yaml b/test/curl/executor-tests/crd-workflow/smoke.yaml index 7c81cbed835..d4d13869eeb 100644 --- a/test/curl/executor-tests/crd-workflow/smoke.yaml +++ b/test/curl/executor-tests/crd-workflow/smoke.yaml @@ -12,7 +12,7 @@ spec: memory: 32Mi steps: - name: Run tests - shell: curl https://testkube.io + shell: curl -f -LI https://testkube.io container: image: curlimages/curl:8.7.1 --- @@ -33,7 +33,7 @@ spec: memory: 32Mi steps: - name: Run tests - shell: curl https://testkube.io && sleep 10 + shell: curl -f -LI https://testkube.io && sleep 10 container: image: tkoniecznykubeshop/example-private-repo:curl-8.7.1 --- @@ -54,6 +54,6 @@ spec: parallel: matrix: url: ['https://testkube.io', 'https://docs.testkube.io'] - shell: curl '{{ matrix.url }}' + shell: curl -f -LI '{{ matrix.url }}' container: image: curlimages/curl:8.7.1 diff --git a/test/examples/status-page/crd.yaml b/test/examples/status-page/crd.yaml new file mode 100644 index 00000000000..3b4500c939e --- /dev/null +++ b/test/examples/status-page/crd.yaml @@ -0,0 +1,53 @@ +apiVersion: testworkflows.testkube.io/v1 +kind: TestWorkflow +metadata: + name: tw-testkube-website-5m +spec: + events: + - cronjob: + cron: '*/5 * * * *' + container: + image: curlimages/curl:8.7.1 + resources: + requests: + cpu: 32m + memory: 32Mi + steps: + - name: Run tests + shell: curl -f -LI https://testkube.io +--- +apiVersion: testworkflows.testkube.io/v1 +kind: TestWorkflow +metadata: + name: tw-testkube-docs-5m +spec: + events: + - cronjob: + cron: '*/5 * * * *' + container: + image: curlimages/curl:8.7.1 + resources: + requests: + cpu: 32m + memory: 32Mi + steps: + - name: Run tests + shell: curl -f -LI https://docs.testkube.io +--- +apiVersion: testworkflows.testkube.io/v1 +kind: TestWorkflow +metadata: + name: tw-testkube-blog-5m +spec: + events: + - cronjob: + cron: '*/5 * * * *' + container: + image: curlimages/curl:8.7.1 + resources: + requests: + cpu: 32m + memory: 32Mi + steps: + - name: Run tests + shell: curl -f -LI https://testkube.io/blog