Skip to content

Commit

Permalink
Test using kafka_default network ip
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Aug 6, 2024
1 parent 01c9783 commit 172a3cf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ func (suite *TreatmentServiceTestSuite) SetupSuite() {
panic(err)
}
fmt.Println(kafkaInfo.NetworkSettings.Networks)
fmt.Println(kafkaInfo.NetworkSettings.Networks["kafka_default"])
fmt.Println(kafkaInfo.NetworkSettings.Networks["kafka_default"].IPAddress)
fmt.Println(kafkaInfo.NetworkSettings.Ports)
fmt.Println(kafkaInfo.State)
kafkaHost, err := kafkaContainer.Host(ctx)
Expand All @@ -400,7 +402,7 @@ func (suite *TreatmentServiceTestSuite) SetupSuite() {
}
fmt.Println(kafkaPort)

os.Setenv("ASSIGNEDTREATMENTLOGGER_KAFKACONFIG_BROKERS", fmt.Sprintf("%s:%s", kafkaHost, kafkaPort.Port()))
os.Setenv("ASSIGNEDTREATMENTLOGGER_KAFKACONFIG_BROKERS", fmt.Sprintf("%s:%s", kafkaInfo.NetworkSettings.Networks["kafka_default"].IPAddress, kafkaPort.Port()))

Check failure on line 405 in treatment-service/integration-test/fetch_treatment_it_test.go

View workflow job for this annotation

GitHub Actions / lint-go

line is 161 characters (lll)
}
suite.kafka = kafka

Expand Down

0 comments on commit 172a3cf

Please sign in to comment.