Add ddev's e2e test

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
Ulysses Souza 2021-12-14 10:48:57 +01:00
parent 9d07ce415f
commit 34f420040c
2 changed files with 1 additions and 8 deletions

View File

@ -138,6 +138,5 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
- name: E2E Test in standalone mode
run: make e2e-compose-standalone

View File

@ -27,7 +27,7 @@ import (
"gotest.tools/v3/assert"
)
const ddevVersion = "v1.18.2"
const ddevVersion = "v1.19.1"
func TestComposeRunDdev(t *testing.T) {
if !composeStandaloneMode {
@ -65,9 +65,6 @@ func TestComposeRunDdev(t *testing.T) {
compressedFilename))
c.RunCmdInDir(dir, "tar", "-xzf", compressedFilename)
c.RunCmdInDir(dir, "curl", "-L", "-o", "mkcert", "https://github.com/FiloSottile/mkcert/releases/download/v1.4.3/mkcert-v1.4.3-linux-amd64")
c.RunCmdInDir(dir, "chmod", "a+x", "mkcert")
c.RunCmdInDir(dir, "mkcert", "-install")
c.RunDockerCmd("pull", "drud/ddev-ssh-agent:v1.18.0")
c.RunDockerCmd("pull", "busybox:stable")
@ -90,9 +87,6 @@ func TestComposeRunDdev(t *testing.T) {
c.RunCmdInDir(dir, "./ddev", "start", "-y")
// This assertion is irrelevant because c.RunCmdInDir() does its own assertion.
//assert.Equal(c.test, startRes.ExitCode, 0, "Could not start project")
curlRes := c.RunCmdInDir(dir, "curl", "-sSL", fmt.Sprintf("http://%s.ddev.site", siteName))
out = curlRes.Stdout()
fmt.Println(out)