We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
latest
Yes
Linux
x86
go version go1.21.4 linux/amd64
Client: Version: 24.0.5 API version: 1.43 Go version: go1.20.3 Git commit: 24.0.5-0ubuntu1~22.04.1 Built: Mon Aug 21 19:50:14 2023 OS/Arch: linux/amd64 Context: default Server: Engine: Version: 24.0.5 API version: 1.43 (minimum version 1.12) Go version: go1.20.3 Git commit: 24.0.5-0ubuntu1~22.04.1 Built: Mon Aug 21 19:50:14 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.2 GitCommit: runc: Version: 1.1.7-0ubuntu1~22.04.1 GitCommit: docker-init: Version: 0.19.0 GitCommit:
### Docker info ```shell Client: Version: 24.0.5 Context: default Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc.) Version: v0.11.2 Path: /usr/libexec/docker/cli-plugins/docker-buildx compose: Docker Compose (Docker Inc.) Version: v2.21.0 Path: /usr/libexec/docker/cli-plugins/docker-compose Server: Containers: 14 Running: 0 Paused: 0 Stopped: 14 Images: 26 Server Version: 24.0.5 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Using metacopy: false Native Overlay Diff: true userxattr: false Logging Driver: json-file Cgroup Driver: systemd Cgroup Version: 2 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 runc Default Runtime: runc Init Binary: docker-init containerd version: runc version: init version: Security Options: apparmor seccomp Profile: builtin cgroupns Kernel Version: 6.2.0-39-generic Operating System: Ubuntu 22.04.3 LTS OSType: linux Architecture: x86_64 CPUs: 16 Total Memory: 31.06GiB Name: LOCLAP680 ID: 948cea59-d9c6-4abb-8997-b1535035dd87 Docker Root Dir: /var/lib/docker Debug Mode: false Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false
### What happened? The tests passes when it should not. ### Relevant log output ```shell N/A
I was looking at implementing SSL for Postgres in relation to #2404
This tests passes but should not since ssl=require should not work
ssl=require
func TestWithSSLEnabledConfigFile(t *testing.T) { ctx := context.Background() container, err := postgres.RunContainer(ctx, postgres.WithConfigFile(filepath.Join("testdata", "my-postgres.conf")), postgres.WithDatabase(dbname), postgres.WithUsername(user), postgres.WithPassword(password), testcontainers.WithWaitStrategy(wait.ForLog("database system is ready to accept connections").WithOccurrence(2).WithStartupTimeout(5*time.Second)), ) if err != nil { t.Fatal(err) } t.Cleanup(func() { if err := container.Terminate(ctx); err != nil { t.Fatalf("failed to terminate container: %s", err) } }) // explicitly set sslmode=disable because the container is not configured to use TLS connStr, err := container.ConnectionString(ctx, "sslmode=require") require.NoError(t, err) db, err := sql.Open("postgres", connStr) require.NoError(t, err) assert.NotNil(t, db) defer db.Close() }
The text was updated successfully, but these errors were encountered:
Hey @bearrito do you think it's an issue in the container module or in the sql package, that does not raise an error?
Sorry, something went wrong.
@mdelapenya I went back to try to repro this and couldn't. I'm guessing this was environmental (my fault). Closing.
No branches or pull requests
Testcontainers version
latest
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host arch
x86
Go version
go version go1.21.4 linux/amd64
Docker version
Client: Version: 24.0.5 API version: 1.43 Go version: go1.20.3 Git commit: 24.0.5-0ubuntu1~22.04.1 Built: Mon Aug 21 19:50:14 2023 OS/Arch: linux/amd64 Context: default Server: Engine: Version: 24.0.5 API version: 1.43 (minimum version 1.12) Go version: go1.20.3 Git commit: 24.0.5-0ubuntu1~22.04.1 Built: Mon Aug 21 19:50:14 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.2 GitCommit: runc: Version: 1.1.7-0ubuntu1~22.04.1 GitCommit: docker-init: Version: 0.19.0 GitCommit:
Additional information
I was looking at implementing SSL for Postgres in relation to #2404
This tests passes but should not since
ssl=require
should not workThe text was updated successfully, but these errors were encountered: