Skip to content

Commit

Permalink
adding test-data
Browse files Browse the repository at this point in the history
  • Loading branch information
yue9944882 committed Aug 16, 2019
1 parent 421e7c0 commit 4a531c6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/integration/etcd/data.go
Expand Up @@ -526,6 +526,20 @@ func GetEtcdStorageDataForNamespace(namespace string) map[schema.GroupVersionRes
ExpectedEtcdPath: "/registry/runtimeclasses/rc2",
},
// --

// k8s.io/kubernetes/pkg/apis/flowcontrol/v1alpha1
gvr("flowcontrol.apiserver.k8s.io", "v1alpha1", "flowschemas"): {
Stub: `{"metadata": {"name": "fs1"}, "spec": {"priorityLevelConfiguration": {"name":"fs1"}, "rules":[{"subjects":[{"apiGroup":"flowcontrol.apiserver.k8s.io","kind":"Group","name":"system:masters"}],"rule":{"nonResourceURLs":["*"], "verbs":["*"]}}]}}`,
ExpectedEtcdPath: "/registry/flowschemas/fs1",
},
// --

// k8s.io/kubernetes/pkg/apis/settings/v1alpha1
gvr("flowcontrol.apiserver.k8s.io", "v1alpha1", "prioritylevelconfigurations"): {
Stub: `{"metadata": {"name": "pl1"}, "spec": {"exempt": true}}`,
ExpectedEtcdPath: "/registry/prioritylevelconfigurations/pl1",
},
// --
}

// k8s.io/kubernetes/pkg/apis/storage/v1beta1
Expand Down

0 comments on commit 4a531c6

Please sign in to comment.