compose/pkg/e2e
Sebastiaan van Stijn d445ebba3f fix linting issues with golangci-lint 1.60.2
pkg/watch/watcher_darwin.go:96:16: Error return value of `d.stream.Start` is not checked (errcheck)
        d.stream.Start()
                      ^
    pkg/prompt/prompt.go:97:12: Error return value of `fmt.Fprint` is not checked (errcheck)
        fmt.Fprint(u.stdout, message)
                  ^
    pkg/prompt/prompt.go:99:12: Error return value of `fmt.Scanln` is not checked (errcheck)
        fmt.Scanln(&answer)
                  ^
    cmd/formatter/logs.go:118:15: Error return value of `fmt.Fprintf` is not checked (errcheck)
                fmt.Fprintf(w, "%s%s%s\n", p.prefix, timestamp, line)
                           ^
    cmd/formatter/logs.go:120:15: Error return value of `fmt.Fprintf` is not checked (errcheck)
                fmt.Fprintf(w, "%s%s\n", p.prefix, line)
                           ^
    pkg/progress/json.go:67:15: Error return value of `fmt.Fprintln` is not checked (errcheck)
            fmt.Fprintln(p.out, string(marshal))
                        ^
    pkg/progress/json.go:87:15: Error return value of `fmt.Fprintln` is not checked (errcheck)
            fmt.Fprintln(p.out, string(marshal))
                        ^
    pkg/progress/plain.go:47:14: Error return value of `fmt.Fprintln` is not checked (errcheck)
        fmt.Fprintln(p.out, prefix, e.ID, e.Text, e.StatusText)
                    ^
    pkg/progress/tty.go:162:12: Error return value of `fmt.Fprint` is not checked (errcheck)
        fmt.Fprint(w.out, b.Column(0).ANSI)
                  ^
    pkg/progress/tty.go:165:12: Error return value of `fmt.Fprint` is not checked (errcheck)
        fmt.Fprint(w.out, aec.Hide)
                  ^
    pkg/compose/attach.go:53:13: Error return value of `fmt.Fprintf` is not checked (errcheck)
        fmt.Fprintf(s.stdout(), "Attaching to %s\n", strings.Join(names, ", "))
                   ^
    pkg/compose/compose.go:194:6: emptyStringTest: replace `len(dependencies) > 0` with `dependencies != ""` (gocritic)
            if len(dependencies) > 0 {
               ^
    pkg/compose/convergence.go:461:2: builtinShadow: shadowing of predeclared identifier: max (gocritic)
        max := 0
        ^
    pkg/compose/run.go:127:5: emptyStringTest: replace `len(opts.User) > 0` with `opts.User != ""` (gocritic)
        if len(opts.User) > 0 {
           ^
    pkg/compose/run.go:139:5: emptyStringTest: replace `len(opts.WorkingDir) > 0` with `opts.WorkingDir != ""` (gocritic)
        if len(opts.WorkingDir) > 0 {
           ^
    pkg/compose/viz.go:91:8: emptyStringTest: replace `len(portConfig.HostIP) > 0` with `portConfig.HostIP != ""` (gocritic)
                    if len(portConfig.HostIP) > 0 {
                       ^
    cmd/compatibility/convert.go:66:6: emptyStringTest: replace `len(arg) > 0` with `arg != ""` (gocritic)
            if len(arg) > 0 && arg[0] != '-' {
               ^
    pkg/e2e/watch_test.go:208:25: printf: non-constant format string in call to gotest.tools/v3/poll.Continue (govet)
                return poll.Continue(res.Combined())
                                     ^
    pkg/e2e/watch_test.go:290:25: printf: non-constant format string in call to gotest.tools/v3/poll.Continue (govet)
                return poll.Continue(r.Combined())
                                     ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-09-11 13:56:25 +02:00
..
fixtures restore setEnvWithDotEnv 2024-07-11 10:25:04 +02:00
assert.go up: fix various race/deadlock conditions on exit (#10934) 2023-08-31 10:47:14 -04:00
build_test.go Remove COMPOSE_MENU env from e2e tests 2024-07-01 16:31:12 +01:00
cancel_test.go chore(e2e): fix flaky test & standalone behavior (#11382) 2024-01-30 10:49:53 -05:00
cascade_test.go chore(e2e): fix flaky cascade failure test 2024-04-24 11:03:27 +02:00
compose_environment_test.go empty env variable with no value must be unset in container 2024-07-10 14:23:34 +02:00
compose_exec_test.go test: speed up the e2e test suite 2023-07-18 11:08:06 +02:00
compose_run_test.go restore setEnvWithDotEnv 2024-07-11 10:25:04 +02:00
compose_test.go Fix typos 2024-09-11 11:21:24 +02:00
compose_up_test.go Remove COMPOSE_MENU env from e2e tests 2024-07-01 16:31:12 +01:00
config_test.go Bump compose-go to v2.0.2 2024-03-22 11:21:14 +01:00
configs_test.go Fix configs are mounted under /<id> 2023-11-29 16:53:22 +01:00
container_name_test.go check container_name is not in use by another service we will create 2024-04-16 17:26:50 +02:00
cp_test.go align `--format` flag and UX with docker cli 2022-12-14 22:53:43 +01:00
ddev_test.go bump ddev 2023-11-27 14:19:53 +01:00
e2e_config_plugin.go chore(e2e): fix flaky test & standalone behavior (#11382) 2024-01-30 10:49:53 -05:00
e2e_config_standalone.go
framework.go Make it context aware and add test skipping options 2023-11-15 21:09:50 +01:00
ipc_test.go
logs_test.go Remove COMPOSE_MENU env from e2e tests 2024-07-01 16:31:12 +01:00
main_test.go
metrics_test.go Remove COMPOSE_MENU env from e2e tests 2024-07-01 16:31:12 +01:00
networks_test.go network: fix random missing network when service has more than one 2023-07-07 09:18:01 +02:00
noDeps_test.go resolve service reference into container based on observed state 2023-09-14 15:29:50 +02:00
orphans_test.go restore setEnvWithDotEnv 2024-07-11 10:25:04 +02:00
pause_test.go Remove COMPOSE_MENU env from e2e tests 2024-07-01 16:31:12 +01:00
profiles_test.go COMPOSE_PROFILES can be set by .env file 2024-05-30 07:40:01 +02:00
ps_test.go Restore `Project` is ps json output 2023-11-24 10:46:33 +01:00
pull_test.go fix regression running pull --ignore-pull-failures 2022-12-19 11:56:03 +01:00
recreate_no_deps_test.go up/start/run: don't wait for disabled service 2022-08-17 12:32:10 -05:00
restart_test.go project.Services is a map 2023-12-05 18:54:31 +01:00
scale_test.go sort containers to optimize scale down 2024-02-15 17:47:42 +01:00
secrets_test.go apply uid/gid when creating secret from environment 2022-12-15 15:54:04 +01:00
start_stop_test.go project.Services is a map 2023-12-05 18:54:31 +01:00
up_test.go Remove COMPOSE_MENU env from e2e tests 2024-07-01 16:31:12 +01:00
volumes_test.go Temporarily disable broken E2E tests on Windows 2022-09-20 11:33:31 -04:00
wait_test.go test: fix process leak in wait e2e test 2023-07-10 08:42:09 -04:00
watch_test.go fix linting issues with golangci-lint 1.60.2 2024-09-11 13:56:25 +02:00