@@ -98,7 +98,7 @@ func TestSeparateEDnode(t *testing.T) {
98
98
bootstrapHostJSON := gjson .Get (string (body ), `host-default-list.list-items.list-item.#(roleref="bootstrap").nameref` )
99
99
t .Logf (`BootstrapHost: = %s` , bootstrapHostJSON )
100
100
// verify bootstrap host exists on the cluster
101
- if bootstrapHostJSON .String () == "" {
101
+ if bootstrapHostJSON .Str == "" {
102
102
t .Errorf ("Bootstrap does not exists on cluster" )
103
103
}
104
104
@@ -112,7 +112,7 @@ func TestSeparateEDnode(t *testing.T) {
112
112
"auth.adminUsername" : username ,
113
113
"auth.adminPassword" : password ,
114
114
"group.name" : "enode" ,
115
- "bootstrapHostName" : bootstrapHost . String () ,
115
+ "bootstrapHostName" : bootstrapHostJSON . Str ,
116
116
"logCollection.enabled" : "false" ,
117
117
},
118
118
}
@@ -163,7 +163,7 @@ func TestSeparateEDnode(t *testing.T) {
163
163
t .Logf (`enodeHostCount: = %s` , enodeHostCountJSON )
164
164
165
165
// verify bootstrap host exists on the cluster
166
- if ! strings . Contains ( enodeHostCountJSON .String (), "2" ) {
166
+ if enodeHostCountJSON .Num != 2 {
167
167
t .Errorf ("enode hosts does not exists on cluster" )
168
168
}
169
169
}
0 commit comments