From 6762978470035804fd9f688dd5eda14432997021 Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Mon, 5 Oct 2015 22:57:07 -0400 Subject: [PATCH] Correct compatibility test to include kind/apiVersion for scheduler json --- .../algorithmprovider/defaults/compatibility_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/pkg/scheduler/algorithmprovider/defaults/compatibility_test.go b/plugin/pkg/scheduler/algorithmprovider/defaults/compatibility_test.go index d7ee5771754..0288bae78d8 100644 --- a/plugin/pkg/scheduler/algorithmprovider/defaults/compatibility_test.go +++ b/plugin/pkg/scheduler/algorithmprovider/defaults/compatibility_test.go @@ -34,6 +34,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) { // Do not change this JSON. A failure indicates backwards compatibility with 1.0 was broken. "1.0": { JSON: `{ + "kind": "Policy", + "apiVersion": "v1", "predicates": [ {"name": "MatchNodeSelector"}, {"name": "PodFitsResources"}, @@ -69,6 +71,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) { // Do not change this JSON after 1.1 is tagged. A failure indicates backwards compatibility with 1.1 was broken. "1.1": { JSON: `{ + "kind": "Policy", + "apiVersion": "v1", "predicates": [ {"name": "PodFitsHostPorts"} ],"priorities": [