add test for container/pod metadata in status/list APIs
Signed-off-by: HaoZhang <crazykev@zju.edu.cn>
This commit is contained in:
parent
ca59eaf1a4
commit
018c4db06d
5 changed files with 116 additions and 3 deletions
3
test/testdata/container_config.json
vendored
3
test/testdata/container_config.json
vendored
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"metadata": {
|
||||
"name": "container1"
|
||||
"name": "container1",
|
||||
"attempt": 1
|
||||
},
|
||||
"image": {
|
||||
"image": "docker://redis:latest"
|
||||
|
|
5
test/testdata/sandbox_config.json
vendored
5
test/testdata/sandbox_config.json
vendored
|
@ -1,6 +1,9 @@
|
|||
{
|
||||
"metadata": {
|
||||
"name": "podsandbox1"
|
||||
"name": "podsandbox1",
|
||||
"uid": "redhat-test-ocid",
|
||||
"namespace": "redhat.test.ocid",
|
||||
"attempt": 1
|
||||
},
|
||||
"hostname": "ocic_host",
|
||||
"log_directory": ".",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue