Skip to content

Commit eaaa52d

Browse files
committed
add apiresourceschemas to e2e test
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> On-behalf-of: @SAP karol.szwaj@sap.com
1 parent 179c0af commit eaaa52d

3 files changed

Lines changed: 101 additions & 1 deletion

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
apiVersion: kube-bind.io/v1alpha2
2+
kind: APIResourceSchema
3+
metadata:
4+
name: foos.bar.io
5+
spec:
6+
group: bar.io
7+
informerScope: Namespaced
8+
names:
9+
kind: Foo
10+
plural: foos
11+
scope: Cluster
12+
versions:
13+
- name: v1alpha1
14+
schema:
15+
openAPIV3Schema:
16+
properties:
17+
spec:
18+
properties:
19+
deploymentName:
20+
type: string
21+
replicas:
22+
maximum: 10
23+
minimum: 1
24+
type: integer
25+
type: object
26+
status:
27+
properties:
28+
availableReplicas:
29+
type: integer
30+
phase:
31+
enum:
32+
- Pending
33+
- Running
34+
- Succeeded
35+
- Failed
36+
- Unknown
37+
type: string
38+
type: object
39+
type: object
40+
served: true
41+
storage: true
42+
subresources:
43+
status: {}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
apiVersion: kube-bind.io/v1alpha2
2+
kind: APIResourceSchema
3+
metadata:
4+
name: mangodbs.mangodb.com
5+
spec:
6+
group: mangodb.com
7+
informerScope: Namespaced
8+
names:
9+
kind: MangoDB
10+
listKind: MangoDBList
11+
plural: mangodbs
12+
singular: mangodb
13+
scope: Namespaced
14+
versions:
15+
- name: v1alpha1
16+
schema:
17+
openAPIV3Schema:
18+
properties:
19+
spec:
20+
properties:
21+
backup:
22+
default: false
23+
type: boolean
24+
region:
25+
default: us-east-1
26+
minLength: 1
27+
type: string
28+
tier:
29+
default: Shared
30+
enum:
31+
- Dedicated
32+
- Shared
33+
type: string
34+
tokenSecret:
35+
minLength: 1
36+
type: string
37+
required:
38+
- tokenSecret
39+
type: object
40+
status:
41+
properties:
42+
phase:
43+
enum:
44+
- Pending
45+
- Running
46+
- Succeeded
47+
- Failed
48+
- Unknown
49+
type: string
50+
type: object
51+
required:
52+
- spec
53+
type: object
54+
served: true
55+
storage: true
56+
subresources:
57+
status: {}

test/e2e/bind/happy-case_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func testHappyCase(t *testing.T, resourceScope apiextensionsv1.ResourceScope, in
6262
t.Logf("Creating provider workspace")
6363
providerConfig, providerKubeconfig := framework.NewWorkspace(t, framework.ClientConfig(t), framework.WithGenerateName("test-happy-case-provider"))
6464

65-
t.Logf("Creating CRDs on provider side")
65+
t.Logf("Creating APIResourceSchemas on provider side")
6666
providerfixtures.Bootstrap(t, framework.DiscoveryClient(t, providerConfig), framework.DynamicClient(t, providerConfig), nil)
6767

6868
t.Logf("Starting backend with random port")

0 commit comments

Comments
 (0)