Skip to content

Commit dbc0119

Browse files
committed
fix tests
1 parent 8c2aff2 commit dbc0119

File tree

1 file changed

+12
-11
lines changed
  • plugins/core/jetbrains-community/tst/software/aws/toolkits/jetbrains/core/credentials/sso

1 file changed

+12
-11
lines changed

plugins/core/jetbrains-community/tst/software/aws/toolkits/jetbrains/core/credentials/sso/DiskCacheTest.kt

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ class DiskCacheTest {
5757
startUrl = ssoUrl,
5858
scopes = scopes,
5959
region = ssoRegion
60-
)
60+
),
61+
"testSource"
6162
)
6263
).isNull()
6364
}
@@ -71,7 +72,7 @@ class DiskCacheTest {
7172
)
7273
cacheLocation.resolve("223224b6f0b4702c1a984be8284fe2c9d9718759.json").writeText("badData")
7374

74-
assertThat(sut.loadClientRegistration(key)).isNull()
75+
assertThat(sut.loadClientRegistration(key, "testSource")).isNull()
7576
}
7677

7778
@Test
@@ -91,7 +92,7 @@ class DiskCacheTest {
9192
""".trimIndent()
9293
)
9394

94-
assertThat(sut.loadClientRegistration(key)).isNull()
95+
assertThat(sut.loadClientRegistration(key, "testSource")).isNull()
9596
}
9697

9798
@Test
@@ -112,7 +113,7 @@ class DiskCacheTest {
112113
""".trimIndent()
113114
)
114115

115-
assertThat(sut.loadClientRegistration(key)).isNull()
116+
assertThat(sut.loadClientRegistration(key, "testSource")).isNull()
116117
}
117118

118119
@Test
@@ -134,7 +135,7 @@ class DiskCacheTest {
134135
""".trimIndent()
135136
)
136137

137-
assertThat(sut.loadClientRegistration(key))
138+
assertThat(sut.loadClientRegistration(key, "testSource"))
138139
.usingRecursiveComparison()
139140
.isEqualTo(
140141
DeviceAuthorizationClientRegistration(
@@ -217,7 +218,7 @@ class DiskCacheTest {
217218
""".trimIndent()
218219
)
219220

220-
assertThat(sut.loadClientRegistration(key))
221+
assertThat(sut.loadClientRegistration(key, "testSource"))
221222
.usingRecursiveComparison()
222223
.isEqualTo(
223224
PKCEClientRegistration(
@@ -323,10 +324,10 @@ class DiskCacheTest {
323324
)
324325
)
325326

326-
assertThat(sut.loadClientRegistration(key1))
327+
assertThat(sut.loadClientRegistration(key1, "testSource"))
327328
.usingRecursiveComparison()
328329
.isEqualTo(
329-
sut.loadClientRegistration(key2)
330+
sut.loadClientRegistration(key2, "testSource")
330331
)
331332
}
332333

@@ -350,11 +351,11 @@ class DiskCacheTest {
350351
region = ssoRegion
351352
)
352353

353-
assertThat(sut.loadClientRegistration(key)).isNotNull()
354+
assertThat(sut.loadClientRegistration(key, "testSource")).isNotNull()
354355

355356
sut.invalidateClientRegistration(key)
356357

357-
assertThat(sut.loadClientRegistration(key)).isNull()
358+
assertThat(sut.loadClientRegistration(key, "testSource")).isNull()
358359
assertThat(cacheFile).doesNotExist()
359360
}
360361

@@ -619,7 +620,7 @@ class DiskCacheTest {
619620
registration.setPosixFilePermissions(emptySet())
620621
assertPosixPermissions(registration, "---------")
621622

622-
assertThat(sut.loadClientRegistration(key)).isNotNull()
623+
assertThat(sut.loadClientRegistration(key, "testSource")).isNotNull()
623624

624625
assertPosixPermissions(registration, "rw-------")
625626
}

0 commit comments

Comments
 (0)