Last active
May 11, 2020 22:07
-
-
Save jmrodri/76ef1ce004bd57210c7d7fe3ccf1590b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
option 1 | |
cases := []testcase{ | |
{ | |
name: "This test should pass", | |
restMapper: restMapper, | |
owner: &unstructured.Unstructured{ | |
Object: map[string]interface{}{ | |
"kind": "Deployment", | |
"apiVersion": "rbac.authorization.k8s.io/v1", | |
"metadata": map[string]interface{}{ | |
"name": "example-nginx-role", | |
"namespace": "ns", | |
, | |
}, | |
}, | |
dependent: &unstructured.Unstructured{ | |
Object: map[string]interface{}{ | |
"kind": "ClusterRole", | |
"apiVersion": "rbac.authorization.k8s.io/v1", | |
"metadata": map[string]interface{}{ | |
"name": "example-nginx-role", | |
"namespace": "ns", | |
}, | |
}, | |
}, | |
result: false, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment