File tree 2 files changed +0
-5
lines changed
pulsar-sql/presto-pulsar/src/test/java/org/apache/pulsar/sql/presto
tests/integration/src/test/java/org/apache/pulsar/tests/integration/presto
2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,6 @@ public void testPulsarSqlAuth() throws PulsarAdminException {
188
188
Assert .fail (); // should fail
189
189
} catch (TrinoException e ){
190
190
Assert .assertEquals (PERMISSION_DENIED .toErrorCode (), e .getErrorCode ());
191
- Assert .assertTrue (e .getMessage ().contains ("not authorized" ));
192
191
}
193
192
194
193
// test clean session
@@ -209,7 +208,6 @@ public void testPulsarSqlAuth() throws PulsarAdminException {
209
208
Assert .fail (); // should fail
210
209
} catch (TrinoException e ){
211
210
Assert .assertEquals (PERMISSION_DENIED .toErrorCode (), e .getErrorCode ());
212
- Assert .assertTrue (e .getMessage ().contains ("Unable to authenticate" ));
213
211
}
214
212
215
213
pulsarAuth .cleanSession (session );
@@ -226,7 +224,6 @@ public void testPulsarSqlAuth() throws PulsarAdminException {
226
224
Assert .fail (); // should fail
227
225
} catch (TrinoException e ){
228
226
Assert .assertEquals (PERMISSION_DENIED .toErrorCode (), e .getErrorCode ());
229
- Assert .assertTrue (e .getMessage ().contains ("not authorized" ));
230
227
}
231
228
232
229
pulsarAuth .cleanSession (session );
Original file line number Diff line number Diff line change @@ -141,7 +141,6 @@ public void testPulsarSQLAuthCheck() throws PulsarAdminException {
141
141
// Authorization error
142
142
assertEquals (e .getResult ().getExitCode (), 1 );
143
143
log .info (e .getResult ().getStderr ());
144
- assertTrue (e .getResult ().getStderr ().contains ("Unable to authenticate" ));
145
144
}
146
145
}
147
146
);
@@ -159,7 +158,6 @@ public void testPulsarSQLAuthCheck() throws PulsarAdminException {
159
158
// Authorization error
160
159
assertEquals (e .getResult ().getExitCode (), 1 );
161
160
log .info (e .getResult ().getStderr ());
162
- assertTrue (e .getResult ().getStderr ().contains ("not authorized" ));
163
161
}
164
162
}
165
163
);
You can’t perform that action at this time.
0 commit comments