From 84832c5ead8b81e29f7f42cb3b5ea5c6a28ba6a2 Mon Sep 17 00:00:00 2001
From: Bart van der Braak <bartvdbraak@gmail.com>
Date: Tue, 21 Nov 2023 13:21:15 +0100
Subject: [PATCH] fix: remove what-if and correct path, displaynames

---
 .github/workflows/e2e.yml | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)

diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index ad429a4..31bbae5 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -27,27 +27,16 @@ jobs:
         client-id: ${{ secrets.AZURE_CLIENT_ID }}
         tenant-id: ${{ secrets.AZURE_TENANT_ID }}
         subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
-
-    - name: Validate Bicep template
-      uses: azure/arm-deploy@v1
-      with:
-        scope: subscription
-        region: ${{ env.LOCATION }}
-        template: infra/bicep/main.bicep
-        parameters: infra/bicep/main.params.json
-        deploymentName: ${{ env.DEPLOYMENT_NAME }}
-        additionalArguments: "--what-if"
-
     - name: Deploy Bicep template
-      if: github.ref == 'refs/heads/main'
       uses: azure/arm-deploy@v1
       with:
         scope: subscription
         region: ${{ env.LOCATION }}
-        template: infra/bicep/main.bicep
-        parameters: infra/bicep/main.params.json
+        template: bicep/main.bicep
+        parameters: bicep/main.params.json
         deploymentName: ${{ env.DEPLOYMENT_NAME }}
   none-test:
+    name: Tests without access
     needs: bicep
     runs-on: ubuntu-latest
     environment: 1-none
@@ -63,6 +52,7 @@ jobs:
     - name: Use Keyweave with No Access Policies
       run: cargo run -- --vault-name bvdbkeyweavetweukvt1
   get-test:
+    name: Tests with Get access
     needs: bicep
     runs-on: ubuntu-latest
     environment: 2-get
@@ -78,6 +68,7 @@ jobs:
     - name: Use Keyweave with Only Get Access Policy
       run: cargo run -- --vault-name bvdbkeyweavetweukvt1
   list-test:
+    name: Tests with List access
     needs: bicep
     runs-on: ubuntu-latest
     environment: 3-list
@@ -93,6 +84,7 @@ jobs:
     - name: Use Keyweave with Only List Access Policy
       run: cargo run -- --vault-name bvdbkeyweavetweukvt1
   get-list-test:
+    name: Tests with Get and List access
     needs: bicep
     runs-on: ubuntu-latest
     environment: 4-get-list