Skip to content

Commit

Permalink
fix comments after pr
Browse files Browse the repository at this point in the history
  • Loading branch information
DanBezalelpx committed Jul 3, 2023
1 parent 23733df commit 418aa8c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/E2E_CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

- name: build local cluster
uses: actions/checkout@v2
- run: ./ci_files/build_cluster.sh
run: ./ci_files/build_cluster.sh

- name: Set up Docker
uses: docker/setup-buildx-action@v1
Expand All @@ -50,23 +50,37 @@ jobs:
sudo apt-get install apt-transport-https --yes
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
sudo apt-get install helm
sudo apt-get install helm=3.12.1-1
- name: Checkout enforcer repo
- name: Clone helm charts repo - mock-collector
uses: actions/checkout@v2
with:
repository: PerimeterX/connect-helm-charts
token: ${{ secrets.CONNECT_PULL_TOKEN }}
ref: mock-collector-0.1.0
path: ./deploy_charts/mock-collector

- name: Clone helm charts repo
- name: Clone helm charts repo - enforcer-tests
uses: actions/checkout@v2
with:
repository: PerimeterX/connect-helm-charts
token: ${{ secrets.CONNECT_PULL_TOKEN }}
ref: main
path: ./deploy_charts
ref: enforcer-spec-tests-0.6.0
path: ./deploy_charts/enforcer-spec-tests


- name: Clone helm charts repo - sample-site
uses: actions/checkout@v2
with:
repository: PerimeterX/connect-helm-charts
token: ${{ secrets.CONNECT_PULL_TOKEN }}
ref: sample-site-0.1.0
path: ./deploy_charts/sample-site


- name: deploy sample site
run: |
helm install sample-site ./deploy_charts/charts/sample-site --set image.name=localhost:5001/node-sample-site --set image.tag=1.0.0 --set imagePullPolicy=Always --set collectorURL=http://mock-collector-mock-collector:3001 --wait
helm install sample-site ./deploy_charts/sample-site/charts/sample-site --set image.name=localhost:5001/node-sample-site --set image.tag=1.0.0 --set imagePullPolicy=Always --set collectorURL=http://mock-collector-mock-collector:3001 --wait
- name: Set up Google Cloud SDK
id: 'auth'
Expand All @@ -87,7 +101,7 @@ jobs:
- name: deploy mock collector
run: |
helm install mock-collector ./deploy_charts/charts/mock-collector --set image.repository=localhost:5001/mock-collector --set image.tag=1.0.2 --set imagePullPolicy=Always --wait
helm install mock-collector ./deploy_charts/mock-collector/charts/mock-collector --set image.repository=localhost:5001/mock-collector --set image.tag=1.0.2 --set imagePullPolicy=Always --wait
- run: kubectl get pods

Expand All @@ -100,7 +114,7 @@ jobs:
- name: run enforcer tests
run: |
helm install enforcer-spec-tests ./deploy_charts/charts/enforcer-spec-tests --set image.repository=localhost:5001/enforcer-spec-tests --set image.tag=1.1.0 --set imagePullPolicy=Always \
helm install enforcer-spec-tests ./deploy_charts/enforcer-spec-tests/charts/enforcer-spec-tests --set image.repository=localhost:5001/enforcer-spec-tests --set image.tag=1.1.0 --set imagePullPolicy=Always \
--set internalMockCollectorURL=http://mock-collector-mock-collector:3001 \
--set appID=PXnEpdw6lS \
--set siteURL=http://sample-site-sample-site:3000 \
Expand All @@ -114,8 +128,5 @@ jobs:
JOB_NAME: enforcer-spec-tests

- name: get tests results
if: ${{ failure() }}
run: kubectl logs job/enforcer-spec-tests

- name: get tests results
if: ${{ always() }}
run: kubectl logs job/enforcer-spec-tests
9 changes: 0 additions & 9 deletions ci_files/build_cluster.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
#!/bin/sh
set -o errexit

# 1. Download kind binary
# For AMD64 / x86_64
#[ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.19.0/kind-linux-amd64
# For ARM64
#[ $(uname -m) = aarch64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.19.0/kind-linux-arm64
#chmod +x ./kind
#sudo mv ./kind /usr/local/bin/kind


# 2. Create registry container unless it already exists
reg_name='kind-registry'
reg_port='5001'
Expand Down

0 comments on commit 418aa8c

Please sign in to comment.