Browse Source

Merge pull request #632 from external-secrets/feature/test-e2e

chore: test e2e
paul-the-alien[bot] 4 years ago
parent
commit
0046551431
2 changed files with 4 additions and 32 deletions
  1. 0 30
      .github/workflows/e2e-managed.yml
  2. 4 2
      e2e/framework/addon/chart.go

+ 0 - 30
.github/workflows/e2e-managed.yml

@@ -49,36 +49,6 @@ jobs:
 
     steps:
 
-    # set status=in_progress
-    - uses: actions/github-script@v1
-      env:
-        number: ${{ github.event.client_payload.pull_request.number }}
-        job: ${{ github.job }}
-        conclusion: ${{ job.status }}
-      with:
-        github-token: ${{ secrets.GITHUB_TOKEN }}
-        script: |
-          const { data: pull } = await github.pulls.get({
-            ...context.repo,
-            pull_number: process.env.number
-          });
-          const ref = pull.head.sha;
-          console.log("\n\nPR sha: " + ref)
-          const { data: checks } = await github.checks.listForRef({
-            ...context.repo,
-            ref
-          });
-          console.log("\n\nPR CHECKS: " + checks)
-          const check = checks.check_runs.filter(c => c.name === process.env.job);
-          console.log("\n\nPR Filtered CHECK: " + check)
-          console.log(check)
-          const { data: result } = await github.checks.update({
-            ...context.repo,
-            check_run_id: check[0].id,
-            status: 'in_progress',
-          });
-          return result;
-
     # Check out merge commit
     - name: Fork based /ok-to-test-managed checkout
       uses: actions/checkout@v2

+ 4 - 2
e2e/framework/addon/chart.go

@@ -62,8 +62,10 @@ func (c *HelmChart) Install() error {
 	}
 
 	args := []string{"install", c.ReleaseName, c.Chart,
+		"--debug",
 		"--wait",
-		"--timeout", "120s",
+		"--timeout", "600s",
+		"-o", "yaml",
 		"--namespace", c.Namespace,
 	}
 
@@ -80,7 +82,7 @@ func (c *HelmChart) Install() error {
 	}
 
 	var sout, serr bytes.Buffer
-	log.Logf("installing chart %s", c.ReleaseName)
+	log.Logf("installing chart with args: %+q", args)
 	cmd := exec.Command("helm", args...)
 	cmd.Stdout = &sout
 	cmd.Stderr = &serr