add unit tests to stack package

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
Upstream-commit: 535af2d868
Component: cli
This commit is contained in:
Arash Deshmeh
2017-06-20 14:31:00 -04:00
parent 6f4d8ba43b
commit e2861e049e
25 changed files with 703 additions and 18 deletions
@@ -0,0 +1,29 @@
{
"Services": {
"visualizer": {
"Image": "busybox@sha256:32f093055929dbc23dec4d03e09dfe971f5973a9ca5cf059cbfb644c206aa83f",
"Networks": [
"webnet"
],
"Ports": [
{
"Port": 8080,
"Protocol": "tcp"
}
]
},
"web": {
"Image": "busybox@sha256:32f093055929dbc23dec4d03e09dfe971f5973a9ca5cf059cbfb644c206aa83f",
"Networks": [
"webnet"
],
"Ports": [
{
"Port": 80,
"Protocol": "tcp"
}
]
}
},
"Version": "0.1"
}
@@ -0,0 +1,3 @@
NAME SERVICES
service-name-bar 1
service-name-foo 1
@@ -0,0 +1 @@
service-name-foo
@@ -0,0 +1,2 @@
NAME SERVICES
service-name-foo 1
@@ -0,0 +1 @@
service-id-foo.1
@@ -0,0 +1 @@
service-id-foo.1
@@ -0,0 +1 @@
id-node-foo
@@ -0,0 +1 @@
xn4cypcov06f2w8gsbaf2lst3
@@ -0,0 +1 @@
id-foo
@@ -0,0 +1,2 @@
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
id-foo service-id-foo.1 myimage:mytag node-name-bar Ready Failed 2 hours ago
@@ -0,0 +1 @@
service-name-foo
@@ -0,0 +1 @@
service-name-foo
@@ -0,0 +1 @@
id-foo
@@ -0,0 +1,2 @@
ID NAME MODE REPLICAS IMAGE PORTS
id-foo name-foo replicated 0/2 busybox:latest *:0->3232/tcp