Skip to content

Commit

Permalink
removed BUILD_AND_TEST_LOCAL_KUBESCAPE_CLI
Browse files Browse the repository at this point in the history
Signed-off-by: David Wertenteil <dwertent@armosec.io>
  • Loading branch information
David Wertenteil committed Apr 2, 2023
1 parent 83ed179 commit 085702c
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/b-binary-build-and-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ on:
required: false
type: string
# default: kubescape/kubescape
BUILD_AND_TEST_LOCAL_KUBESCAPE_CLI:
description: If true then the wf would build the latest commit from the default branch of Kubescape repo and will run the e2e test. if false then only the e2e would run with the latest release of the Kubescape CLI
type: boolean
required: false
default: true



jobs:
wf-preparation:
Expand Down Expand Up @@ -64,7 +57,6 @@ jobs:


binary-build:
if: inputs.BUILD_AND_TEST_LOCAL_KUBESCAPE_CLI == 'true'
name: Create cross-platform build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -194,7 +186,6 @@ jobs:
runs-on: ubuntu-latest # This cannot change
steps:
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # ratchet:actions/download-artifact@v3.0.2
if: inputs.BUILD_AND_TEST_LOCAL_KUBESCAPE_CLI == 'true'
id: download-artifact
with:
name: kubescape-ubuntu-latest
Expand All @@ -203,7 +194,6 @@ jobs:
- run: ls -laR

- name: chmod +x
if: inputs.BUILD_AND_TEST_LOCAL_KUBESCAPE_CLI == 'true'
run: chmod +x -R ${{steps.download-artifact.outputs.download-path}}/kubescape-ubuntu-latest

- name: Checkout systests repo
Expand Down Expand Up @@ -232,7 +222,6 @@ jobs:
cluster_name: ${{ steps.uuid.outputs.RANDOM_UUID }}

- name: run-tests-on-local-built-kubescape
if: inputs.BUILD_AND_TEST_LOCAL_KUBESCAPE_CLI == 'true'
env:
CUSTOMER: ${{ secrets.CUSTOMER }}
USERNAME: ${{ secrets.USERNAME }}
Expand All @@ -257,31 +246,6 @@ jobs:
deactivate
- name: run-tests-on-latest-release-of-kubescape
if: inputs.BUILD_AND_TEST_LOCAL_KUBESCAPE_CLI == 'false'
env:
CUSTOMER: ${{ secrets.CUSTOMER }}
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
CLIENT_ID: ${{ secrets.CLIENT_ID_PROD }}
SECRET_KEY: ${{ secrets.SECRET_KEY_PROD }}
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
run: |
echo "Test history:"
echo " ${{ matrix.TEST }} " >/tmp/testhistory
cat /tmp/testhistory
source systests_python_env/bin/activate
python3 systest-cli.py \
-t ${{ matrix.TEST }} \
-b production \
-c CyberArmorTests \
--duration 3 \
--logger DEBUG \
--kwargs ks_branch=release
deactivate
- name: Test Report
uses: mikepenz/action-junit-report@6e9933f4a97f4d2b99acef4d7b97924466037882 # ratchet:mikepenz/action-junit-report@v3.6.1
Expand Down

0 comments on commit 085702c

Please sign in to comment.