From 3d9f062d21403dff35bcdf2b47e0e536fc3f8a35 Mon Sep 17 00:00:00 2001 From: Yury Kulazhenkov Date: Tue, 30 Apr 2024 12:00:55 +0300 Subject: [PATCH 1/2] Enable API package tests in CI Signed-off-by: Yury Kulazhenkov --- .github/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 616c54053..910c1f18e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,6 +46,9 @@ jobs: - name: test cmd run: make test-cmd + - name: test api + run: make test-api + - name: test controllers on opensfhit run: CLUSTER_TYPE=openshift make test-controllers @@ -106,6 +109,9 @@ jobs: - name: test cmd run: make test-cmd + - name: test api + run: make test-api + - name: test controllers on opensfhit run: CLUSTER_TYPE=openshift make test-controllers From ec1fe2dc8fe7d0bbcf05b7b79dc0e4142c2afec3 Mon Sep 17 00:00:00 2001 From: Yury Kulazhenkov Date: Tue, 30 Apr 2024 12:02:09 +0300 Subject: [PATCH 2/2] Fix tests for api package Signed-off-by: Yury Kulazhenkov --- api/v1/testdata/TestIBRendering/simpleib.golden | 2 +- api/v1/testdata/TestRendering/chained.golden | 2 +- api/v1/testdata/TestRendering/simple.golden | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v1/testdata/TestIBRendering/simpleib.golden b/api/v1/testdata/TestIBRendering/simpleib.golden index 747dd5253..c88d26c35 100644 --- a/api/v1/testdata/TestIBRendering/simpleib.golden +++ b/api/v1/testdata/TestIBRendering/simpleib.golden @@ -9,6 +9,6 @@ "namespace": "testnamespace" }, "spec": { - "config": "{ \"cniVersion\":\"0.3.1\", \"name\":\"\",\"type\":\"ib-sriov\",\"capabilities\":foo,\"ipam\":{} }" + "config": "{ \"cniVersion\":\"1.0.0\", \"name\":\"\",\"type\":\"ib-sriov\",\"capabilities\":foo,\"ipam\":{} }" } } diff --git a/api/v1/testdata/TestRendering/chained.golden b/api/v1/testdata/TestRendering/chained.golden index 3d1c2be4a..156acf88b 100644 --- a/api/v1/testdata/TestRendering/chained.golden +++ b/api/v1/testdata/TestRendering/chained.golden @@ -9,6 +9,6 @@ "namespace": "testnamespace" }, "spec": { - "config": "{ \"cniVersion\":\"0.3.1\", \"name\":\"\",\"plugins\": [ {\"type\":\"sriov\",\"vlan\":0,\"vlanQoS\":0,\"ipam\":{} },\n{ \"type\": \"vrf\", \"vrfname\": \"blue\" }\n] }" + "config": "{ \"cniVersion\":\"1.0.0\", \"name\":\"\",\"plugins\": [ {\"type\":\"sriov\",\"vlan\":0,\"vlanQoS\":0,\"ipam\":{} },\n{ \"type\": \"vrf\", \"vrfname\": \"blue\" }\n] }" } } diff --git a/api/v1/testdata/TestRendering/simple.golden b/api/v1/testdata/TestRendering/simple.golden index b8f94bcc4..3eb98bbb3 100644 --- a/api/v1/testdata/TestRendering/simple.golden +++ b/api/v1/testdata/TestRendering/simple.golden @@ -9,6 +9,6 @@ "namespace": "testnamespace" }, "spec": { - "config": "{ \"cniVersion\":\"0.3.1\", \"name\":\"\",\"type\":\"sriov\",\"vlan\":0,\"vlanQoS\":0,\"ipam\":{} }" + "config": "{ \"cniVersion\":\"1.0.0\", \"name\":\"\",\"type\":\"sriov\",\"vlan\":0,\"vlanQoS\":0,\"ipam\":{} }" } }