Skip to content

Commit

Permalink
selinuxpolicy: Prefix platform version with "v"
Browse files Browse the repository at this point in the history
Signed-off-by: Swati Sehgal <[email protected]>
  • Loading branch information
swatisehgal committed Jul 14, 2022
1 parent be11cad commit 9b193f6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pkg/assets/rte/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

const (
OCPVersion411 = "4.11"
OCPVersion411 = "v4.11"
)

//go:embed selinuxinstall.service.template
Expand Down
4 changes: 2 additions & 2 deletions pkg/manifests/manifests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,13 +578,13 @@ func TestMachineConfig(t *testing.T) {
testCases := []testCase{
{
name: "OCP 4.10",
platformVersion: "4.10",
platformVersion: "v4.10",
expectedFileNum: 3,
expectedUnitNum: 1,
},
{
name: "OCP 4.11",
platformVersion: "4.11",
platformVersion: "v4.11",
expectedFileNum: 3,
expectedUnitNum: 1,
},
Expand Down
18 changes: 9 additions & 9 deletions pkg/manifests/rte/rte_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ func TestClone(t *testing.T) {
{
name: "kubernetes manifests",
plat: platform.Kubernetes,
platVersion: platform.Version("1.24"),
platVersion: platform.Version("v1.24"),
},
{
name: "openshift manifests",
plat: platform.OpenShift,
platVersion: platform.Version("4.10"),
platVersion: platform.Version("v4.10"),
},
{
name: "openshift manifests",
plat: platform.OpenShift,
platVersion: platform.Version("4.11"),
platVersion: platform.Version("v4.11"),
},
}

Expand All @@ -76,22 +76,22 @@ func TestRender(t *testing.T) {
{
name: "kubernetes manifests 1.23",
plat: platform.Kubernetes,
platVersion: platform.Version("1.23"),
platVersion: platform.Version("v1.23"),
},
{
name: "kubernetes manifests 1.24",
plat: platform.Kubernetes,
platVersion: platform.Version("1.24"),
platVersion: platform.Version("v1.24"),
},
{
name: "openshift manifests 4.10",
plat: platform.OpenShift,
platVersion: platform.Version("4.10"),
platVersion: platform.Version("v4.10"),
},
{
name: "openshift manifests 4.11",
plat: platform.OpenShift,
platVersion: platform.Version("4.11"),
platVersion: platform.Version("v4.11"),
},
}

Expand Down Expand Up @@ -121,12 +121,12 @@ func TestGetManifestsOpenShift(t *testing.T) {
{
name: "openshift manifests 4.10",
plat: platform.OpenShift,
platVersion: platform.Version("4.10"),
platVersion: platform.Version("v4.10"),
},
{
name: "openshift manifests 4.11",
plat: platform.OpenShift,
platVersion: platform.Version("4.11"),
platVersion: platform.Version("v4.11"),
},
}
for _, tc := range testCases {
Expand Down

0 comments on commit 9b193f6

Please sign in to comment.