@@ -22,6 +22,10 @@ generate_cyclonedx_sbom_for_npm_project() {
2222 echo " mock of generate_cyclonedx_sbom_for_npm_project()"
2323}
2424
25+ get_version () {
26+ export PACKAGE_VERSION=0.0.0
27+ }
28+
2529# --------------------------------------------------------------------------------
2630# ---------------------------------------Tests------------------------------------
2731# --------------------------------------------------------------------------------
@@ -80,7 +84,7 @@ generate_cyclonedx_sbom_for_npm_project() {
8084 unset OUTPUT_DIRECTORY
8185 run set_sbom_filename
8286
83- [ " ${lines[2 ]} " = " sBOM will be written to sbom_output/sbom.json" ]
87+ [ " ${lines[3 ]} " = " sBOM will be written to sbom_output/sbom-0.0.0.cdx .json" ]
8488 [ " $status " -eq 0 ]
8589}
8690
@@ -91,7 +95,7 @@ generate_cyclonedx_sbom_for_npm_project() {
9195
9296 run set_sbom_filename
9397
94- [ " ${lines[2 ]} " = " sBOM will be written to sbom_output/${BITBUCKET_REPO_SLUG} .json" ]
98+ [ " ${lines[3 ]} " = " sBOM will be written to sbom_output/${BITBUCKET_REPO_SLUG} -0.0.0.cdx .json" ]
9599 [ " $status " -eq 0 ]
96100}
97101
@@ -102,7 +106,7 @@ generate_cyclonedx_sbom_for_npm_project() {
102106
103107 run set_sbom_filename
104108
105- [ " ${lines[2 ]} " = " sBOM will be written to sbom_output/${SBOM_FILENAME} .json" ]
109+ [ " ${lines[3 ]} " = " sBOM will be written to sbom_output/${SBOM_FILENAME} .json" ]
106110 [ " $status " -eq 0 ]
107111}
108112
@@ -112,7 +116,7 @@ generate_cyclonedx_sbom_for_npm_project() {
112116
113117 run set_sbom_filename
114118
115- [ " ${lines[2 ]} " = " sBOM will be written to sbom_output/${BITBUCKET_REPO_SLUG} .xml" ]
119+ [ " ${lines[3 ]} " = " sBOM will be written to sbom_output/${BITBUCKET_REPO_SLUG} -0.0.0.cdx .xml" ]
116120 [ " $status " -eq 0 ]
117121}
118122
@@ -123,7 +127,7 @@ generate_cyclonedx_sbom_for_npm_project() {
123127
124128 run set_sbom_filename
125129
126- [ " ${lines[2 ]} " = " sBOM will be written to build/${BITBUCKET_REPO_SLUG} .xml" ]
130+ [ " ${lines[3 ]} " = " sBOM will be written to build/${BITBUCKET_REPO_SLUG} -0.0.0.cdx .xml" ]
127131 [ " $status " -eq 0 ]
128132}
129133
0 commit comments