Skip to content

Commit 593838f

Browse files
committed
fix ut
1 parent e85b0ed commit 593838f

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/codewhisperer/CodeWhispererModelConfiguratorTest.kt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,10 @@ class CodeWhispererModelConfiguratorTest {
432432

433433
this.connectionIdToActiveCustomizationArn.putAll(
434434
mapOf(
435-
"fake-sso-url" to CodeWhispererCustomization(arn = "arn_2", name = "name_2", description = "description_2", profile = QRegionProfile(profileName = "myActiveProfile", arn = "arn:aws:codewhisperer:us-west-2:123456789012:profile/myActiveProfile"))
435+
"fake-sso-url" to CodeWhispererCustomization(
436+
arn = "arn_2", name = "name_2", description = "description_2",
437+
profile = QRegionProfile(profileName = "myActiveProfile", arn = "arn:aws:codewhisperer:us-west-2:123456789012:profile/myActiveProfile")
438+
)
436439
)
437440
)
438441

@@ -507,6 +510,10 @@ class CodeWhispererModelConfiguratorTest {
507510
<option name="arn" value="arn_2" />
508511
<option name="name" value="name_2" />
509512
<option name="description" value="description_2" />
513+
<option name="profile"><QRegionProfile>
514+
<option name="profileName" value="myActiveProfile"/>
515+
<option name="arn" value="arn:aws:codewhisperer:us-west-2:123456789012:profile/myActiveProfile"/>
516+
</QRegionProfile></option>
510517
</CodeWhispererCustomization>
511518
</value>
512519
</entry>
@@ -536,7 +543,8 @@ class CodeWhispererModelConfiguratorTest {
536543
CodeWhispererCustomization(
537544
arn = "arn_2",
538545
name = "name_2",
539-
description = "description_2"
546+
description = "description_2",
547+
profile = QRegionProfile("myActiveProfile", "arn:aws:codewhisperer:us-west-2:123456789012:profile/myActiveProfile")
540548
)
541549
)
542550

plugins/amazonq/codewhisperer/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/codewhisperer/QRegionProfileManagerTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class QRegionProfileManagerTest {
279279
assertThat(
280280
sut.activeProfile(project)
281281
).isEqualTo(QRegionProfile(arn = "arn:aws:codewhisperer:us-east-1:123456789012:profile/BAR_PROFILE", profileName = "BAR_PROFILE"))
282-
assertThat(sut.getQClientSettings(project,null).region.id).isEqualTo(Region.US_EAST_1.id())
282+
assertThat(sut.getQClientSettings(project, null).region.id).isEqualTo(Region.US_EAST_1.id())
283283

284284
val client2 = sut.getQClient<CodeWhispererRuntimeClient>(project)
285285
assertThat(client2).isInstanceOf(CodeWhispererRuntimeClient::class.java)

0 commit comments

Comments
 (0)