File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
client-v2/src/test/java/com/clickhouse/client Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 5858
5959import static com .github .tomakehurst .wiremock .stubbing .Scenario .STARTED ;
6060import static org .junit .Assert .assertEquals ;
61+ import static org .junit .Assert .assertNotNull ;
6162import static org .junit .Assert .assertThrows ;
6263import static org .junit .Assert .fail ;
6364
@@ -1014,6 +1015,8 @@ public void testJWTWithCloud() throws Exception {
10141015 return ; // only for cloud
10151016 }
10161017 String jwt = System .getenv ("INTEGRATIONS_TEAM_TESTS_CLOUD_JWT_DESERT_VM_43" );
1018+ Assert .assertTrue (jwt != null && !jwt .trim ().isEmpty (), "JWT is missing" );
1019+ Assert .assertFalse (jwt .contains ("\n " ) || jwt .contains ("-----" ), "JWT should be single string ready for HTTP header" );
10171020 try (Client client = newClient ().useBearerTokenAuth (jwt ).build ()) {
10181021 try {
10191022 List <GenericRecord > response = client .queryAll ("SELECT user(), now()" );
You can’t perform that action at this time.
0 commit comments