Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terratest for standard ohmyglb deployment with app #76

Merged
merged 2 commits into from
Apr 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions terratest/examples/unhealthy-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: unhealthy-app
name: unhealthy-app
spec:
replicas: 0
selector:
matchLabels:
run: unhealthy-app
template:
metadata:
labels:
run: unhealthy-app
spec:
containers:
- image: nginx
imagePullPolicy: Always
name: unhealthy-app
---
apiVersion: v1
kind: Service
metadata:
labels:
run: unhealthy-app
name: unhealthy-app
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
run: unhealthy-app
sessionAffinity: None
type: ClusterIP
7 changes: 7 additions & 0 deletions terratest/test/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
module ohmyterratest

go 1.14

require (
github.com/gruntwork-io/terratest v0.26.1
github.com/stretchr/testify v1.5.1
k8s.io/api v0.17.0
k8s.io/apimachinery v0.17.0
)
Loading