@@ -28,11 +28,8 @@ import io.kotest.engine.spec.tempfile
2828import io.kotest.extensions.system.withEnvironment
2929import io.kotest.matchers.collections.containExactly
3030import io.kotest.matchers.collections.containExactlyInAnyOrder
31- import io.kotest.matchers.collections.shouldContainExactly
32- import io.kotest.matchers.collections.shouldContainExactlyInAnyOrder
3331import io.kotest.matchers.maps.beEmpty
3432import io.kotest.matchers.maps.containExactly as containExactlyEntries
35- import io.kotest.matchers.maps.shouldContainExactly
3633import io.kotest.matchers.nulls.beNull
3734import io.kotest.matchers.nulls.shouldNotBeNull
3835import io.kotest.matchers.should
@@ -63,9 +60,9 @@ class OrtConfigurationTest : WordSpec({
6360 ortConfig.forceOverwrite shouldBe true
6461
6562 with(ortConfig.licenseFilePatterns) {
66- licenseFilenames shouldContainExactly listOf ("license*")
67- patentFilenames shouldContainExactly listOf ("patents")
68- otherLicenseFilenames shouldContainExactly listOf ("readme*")
63+ licenseFilenames should containExactly ("license*")
64+ patentFilenames should containExactly ("patents")
65+ otherLicenseFilenames should containExactly ("readme*")
6966 }
7067
7168 ortConfig.packageCurationProviders should containExactly(
@@ -109,8 +106,8 @@ class OrtConfigurationTest : WordSpec({
109106 allowDynamicVersions shouldBe true
110107 skipExcluded shouldBe true
111108
112- enabledPackageManagers shouldContainExactlyInAnyOrder listOf ("Gradle ")
113- disabledPackageManagers shouldContainExactlyInAnyOrder listOf ("Maven ", "NPM ")
109+ enabledPackageManagers should containExactlyInAnyOrder ("Gradle ")
110+ disabledPackageManagers should containExactlyInAnyOrder ("Maven ", "NPM ")
114111
115112 packageManagers shouldNotBeNull {
116113 get("Gradle ") shouldNotBeNull {
@@ -119,7 +116,7 @@ class OrtConfigurationTest : WordSpec({
119116
120117 get("Yarn2 ") shouldNotBeNull {
121118 options shouldNotBeNull {
122- this shouldContainExactly mapOf ("disableRegistryCertificateVerification" to "false")
119+ this should containExactlyEntries ("disableRegistryCertificateVerification" to "false")
123120 }
124121 }
125122
@@ -132,42 +129,42 @@ class OrtConfigurationTest : WordSpec({
132129 with(ortConfig.advisor) {
133130 config shouldNotBeNull {
134131 get("GitHubDefects ") shouldNotBeNull {
135- options shouldContainExactly mapOf (
132+ options should containExactlyEntries (
136133 "endpointUrl" to "https://api.github.com/graphql",
137134 "labelFilter" to "!duplicate, !enhancement, !invalid, !question, !documentation, *",
138135 "maxNumberOfIssuesPerRepository" to "50",
139136 "parallelRequests" to "5"
140137 )
141138
142- secrets shouldContainExactly mapOf (
139+ secrets should containExactlyEntries (
143140 "token" to "githubAccessToken"
144141 )
145142 }
146143
147144 get("OssIndex ") shouldNotBeNull {
148- options shouldContainExactly mapOf (
145+ options should containExactlyEntries (
149146 "serverUrl" to "https://ossindex.sonatype.org/"
150147 )
151148
152- secrets shouldContainExactly mapOf (
149+ secrets should containExactlyEntries (
153150 "username" to "username",
154151 "password" to "password"
155152 )
156153 }
157154
158155 get("OSV ") shouldNotBeNull {
159- options shouldContainExactly mapOf (
156+ options should containExactlyEntries (
160157 "serverUrl" to "https://api.osv.dev"
161158 )
162159 }
163160
164161 get("VulnerableCode ") shouldNotBeNull {
165- options shouldContainExactly mapOf (
162+ options should containExactlyEntries (
166163 "serverUrl" to "http://localhost:8000",
167164 "readTimeout" to "40"
168165 )
169166
170- secrets shouldContainExactly mapOf (
167+ secrets should containExactlyEntries (
171168 "apiKey" to "0123456789012345678901234567890123456789"
172169 )
173170 }
@@ -210,7 +207,7 @@ class OrtConfigurationTest : WordSpec({
210207 }
211208 }
212209
213- detectedLicenseMapping shouldContainExactly mapOf (
210+ detectedLicenseMapping should containExactlyEntries (
214211 "BSD (Three Clause License )" to "BSD -3-clause",
215212 "LicenseRef -scancode-generic-cla" to "NOASSERTION "
216213 )
@@ -242,7 +239,7 @@ class OrtConfigurationTest : WordSpec({
242239
243240 config shouldNotBeNull {
244241 get("ScanCode ") shouldNotBeNull {
245- options shouldContainExactly mapOf (
242+ options should containExactlyEntries (
246243 "commandLine" to "--copyright,--license,--info,--strip-root,--timeout,300",
247244 "commandLineNonConfig" to "--processes,4",
248245 "preferFileLicense" to "false",
@@ -255,7 +252,7 @@ class OrtConfigurationTest : WordSpec({
255252 val urlMapping = " https://my-repo.example.org(?<repoPath>.*) -> " +
256253 " ssh://my-mapped-repo.example.org\$ {repoPath}"
257254
258- options shouldContainExactly mapOf (
255+ options should containExactlyEntries (
259256 "serverUrl" to "https://fossid.example.com/instance/",
260257 "projectName" to "My Project ",
261258 "namingScanPattern" to "#projectName_#repositoryName_#currentTimestamp_#deltaTag_#branch",
@@ -270,20 +267,20 @@ class OrtConfigurationTest : WordSpec({
270267 "sensitivity" to "10"
271268 )
272269
273- secrets shouldContainExactly mapOf (
270+ secrets should containExactlyEntries (
274271 "user" to "user",
275272 "apiKey" to "XYZ "
276273 )
277274 }
278275
279276 get("SCANOSS ") shouldNotBeNull {
280- options shouldContainExactly mapOf ("apiUrl" to "https://api.osskb.org/")
281- secrets shouldContainExactly mapOf ("apiKey" to "your API key")
277+ options should containExactlyEntries ("apiUrl" to "https://api.osskb.org/")
278+ secrets should containExactlyEntries ("apiKey" to "your API key")
282279 }
283280 }
284281
285282 storages shouldNotBeNull {
286- keys shouldContainExactlyInAnyOrder setOf (
283+ keys should containExactlyInAnyOrder (
287284 "local", "http", "aws", "clearlyDefined", "postgres", "sw360Configuration"
288285 )
289286
@@ -342,10 +339,10 @@ class OrtConfigurationTest : WordSpec({
342339 sw360Storage.token shouldBe " token"
343340 }
344341
345- storageReaders shouldContainExactly listOf ("local", "postgres", "http", "aws", "clearlyDefined")
346- storageWriters shouldContainExactly listOf ("postgres")
342+ storageReaders should containExactly ("local", "postgres", "http", "aws", "clearlyDefined")
343+ storageWriters should containExactly ("postgres")
347344
348- ignorePatterns shouldContainExactly listOf ("**/META -INF /DEPENDENCIES ")
345+ ignorePatterns should containExactly ("**/META -INF /DEPENDENCIES ")
349346
350347 provenanceStorage shouldNotBeNull {
351348 fileStorage shouldNotBeNull {
@@ -374,27 +371,27 @@ class OrtConfigurationTest : WordSpec({
374371
375372 with(ortConfig.reporter) {
376373 config shouldNotBeNull {
377- keys shouldContainExactlyInAnyOrder setOf ("CycloneDx ", "FossId ", "CtrlXAutomation ")
374+ keys should containExactlyInAnyOrder ("CycloneDx ", "FossId ", "CtrlXAutomation ")
378375
379376 get("CycloneDx ") shouldNotBeNull {
380- options shouldContainExactly mapOf (
377+ options should containExactlyEntries (
381378 "schema.version" to "1.6"
382379 )
383380 secrets should beEmpty()
384381 }
385382
386383 get("FossId ") shouldNotBeNull {
387- options shouldContainExactly mapOf (
384+ options should containExactlyEntries (
388385 "serverUrl" to "https://fossid.example.com/instance/"
389386 )
390- secrets shouldContainExactly mapOf (
387+ secrets should containExactlyEntries (
391388 "user" to "user",
392389 "apiKey" to "XYZ "
393390 )
394391 }
395392
396393 get("CtrlXAutomation ") shouldNotBeNull {
397- options shouldContainExactly mapOf (
394+ options should containExactlyEntries (
398395 "licenseCategoriesToInclude" to "include-in-disclosure-document"
399396 )
400397 secrets should beEmpty()
0 commit comments