Skip to content

Commit 73e5980

Browse files
Reword fips to fips-distribution to make purpose clear (#7878)
* Reword fips to fips-distribution to make purpose clear * Fix unit test
1 parent 059fa0e commit 73e5980

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/pkg/release/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (v VersionInfo) String() string {
116116
sb.WriteString(" (build: ")
117117
sb.WriteString(v.Commit)
118118
if v.FIPSDistribution {
119-
sb.WriteString(" fips: true")
119+
sb.WriteString(" fips-distribution: true")
120120
}
121121
sb.WriteString(" at ")
122122
sb.WriteString(v.BuildTime.Format("2006-01-02 15:04:05 -0700 MST"))

internal/pkg/release/version_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ func TestVersion(t *testing.T) {
7676
func Test_VersionInfo_WithFIPS(t *testing.T) {
7777
info := Info()
7878
info.FIPSDistribution = false
79-
assert.NotContains(t, info.String(), "fips:", "found fips indicator")
79+
assert.NotContains(t, info.String(), "fips-distribution:", "found fips indicator")
8080
info.FIPSDistribution = true
81-
assert.Contains(t, info.String(), "fips: true", "did not find fips indicator")
81+
assert.Contains(t, info.String(), "fips-distribution: true", "did not find fips indicator")
8282
}
8383

8484
func TestFIPS(t *testing.T) {

0 commit comments

Comments
 (0)