Skip to content

Add a test to make sure ddev-hostname is working properly in CI #7795

@stasadev

Description

@stasadev

We have DDEV_NONINTERACTIVE=true for all our tests, which means that we don't actually test if ddev-hostname works correctly (because it usually asks for a password).

But in CI environments, like GitHub Actions, sudo runs without a password, which makes this testing possible.

We should add a new test (run it only in GitHub Actions), which should:

  • set DDEV_NONINTERACTIVE=""
  • run ddev config --auto && ddev start && curl https://site.ddev.site
  • run ddev config --project-tld=test && ddev start && curl https://site.test (we can use something different instead of *.test, i.e. random letters)

I implemented some testing for --project-tld=test here, but we need better test coverage:

Related issue:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions