(t *testing.T)
| 206 | } |
| 207 | |
| 208 | func TestCommentsInEnvFile(t *testing.T) { |
| 209 | c := NewParallelCLI(t) |
| 210 | |
| 211 | t.Run("comments in env files", func(t *testing.T) { |
| 212 | c.RunDockerOrExitError(t, "rmi", "env-file-comments") |
| 213 | |
| 214 | c.RunDockerComposeCmd(t, "-f", "./fixtures/environment/env-file-comments/compose.yaml", "up", "-d", "--build") |
| 215 | |
| 216 | res := c.RunDockerComposeCmd(t, "-f", "./fixtures/environment/env-file-comments/compose.yaml", |
| 217 | "run", "--rm", "-e", "COMMENT", "-e", "NO_COMMENT", "env-file-comments") |
| 218 | |
| 219 | res.Assert(t, icmd.Expected{Out: `COMMENT=1234`}) |
| 220 | res.Assert(t, icmd.Expected{Out: `NO_COMMENT=1234#5`}) |
| 221 | |
| 222 | c.RunDockerComposeCmd(t, "--project-name", "env-file-comments", "down", "--rmi", "all") |
| 223 | }) |
| 224 | } |
| 225 | |
| 226 | func TestUnsetEnv(t *testing.T) { |
| 227 | c := NewParallelCLI(t) |
nothing calls this directly
no test coverage detected