Skip to content

Commit

Permalink
Fixed unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Springett <[email protected]>
  • Loading branch information
stevespringett committed Mar 22, 2024
1 parent b870a93 commit 74803ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions schema/bom-1.6.proto
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,11 @@ message License {
// Declared licenses and concluded licenses represent two different stages in the licensing process within software development. Declared licenses refer to the initial intention of the software authors regarding the licensing terms under which their code is released. On the other hand, concluded licenses are the result of a comprehensive analysis of the project's codebase to identify and confirm the actual licenses of the components used, which may differ from the initially declared licenses. While declared licenses provide an upfront indication of the licensing intentions, concluded licenses offer a more thorough understanding of the actual licensing within a project, facilitating proper compliance and risk management. Observed licenses are defined in `@.evidence.licenses`. Observed licenses form the evidence necessary to substantiate a concluded license.
enum LicenseAcknowledgementEnumeration {
// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX -- `null` is our fallback, doubling `unspecified`
LICENSING_ACK_UNSPECIFIED = 0;
LICENSE_ACKNOWLEDGEMENT_ENUMERATION_UNSPECIFIED = 0;
// Declared licenses represent the initial intentions of authors regarding the licensing terms of their code.
LICENSING_ACK_DECLARED = 1;
LICENSE_ACKNOWLEDGEMENT_ENUMERATION_DECLARED = 1;
// Concluded licenses are verified and confirmed.
LICENSING_ACK_CONCLUDED = 2;
LICENSE_ACKNOWLEDGEMENT_ENUMERATION_CONCLUDED = 2;
}

message Licensing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ components {
version: "9.0.14"
licenses {
expression: "EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0"
acknowledgement: LICENSING_ACK_DECLARED
acknowledgement: LICENSE_ACKNOWLEDGEMENT_ENUMERATION_DECLARED
}
}
4 changes: 2 additions & 2 deletions tools/src/test/resources/1.6/valid-license-id-1.6.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ components {
version: "9.0.14"
licenses {
license {
id: "Apache-2.0",
acknowledgement: LICENSING_ACK_DECLARED
id: "Apache-2.0"
acknowledgement: LICENSE_ACKNOWLEDGEMENT_ENUMERATION_DECLARED
}
}
}

0 comments on commit 74803ec

Please sign in to comment.