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

Try KSQL #68

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Adds a test case stub to test CLI from locally built image
solsson committed Oct 3, 2017
commit 2c5e9e47fe70e9db838eeb5561d36bc3dc1a3594
73 changes: 73 additions & 0 deletions ksql/test/ksql-basic-tail.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
kind: ConfigMap
metadata:
name: ksql-basic-tail
namespace: test-kafka
apiVersion: v1
data:

setup.sh: |-
touch /tmp/testlog

# do nothing for now
tail -f /dev/null

tail -f /tmp/testlog

continue.sh: |-
exit 0

run.sh: |-
exit 0

---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: ksql-basic-tail
namespace: test-kafka
spec:
replicas: 1
template:
metadata:
labels:
test-target: kafka
test-type: readiness
spec:
containers:
- name: testcase
image: ksql-build
imagePullPolicy: Never
env:
- name: BOOTSTRAP
value: kafka-0.broker.kafka.svc.cluster.local:9092
- name: ZOOKEEPER
value: zookeeper.kafka.svc.cluster.local:2181
# Test set up
command:
- /bin/bash
- -e
- /test/setup.sh
# Test run, again and again
readinessProbe:
exec:
command:
- /bin/bash
- -e
- /test/run.sh
# JVM start is slow, can we keep producer started and restore the default preriod 10s?
periodSeconds: 30
# Test quit on nonzero exit
livenessProbe:
exec:
command:
- /bin/bash
- -e
- /test/continue.sh
volumeMounts:
- name: config
mountPath: /test
volumes:
- name: config
configMap:
name: ksql-basic-tail