@@ -26,6 +26,8 @@ public void testSmoke() {
2626 final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer (
2727 "yugabytedb/yugabyte:2.14.4.0-b26"
2828 )
29+ .withUsername ("cassandra" )
30+ .withPassword ("cassandra" )
2931 // }
3032 ) {
3133 // startingYCQLContainer {
@@ -43,6 +45,8 @@ public void testCustomKeyspace() {
4345 try (
4446 final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer (YBDB_TEST_IMAGE )
4547 .withKeyspaceName (key )
48+ .withUsername ("cassandra" )
49+ .withPassword ("cassandra" )
4650 ) {
4751 ycqlContainer .start ();
4852 assertThat (
@@ -81,8 +85,8 @@ public void testAuthenticationEnabled() {
8185 public void testAuthenticationDisabled () {
8286 try (
8387 final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer (YBDB_TEST_IMAGE )
84- .withPassword ("" )
85- .withUsername ("" )
88+ .withPassword ("cassandra " )
89+ .withUsername ("cassandra " )
8690 ) {
8791 ycqlContainer .start ();
8892 assertThat (performQuery (ycqlContainer , "SELECT release_version FROM system.local" ).wasApplied ())
@@ -110,7 +114,11 @@ public void testInitScript() {
110114
111115 @ Test
112116 public void shouldStartWhenContainerIpIsUsedInWaitStrategy () {
113- try (final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer (IMAGE_NAME_2_18 )) {
117+ try (
118+ final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer (IMAGE_NAME_2_18 )
119+ .withUsername ("cassandra" )
120+ .withPassword ("cassandra" )
121+ ) {
114122 ycqlContainer .start ();
115123 boolean isQueryExecuted = performQuery (ycqlContainer , "SELECT release_version FROM system.local" )
116124 .wasApplied ();
0 commit comments