Skip to content

Commit c5547f6

Browse files
committed
test(spdx): Use the "official" example.com as the domain name
Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 2ccef49 commit c5547f6

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

plugins/reporters/spdx/src/funTest/kotlin/SpdxDocumentReporterFunTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ private val ortResult = OrtResult(
242242
Package(
243243
id = Identifier("Maven:first-package-group:first-package:0.0.1"),
244244
binaryArtifact = RemoteArtifact(
245-
url = "https://some-host.com/first-package.jar",
245+
url = "https://example.com/first-package.jar",
246246
hash = Hash.create("0000000000000000000000000000000000000000")
247247
),
248248
concludedLicense = "BSD-2-Clause AND BSD-3-Clause AND MIT".toSpdx(),
@@ -252,7 +252,7 @@ private val ortResult = OrtResult(
252252
"license finding.",
253253
homepageUrl = "first package's homepage URL",
254254
sourceArtifact = RemoteArtifact(
255-
url = "https://some-host.com/first-package-sources.jar",
255+
url = "https://example.com/first-package-sources.jar",
256256
hash = Hash.create("0000000000000000000000000000000000000000")
257257
),
258258
vcs = VcsInfo(
@@ -317,7 +317,7 @@ private val ortResult = OrtResult(
317317
description = "A package with a source artifact scan result.",
318318
homepageUrl = "",
319319
sourceArtifact = RemoteArtifact(
320-
url = "https://some-host.com/seventh-package-sources.jar",
320+
url = "https://example.com/seventh-package-sources.jar",
321321
hash = Hash.create("0000000000000000000000000000000000000000")
322322
),
323323
vcs = VcsInfo.EMPTY
@@ -388,7 +388,7 @@ private val ortResult = OrtResult(
388388
ScanResult(
389389
provenance = ArtifactProvenance(
390390
sourceArtifact = RemoteArtifact(
391-
url = "https://some-host.com/seventh-package-sources.jar",
391+
url = "https://example.com/seventh-package-sources.jar",
392392
hash = Hash.create("0000000000000000000000000000000000000000")
393393
)
394394
),

plugins/reporters/spdx/src/funTest/resources/spdx-document-reporter-expected-output.spdx.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
} ],
3838
"copyrightText" : "Copyright 2020 Some copyright holder in VCS\nCopyright 2020 Some copyright holder in source artifact\nCopyright 2020 Some other copyright holder in source artifact",
3939
"description" : "A package with all supported attributes set, with a VCS URL containing a user name, and with two scan results for the VCS containing copyright findings matched to a license finding.",
40-
"downloadLocation" : "https://some-host.com/first-package.jar",
40+
"downloadLocation" : "https://example.com/first-package.jar",
4141
"externalRefs" : [ {
4242
"referenceCategory" : "PACKAGE_MANAGER",
4343
"referenceType" : "purl",
@@ -78,7 +78,7 @@
7878
} ],
7979
"copyrightText" : "Copyright 2020 Some copyright holder in VCS\nCopyright 2020 Some copyright holder in source artifact\nCopyright 2020 Some other copyright holder in source artifact",
8080
"description" : "A package with all supported attributes set, with a VCS URL containing a user name, and with two scan results for the VCS containing copyright findings matched to a license finding.",
81-
"downloadLocation" : "https://some-host.com/first-package-sources.jar",
81+
"downloadLocation" : "https://example.com/first-package-sources.jar",
8282
"externalRefs" : [ {
8383
"referenceCategory" : "PACKAGE_MANAGER",
8484
"referenceType" : "purl",
@@ -146,7 +146,7 @@
146146
} ],
147147
"copyrightText" : "Copyright 2020 Some copyright holder in source artifact",
148148
"description" : "A package with a source artifact scan result.",
149-
"downloadLocation" : "https://some-host.com/seventh-package-sources.jar",
149+
"downloadLocation" : "https://example.com/seventh-package-sources.jar",
150150
"externalRefs" : [ {
151151
"referenceCategory" : "PACKAGE_MANAGER",
152152
"referenceType" : "purl",

plugins/reporters/spdx/src/funTest/resources/spdx-document-reporter-expected-output.spdx.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ packages:
5151
description: "A package with all supported attributes set, with a VCS URL containing\
5252
\ a user name, and with two scan results for the VCS containing copyright findings\
5353
\ matched to a license finding."
54-
downloadLocation: "https://some-host.com/first-package.jar"
54+
downloadLocation: "https://example.com/first-package.jar"
5555
externalRefs:
5656
- referenceCategory: "PACKAGE_MANAGER"
5757
referenceType: "purl"
@@ -99,7 +99,7 @@ packages:
9999
description: "A package with all supported attributes set, with a VCS URL containing\
100100
\ a user name, and with two scan results for the VCS containing copyright findings\
101101
\ matched to a license finding."
102-
downloadLocation: "https://some-host.com/first-package-sources.jar"
102+
downloadLocation: "https://example.com/first-package-sources.jar"
103103
externalRefs:
104104
- referenceCategory: "PACKAGE_MANAGER"
105105
referenceType: "purl"
@@ -159,7 +159,7 @@ packages:
159159
checksumValue: "0000000000000000000000000000000000000000"
160160
copyrightText: "Copyright 2020 Some copyright holder in source artifact"
161161
description: "A package with a source artifact scan result."
162-
downloadLocation: "https://some-host.com/seventh-package-sources.jar"
162+
downloadLocation: "https://example.com/seventh-package-sources.jar"
163163
externalRefs:
164164
- referenceCategory: "PACKAGE_MANAGER"
165165
referenceType: "purl"

0 commit comments

Comments
 (0)