File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
tst-243+/software/aws/toolkits/jetbrains/uitests/chatTests Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ class AmazonQChatTest {
86
86
assertTrue(result.contains(" /clear" ))
87
87
assertTrue(result.contains(" /review" ))
88
88
assertTrue(result.contains(" /test" ))
89
+ println (" Assertions done" )
89
90
}
90
91
}
91
92
Original file line number Diff line number Diff line change @@ -39,11 +39,13 @@ class PreAmazonQUiTest {
39
39
@Test
40
40
fun `can set up Connection` () {
41
41
try {
42
- val startUrl = System .getenv(" TEST_START_URL" )
43
- val region = System .getenv(" TEST_REGION" )
44
- connection = LegacyManagedBearerSsoConnection (startUrl, region, Q_SCOPES )
45
- ConnectionPinningManager .getInstance().setPinnedConnection(QConnection .getInstance(), connection)
46
- (connection.getConnectionSettings().tokenProvider.delegate as BearerTokenProvider ).reauthenticate()
42
+ if (System .getenv(" CI" ).toBoolean()) {
43
+ val startUrl = System .getenv(" TEST_START_URL" )
44
+ val region = System .getenv(" TEST_REGION" )
45
+ connection = LegacyManagedBearerSsoConnection (startUrl, region, Q_SCOPES )
46
+ ConnectionPinningManager .getInstance().setPinnedConnection(QConnection .getInstance(), connection)
47
+ (connection.getConnectionSettings().tokenProvider.delegate as BearerTokenProvider ).reauthenticate()
48
+ }
47
49
} catch (e: Exception ) {
48
50
error(" Could not connect to Idc." )
49
51
}
You can’t perform that action at this time.
0 commit comments