Skip to content
Permalink
Browse files

Add JSON spec to create Kitchen service via waiter cli (#736)

  • Loading branch information...
DaoWen authored and dposada committed May 13, 2019
1 parent ba0b075 commit 33cb9d251b228ea4e6cd86554684a7755dbc92c8
Showing with 25 additions and 0 deletions.
  1. +15 −0 containers/test-apps/kitchen/README.md
  2. +10 −0 containers/test-apps/kitchen/kitchen.json
@@ -69,3 +69,18 @@ $ ./bin/kitchen -p 8080 &
$ KITCHEN_AUTOSTART=false KITCHEN_HOST=localhost KITCHEN_PORT=8080 pytest
...
```

# Testing in Waiter

For convenience, a Waiter token specification for the Kitchen app is included in `kitchen.json`.
This makes it simple to start up an instance of Kitchen using the Waiter CLI:

```bash
$ waiter create --json ./kitchen.json
Attempting to create token on dev0...
Successfully created kitchen.
$ waiter ping kitchen
Pinging token kitchen at /status in dev0...
Ping successful.
Hello World
```
@@ -0,0 +1,10 @@
{
"name": "kitchen",
"cmd": "/opt/kitchen/kitchen -p $PORT0",
"cmd-type": "shell",
"cpus": 0.1,
"health-check-url": "/status",
"mem": 128,
"token": "kitchen",
"version": "0"
}

0 comments on commit 33cb9d2

Please sign in to comment.
You can’t perform that action at this time.