Skip to content

Commit

Permalink
Add tests, clean up test names
Browse files Browse the repository at this point in the history
  • Loading branch information
micw523 committed Feb 13, 2019
1 parent d6cf9b9 commit d39401c
Show file tree
Hide file tree
Showing 7 changed files with 197 additions and 83 deletions.
218 changes: 135 additions & 83 deletions kubernetes/e2e_test/test_utils.py

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions kubernetes/e2e_test/test_yaml/multi-resource-with-list.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: v1
kind: PodList
items:
- apiVersion: v1
kind: Pod
metadata:
name: mock-pod-0
labels:
app: mock-pod-0
spec:
containers:
- name: mock-pod-0
image: busybox
command: ['sh', '-c', 'echo Hello Kubernetes! && sleep 3600']
- apiVersion: v1
kind: Pod
metadata:
name: mock-pod-1
labels:
app: mock-pod-1
spec:
containers:
- name: mock-pod-1
image: busybox
command: ['sh', '-c', 'echo Hello Kubernetes! && sleep 3600']
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: mock
labels:
app: mock
spec:
replicas: 3
selector:
matchLabels:
app: mock
template:
metadata:
labels:
app: mock
spec:
containers:
- name: mock
image: nginx:1.15.4
ports:
- containerPort: 80
15 changes: 15 additions & 0 deletions kubernetes/e2e_test/test_yaml/namespace-list.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: NamespaceList
items:
- apiVersion: v1
kind: Namespace
metadata:
name: mock-1
labels:
name: mock-1
- apiVersion: v1
kind: Namespace
metadata:
name: mock-2
labels:
name: mock-2

0 comments on commit d39401c

Please sign in to comment.