From a42347be22a9bb53fcc4bbb088e4f4074cb54c76 Mon Sep 17 00:00:00 2001 From: Monis Khan Date: Tue, 13 Mar 2018 16:02:14 -0400 Subject: [PATCH] Update policy tests to reflect removal of write access on daemonsets Bug 1536304 Bug 1501514 Signed-off-by: Monis Khan --- .../bootstrap_cluster_roles.yaml | 36 +++++++++++++++-- .../bootstrap_policy_file.yaml | 40 +++++++++++++++++-- 2 files changed, 68 insertions(+), 8 deletions(-) diff --git a/test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml b/test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml index 40596d549b22..d6542a6eabd5 100644 --- a/test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml +++ b/test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml @@ -4857,7 +4857,6 @@ items: - apiGroups: - apps resources: - - daemonsets - deployments - deployments/rollback - deployments/scale @@ -4873,6 +4872,14 @@ items: - patch - update - watch + - apiGroups: + - apps + resources: + - daemonsets + verbs: + - get + - list + - watch - apiGroups: - autoscaling resources: @@ -4903,7 +4910,6 @@ items: - apiGroups: - extensions resources: - - daemonsets - deployments - deployments/rollback - deployments/scale @@ -4920,6 +4926,14 @@ items: - patch - update - watch + - apiGroups: + - extensions + resources: + - daemonsets + verbs: + - get + - list + - watch - apiGroups: - policy resources: @@ -5036,7 +5050,6 @@ items: - apiGroups: - apps resources: - - daemonsets - deployments - deployments/rollback - deployments/scale @@ -5052,6 +5065,14 @@ items: - patch - update - watch + - apiGroups: + - apps + resources: + - daemonsets + verbs: + - get + - list + - watch - apiGroups: - autoscaling resources: @@ -5082,7 +5103,6 @@ items: - apiGroups: - extensions resources: - - daemonsets - deployments - deployments/rollback - deployments/scale @@ -5099,6 +5119,14 @@ items: - patch - update - watch + - apiGroups: + - extensions + resources: + - daemonsets + verbs: + - get + - list + - watch - apiGroups: - policy resources: diff --git a/test/testdata/bootstrappolicy/bootstrap_policy_file.yaml b/test/testdata/bootstrappolicy/bootstrap_policy_file.yaml index 2fe6f6d99a48..211b540cb55b 100644 --- a/test/testdata/bootstrappolicy/bootstrap_policy_file.yaml +++ b/test/testdata/bootstrappolicy/bootstrap_policy_file.yaml @@ -5319,7 +5319,6 @@ items: - apps attributeRestrictions: null resources: - - daemonsets - deployments - deployments/rollback - deployments/scale @@ -5335,6 +5334,15 @@ items: - patch - update - watch + - apiGroups: + - apps + attributeRestrictions: null + resources: + - daemonsets + verbs: + - get + - list + - watch - apiGroups: - autoscaling attributeRestrictions: null @@ -5368,7 +5376,6 @@ items: - extensions attributeRestrictions: null resources: - - daemonsets - deployments - deployments/rollback - deployments/scale @@ -5385,6 +5392,15 @@ items: - patch - update - watch + - apiGroups: + - extensions + attributeRestrictions: null + resources: + - daemonsets + verbs: + - get + - list + - watch - apiGroups: - policy attributeRestrictions: null @@ -5510,7 +5526,6 @@ items: - apps attributeRestrictions: null resources: - - daemonsets - deployments - deployments/rollback - deployments/scale @@ -5526,6 +5541,15 @@ items: - patch - update - watch + - apiGroups: + - apps + attributeRestrictions: null + resources: + - daemonsets + verbs: + - get + - list + - watch - apiGroups: - autoscaling attributeRestrictions: null @@ -5559,7 +5583,6 @@ items: - extensions attributeRestrictions: null resources: - - daemonsets - deployments - deployments/rollback - deployments/scale @@ -5576,6 +5599,15 @@ items: - patch - update - watch + - apiGroups: + - extensions + attributeRestrictions: null + resources: + - daemonsets + verbs: + - get + - list + - watch - apiGroups: - policy attributeRestrictions: null