Skip to content

Commit

Permalink
Add smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bgandon committed Feb 13, 2024
1 parent 927a074 commit 6b32300
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ meta:
pipeline: (( concat meta.name "-release" ))
team: gk-plat-devs

test-errands: ~
test-errands: vbox-cpi-smoke-tests

initial_version: "0.4.3"

Expand Down
Empty file added jobs/vbox-cpi-smoke-tests/monit
Empty file.
9 changes: 9 additions & 0 deletions jobs/vbox-cpi-smoke-tests/spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: vbox-cpi-smoke-tests

templates:
bin/run: bin/run

packages: []

properties: {}
10 changes: 10 additions & 0 deletions jobs/vbox-cpi-smoke-tests/templates/bin/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -eo pipefail

(
set -x
payload='{ "method": "info", "arguments": [], "context": {} }'
/var/vcap/jobs/virtualbox_cpi/bin/cpi <<< "${payload}" 2> /dev/null \
| python3 -m "json.tool"
)
5 changes: 5 additions & 0 deletions manifests/bosh-virtualbox-cpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ instance_groups:
instances: 1
azs: [ z1 ]
jobs:

- name: virtualbox_cpi
release: bosh-virtualbox-cpi
properties:
Expand All @@ -14,6 +15,10 @@ instance_groups:
host: vbox-host.example.org
private_key: ((vbox_ssh.private_key))
username: example-vbox-username

- name: vbox-cpi-smoke-tests
release: bosh-virtualbox-cpi

stemcell: default
vm_type: default
networks: [ name: default ]
Expand Down

0 comments on commit 6b32300

Please sign in to comment.