Add ddev's e2e test
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
9d07ce415f
commit
34f420040c
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -138,6 +138,5 @@ jobs:
|
|||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
|
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
|
||||||
|
|
||||||
|
|
||||||
- name: E2E Test in standalone mode
|
- name: E2E Test in standalone mode
|
||||||
run: make e2e-compose-standalone
|
run: make e2e-compose-standalone
|
||||||
|
@ -27,7 +27,7 @@ import (
|
|||||||
"gotest.tools/v3/assert"
|
"gotest.tools/v3/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
const ddevVersion = "v1.18.2"
|
const ddevVersion = "v1.19.1"
|
||||||
|
|
||||||
func TestComposeRunDdev(t *testing.T) {
|
func TestComposeRunDdev(t *testing.T) {
|
||||||
if !composeStandaloneMode {
|
if !composeStandaloneMode {
|
||||||
@ -65,9 +65,6 @@ func TestComposeRunDdev(t *testing.T) {
|
|||||||
compressedFilename))
|
compressedFilename))
|
||||||
|
|
||||||
c.RunCmdInDir(dir, "tar", "-xzf", 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", "drud/ddev-ssh-agent:v1.18.0")
|
||||||
c.RunDockerCmd("pull", "busybox:stable")
|
c.RunDockerCmd("pull", "busybox:stable")
|
||||||
@ -90,9 +87,6 @@ func TestComposeRunDdev(t *testing.T) {
|
|||||||
|
|
||||||
c.RunCmdInDir(dir, "./ddev", "start", "-y")
|
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))
|
curlRes := c.RunCmdInDir(dir, "curl", "-sSL", fmt.Sprintf("http://%s.ddev.site", siteName))
|
||||||
out = curlRes.Stdout()
|
out = curlRes.Stdout()
|
||||||
fmt.Println(out)
|
fmt.Println(out)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user