@@ -26,6 +26,8 @@ public void testSmoke() {
26
26
final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer (
27
27
"yugabytedb/yugabyte:2.14.4.0-b26"
28
28
)
29
+ .withUsername ("cassandra" )
30
+ .withPassword ("cassandra" )
29
31
// }
30
32
) {
31
33
// startingYCQLContainer {
@@ -43,6 +45,8 @@ public void testCustomKeyspace() {
43
45
try (
44
46
final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer (YBDB_TEST_IMAGE )
45
47
.withKeyspaceName (key )
48
+ .withUsername ("cassandra" )
49
+ .withPassword ("cassandra" )
46
50
) {
47
51
ycqlContainer .start ();
48
52
assertThat (
@@ -81,8 +85,8 @@ public void testAuthenticationEnabled() {
81
85
public void testAuthenticationDisabled () {
82
86
try (
83
87
final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer (YBDB_TEST_IMAGE )
84
- .withPassword ("" )
85
- .withUsername ("" )
88
+ .withPassword ("cassandra " )
89
+ .withUsername ("cassandra " )
86
90
) {
87
91
ycqlContainer .start ();
88
92
assertThat (performQuery (ycqlContainer , "SELECT release_version FROM system.local" ).wasApplied ())
@@ -110,7 +114,11 @@ public void testInitScript() {
110
114
111
115
@ Test
112
116
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
+ ) {
114
122
ycqlContainer .start ();
115
123
boolean isQueryExecuted = performQuery (ycqlContainer , "SELECT release_version FROM system.local" )
116
124
.wasApplied ();
0 commit comments