Skip to content

feat: Add network support to the Kafka container #3041

feat: Add network support to the Kafka container

feat: Add network support to the Kafka container #3041

GitHub Actions / Test Report failed Dec 15, 2024 in 0s

566 passed, 1 failed and 1 skipped

Tests failed

Report Passed Failed Skipped Time
Testcontainers.ActiveMq.Tests.trx 3✅ 22s
Testcontainers.ArangoDb.Tests.trx 1✅ 22s
Testcontainers.Azurite.Tests.trx 10✅ 24s
Testcontainers.BigQuery.Tests.trx 1✅ 11s
Testcontainers.Bigtable.Tests.trx 1✅ 26s
Testcontainers.ClickHouse.Tests.trx 2✅ 23s
Testcontainers.CockroachDb.Tests.trx 2✅ 17s
Testcontainers.Consul.Tests.trx 1✅ 10s
Testcontainers.CosmosDb.Tests.trx 1⚪ 5s
Testcontainers.Couchbase.Tests.trx 1✅ 32s
Testcontainers.CouchDb.Tests.trx 1✅ 11s
Testcontainers.Databases.Tests.trx 43✅ 11s
Testcontainers.DynamoDb.Tests.trx 2✅ 18s
Testcontainers.Elasticsearch.Tests.trx 1✅ 43s
Testcontainers.EventStoreDb.Tests.trx 1✅ 20s
Testcontainers.FakeGcsServer.Tests.trx 1✅ 9s
Testcontainers.Firestore.Tests.trx 1✅ 34s
Testcontainers.InfluxDb.Tests.trx 2✅ 16s
Testcontainers.JanusGraph.Tests.trx 1✅ 35s
Testcontainers.K3s.Tests.trx 1✅ 28s
Testcontainers.Kafka.Tests.trx 1✅ 1❌ 36s
Testcontainers.Platform.Linux.Tests.trx 32✅ 12s
Testcontainers.Platform.Windows.Tests.trx 2✅ 91s
Testcontainers.ResourceReaper.Tests.trx 2✅ 9s
Testcontainers.Tests.trx 453✅ 73s

✅ Testcontainers.ActiveMq.Tests.trx

3 tests were completed in 22s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.ActiveMq.ArtemisContainerTest+CustomCredentialsConfiguration 1✅ 654ms
Testcontainers.ActiveMq.ArtemisContainerTest+DefaultCredentialsConfiguration 1✅ 681ms
Testcontainers.ActiveMq.ArtemisContainerTest+NoAuthCredentialsConfiguration 1✅ 646ms

✅ Testcontainers.ArangoDb.Tests.trx

1 tests were completed in 22s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.ArangoDb.ArangoDbContainerTest 1✅ 135ms

✅ Testcontainers.Azurite.Tests.trx

10 tests were completed in 24s with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.Azurite.AzuriteContainerTest+AzuriteDefaultConfiguration 3✅ 310ms
Testcontainers.Azurite.AzuriteContainerTest+AzuriteInMemoryConfiguration 3✅ 290ms
Testcontainers.Azurite.AzuriteContainerTest+AzuriteMemoryLimitConfiguration 4✅ 335ms

✅ Testcontainers.BigQuery.Tests.trx

1 tests were completed in 11s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.BigQuery.BigQueryContainerTest 1✅ 420ms

✅ Testcontainers.Bigtable.Tests.trx

1 tests were completed in 26s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.Bigtable.BigtableContainerTest 1✅ 362ms

✅ Testcontainers.ClickHouse.Tests.trx

2 tests were completed in 23s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.ClickHouse.ClickHouseContainerTest 2✅ 256ms

✅ Testcontainers.CockroachDb.Tests.trx

2 tests were completed in 17s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.CockroachDb.CockroachDbContainerTest 2✅ 1s

✅ Testcontainers.Consul.Tests.trx

1 tests were completed in 10s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.Consul.ConsulContainerTest 1✅ 151ms

✅ Testcontainers.CosmosDb.Tests.trx

1 tests were completed in 5s with 0 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.CosmosDb.CosmosDbContainerTest 1⚪ 1ms

✅ Testcontainers.Couchbase.Tests.trx

1 tests were completed in 32s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.Couchbase.CouchbaseContainerTest 1✅ 388ms

✅ Testcontainers.CouchDb.Tests.trx

1 tests were completed in 11s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.CouchDb.CouchDbContainerTest 1✅ 167ms

✅ Testcontainers.Databases.Tests.trx

43 tests were completed in 11s with 43 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.Databases.DatabaseContainersTest 43✅ 5ms

✅ Testcontainers.DynamoDb.Tests.trx

2 tests were completed in 18s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.DynamoDb.DynamoDbContainerTest 2✅ 836ms

✅ Testcontainers.Elasticsearch.Tests.trx

1 tests were completed in 43s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.Elasticsearch.ElasticsearchContainerTest 1✅ 600ms

✅ Testcontainers.EventStoreDb.Tests.trx

1 tests were completed in 20s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.EventStoreDb.EventStoreDbContainerTest 1✅ 427ms

✅ Testcontainers.FakeGcsServer.Tests.trx

1 tests were completed in 9s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.FakeGcsServer.FakeGcsServerContainerTest 1✅ 229ms

✅ Testcontainers.Firestore.Tests.trx

1 tests were completed in 34s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.Firestore.FirestoreContainerTest 1✅ 1s

✅ Testcontainers.InfluxDb.Tests.trx

2 tests were completed in 16s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.InfluxDb.InfluxDbContainerTest 2✅ 296ms

✅ Testcontainers.JanusGraph.Tests.trx

1 tests were completed in 35s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.JanusGraph.JanusGraphContainerTest 1✅ 714ms

✅ Testcontainers.K3s.Tests.trx

1 tests were completed in 28s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.K3s.K3sContainerTest 1✅ 624ms

❌ Testcontainers.Kafka.Tests.trx

2 tests were completed in 36s with 1 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.Kafka.KafkaContainerNetworkTest 1✅ 1s
Testcontainers.Kafka.KafkaContainerTest 1❌ 1ms

❌ Testcontainers.Kafka.KafkaContainerTest

❌ ConsumerReturnsProducerMessage
	System.ArgumentNullException : Value cannot be null. (Parameter 'values')

✅ Testcontainers.Platform.Linux.Tests.trx

32 tests were completed in 12s with 32 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.Tests.DependsOnTest 1✅ 29ms
Testcontainers.Tests.LoggerTest+SharedCollectionTest1 3✅ 1ms
Testcontainers.Tests.LoggerTest+SharedCollectionTest2 3✅ 1ms
Testcontainers.Tests.LoggerTest+SharedInstanceTest 3✅ 1ms
Testcontainers.Tests.LoggerTest+SingleInstanceTest 3✅ 3ms
Testcontainers.Tests.PortForwardingTest+PortForwardingDefaultConfiguration 1✅ 10ms
Testcontainers.Tests.PortForwardingTest+PortForwardingNetworkConfiguration 1✅ 72ms
Testcontainers.Tests.ReusableResourceTest 1✅ 4ms
Testcontainers.Tests.ReusableResourceTest+ReuseHashTest+NotEqualTest 1✅ 18ms
Testcontainers.Tests.ReusableResourceTest+UnsupportedBuilderConfigurationTest+ContainerBuilderTest 2✅ 683ms
Testcontainers.Tests.ReusableResourceTest+UnsupportedBuilderConfigurationTest+NetworkBuilderTest 1✅ 1ms
Testcontainers.Tests.ReusableResourceTest+UnsupportedBuilderConfigurationTest+VolumeBuilderTest 1✅ 2ms
Testcontainers.Tests.TarOutputMemoryStreamTest+FromDirectory 1✅ 1ms
Testcontainers.Tests.TarOutputMemoryStreamTest+FromFile 1✅ 24ms
Testcontainers.Tests.TarOutputMemoryStreamTest+FromResourceMapping 2✅ 794ms
Testcontainers.Tests.TarOutputMemoryStreamTest+UnixFileModeTest 5✅ 2ms
Testcontainers.Tests.WaitStrategyTest 2✅ 4s

✅ Testcontainers.Platform.Windows.Tests.trx

2 tests were completed in 91s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testcontainers.Tests.WindowsContainerTest+UntilCommandIsCompleted 1✅ 499ms
Testcontainers.Tests.WindowsContainerTest+UntilPortIsAvailable 1✅ 492ms

✅ Testcontainers.ResourceReaper.Tests.trx

2 tests were completed in 9s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
DotNet.Testcontainers.ResourceReaper.Tests.DefaultResourceReaperTest 2✅ 1s

✅ Testcontainers.Tests.trx

453 tests were completed in 73s with 453 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
DotNet.Testcontainers.Tests.ContinuousIntegration.JobsTest 1✅ 24ms
DotNet.Testcontainers.Tests.Unit.BuildConfigurationTest 18✅ 5ms
DotNet.Testcontainers.Tests.Unit.CommonDirectoryPathTest 8✅ 1ms
DotNet.Testcontainers.Tests.Unit.ContainerConfigurationConverterTest+ExposedPorts 4✅ 1ms
DotNet.Testcontainers.Tests.Unit.ContainerConfigurationConverterTest+PortBindings 4✅ 1ms
DotNet.Testcontainers.Tests.Unit.CustomConfigurationTest+EnvironmentConfigurationTest 66✅ 7ms
DotNet.Testcontainers.Tests.Unit.CustomConfigurationTest+PropertiesFileConfigurationTest 66✅ 11ms
DotNet.Testcontainers.Tests.Unit.DockerConfigTests+DockerContextConfigurationTests 6✅ 50ms
DotNet.Testcontainers.Tests.Unit.DockerConfigTests+DockerHostConfigurationTests 2✅ 115ms
DotNet.Testcontainers.Tests.Unit.DockerEndpointAuthenticationProviderTest 21✅ 4ms
DotNet.Testcontainers.Tests.Unit.DockerEndpointAuthenticationProviderTest+TestcontainersHostEndpointAuthenticationProviderTest 2✅ 1ms
DotNet.Testcontainers.Tests.Unit.DockerImageNameSubstitutionTest+HubImageNamePrefixIsNotSet 2✅ 1ms
DotNet.Testcontainers.Tests.Unit.DockerImageNameSubstitutionTest+HubImageNamePrefixIsSet 22✅ 4ms
DotNet.Testcontainers.Tests.Unit.DockerRegistryAuthenticationProviderTest 21✅ 4ms
DotNet.Testcontainers.Tests.Unit.DockerRegistryAuthenticationProviderTest+Base64ProviderTest 17✅ 10ms
DotNet.Testcontainers.Tests.Unit.DockerRegistryAuthenticationProviderTest+CredsHelperProviderTest 10✅ 7ms
DotNet.Testcontainers.Tests.Unit.DockerRegistryAuthenticationProviderTest+CredsStoreProviderTest 5✅ 10ms
DotNet.Testcontainers.Tests.Unit.GetContainerLogsTest 3✅ 9ms
DotNet.Testcontainers.Tests.Unit.GuardTest+NullPreconditions+DoNotThrowException 3✅ 1ms
DotNet.Testcontainers.Tests.Unit.GuardTest+NullPreconditions+ThrowArgumentException 3✅ 1ms
DotNet.Testcontainers.Tests.Unit.GuardTest+StringPreconditions+DoNotThrowException 2✅ 1ms
DotNet.Testcontainers.Tests.Unit.GuardTest+StringPreconditions+ThrowArgumentException 2✅ 1ms
DotNet.Testcontainers.Tests.Unit.IgnoreFileTest 38✅ 21ms
DotNet.Testcontainers.Tests.Unit.ImageFromDockerfileTest 8✅ 16s
DotNet.Testcontainers.Tests.Unit.OperatingSystemTest+UnixTest 1✅ 1ms
DotNet.Testcontainers.Tests.Unit.OperatingSystemTest+WindowsTest 1✅ 1ms
DotNet.Testcontainers.Tests.Unit.ProtectDockerDaemonSocketTest+MTlsOpenSsl1_1_1 1✅ 189ms
DotNet.Testcontainers.Tests.Unit.ProtectDockerDaemonSocketTest+MTlsOpenSsl3_1 1✅ 45ms
DotNet.Testcontainers.Tests.Unit.ProtectDockerDaemonSocketTest+Tls 1✅ 135ms
DotNet.Testcontainers.Tests.Unit.ReadFileFromContainerTest 3✅ 109ms
DotNet.Testcontainers.Tests.Unit.ResourcePropertiesTest 9✅ 4s
DotNet.Testcontainers.Tests.Unit.TestcontainerNetworkBuilderTest 4✅ 6ms
DotNet.Testcontainers.Tests.Unit.TestcontainersContainerCancellationTest+Cancel 1✅ 30s
DotNet.Testcontainers.Tests.Unit.TestcontainersContainerTest+WithConfiguration 33✅ 33s
DotNet.Testcontainers.Tests.Unit.TestcontainersImageTest 39✅ 7ms
DotNet.Testcontainers.Tests.Unit.TestcontainersNetworkTest 1✅ 82ms
DotNet.Testcontainers.Tests.Unit.TestcontainersVolumeBuilderTest 3✅ 11ms
DotNet.Testcontainers.Tests.Unit.TestcontainersVolumeTest 2✅ 320ms
DotNet.Testcontainers.Tests.Unit.TestcontainersWaitStrategyTest+Finish 2✅ 2ms
DotNet.Testcontainers.Tests.Unit.TestcontainersWaitStrategyTest+Rethrow 2✅ 1ms
DotNet.Testcontainers.Tests.Unit.TestcontainersWaitStrategyTest+Timeout 2✅ 211ms
DotNet.Testcontainers.Tests.Unit.WaitUntilContainerIsHealthyTest 2✅ 19s
DotNet.Testcontainers.Tests.Unit.WaitUntilFileExistsInContainerTest 1✅ 58ms
DotNet.Testcontainers.Tests.Unit.WaitUntilHttpRequestIsSucceededTest 9✅ 2s
DotNet.Testcontainers.Tests.Unit.WaitUntilMessageIsLoggedTest 1✅ 115ms

Annotations

Check failure on line 122 in src/Testcontainers.Kafka/KafkaBuilder.cs

See this annotation in the file changed.

@github-actions github-actions / Test Report

Testcontainers.Kafka.KafkaContainerTest ► ConsumerReturnsProducerMessage

Failed test found in:
  Testcontainers.Kafka.Tests.trx
Error:
  System.ArgumentNullException : Value cannot be null. (Parameter 'values')
Raw output
System.ArgumentNullException : Value cannot be null. (Parameter 'values')
   at System.String.Join(String separator, IEnumerable`1 values)
   at Testcontainers.Kafka.KafkaBuilder.<>c.<Init>b__14_0(KafkaContainer container, CancellationToken ct) in /_/src/Testcontainers.Kafka/KafkaBuilder.cs:line 122
   at DotNet.Testcontainers.Builders.ContainerBuilder`3.<>c__DisplayClass47_0.<WithStartupCallback>b__0(IContainer container, CancellationToken ct) in /_/src/Testcontainers/Builders/ContainerBuilder`3.cs:line 371
   at DotNet.Testcontainers.Containers.DockerContainer.UnsafeStartAsync(CancellationToken ct) in /_/src/Testcontainers/Containers/DockerContainer.cs:line 475
   at DotNet.Testcontainers.Containers.DockerContainer.StartAsync(CancellationToken ct) in /_/src/Testcontainers/Containers/DockerContainer.cs:line 283