Replace planning-era names and squash initial schema
Use descriptive test and executable names so implementation surfaces do not depend on journal organization. Consolidate the unreleased migration history into the authoritative initial schema because no deployed database requires an upgrade path.
This commit is contained in:
parent
0053860c95
commit
15eb0038d2
1 changed files with 299 additions and 436 deletions
39
tests/kind/runtime-health-job.yaml.in
Normal file
39
tests/kind/runtime-health-job.yaml.in
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: @@JOB_NAME@@
|
||||
namespace: nuthatch-testbed
|
||||
spec:
|
||||
activeDeadlineSeconds: 60
|
||||
backoffLimit: 0
|
||||
template:
|
||||
spec:
|
||||
automountServiceAccountToken: false
|
||||
enableServiceLinks: false
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: health
|
||||
image: @@CURL_IMAGE@@
|
||||
imagePullPolicy: Never
|
||||
command: [/bin/sh, -ec]
|
||||
args:
|
||||
- |
|
||||
base="https://nuthatch-@@LANE@@:8080"
|
||||
test "$(
|
||||
curl --insecure --silent --output /tmp/health \
|
||||
--write-out '%{http_code}' "$base/healthz"
|
||||
)" = 200
|
||||
grep -F '"ok":true' /tmp/health
|
||||
test "$(
|
||||
curl --insecure --silent --output /tmp/ready \
|
||||
--write-out '%{http_code}' "$base/readyz"
|
||||
)" = "@@READY_STATUS@@"
|
||||
curl --insecure --silent --output /dev/null "$base/app"
|
||||
test "$(
|
||||
curl --insecure --silent --output /dev/null \
|
||||
--write-out '%{http_code}' "$base/api/session"
|
||||
)" = 303
|
||||
printf 'runtime health semantics passed\n'
|
||||
resources:
|
||||
requests: {cpu: 25m, memory: 16Mi}
|
||||
limits: {cpu: 250m, memory: 64Mi}
|
||||
Loading…
Reference in a new issue