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 {
8686 assertTrue(result.contains(" /clear" ))
8787 assertTrue(result.contains(" /review" ))
8888 assertTrue(result.contains(" /test" ))
89+ println (" Assertions done" )
8990 }
9091 }
9192
Original file line number Diff line number Diff line change @@ -39,11 +39,13 @@ class PreAmazonQUiTest {
3939 @Test
4040 fun `can set up Connection` () {
4141 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+ }
4749 } catch (e: Exception ) {
4850 error(" Could not connect to Idc." )
4951 }
You can’t perform that action at this time.
0 commit comments