Merge "Support 'name' field in capsule's container"

This commit is contained in:
Zuul 2019-04-10 03:32:32 +00:00 committed by Gerrit Code Review
commit 6cec75b904
3 changed files with 3 additions and 0 deletions

View File

@ -455,6 +455,7 @@ capsule_containers_list = {
'items': {
'type': 'object',
'properties': {
'name': container_name,
'image': image_name,
'command': capsule_container_command,
'args': capsule_container_args,

View File

@ -89,6 +89,7 @@ VALID_STATES = {
}
VALID_CONTAINER_FILED = {
'name': 'name',
'image': 'image',
'command': 'command',
'args': 'args',

View File

@ -31,6 +31,7 @@ class TestCapsuleController(api_base.FunctionalTest):
' "spec": {'
' "containers":'
' [{"env": {"ROOT_PASSWORD": "foo0"}, '
' "name": "test-container", '
' "image": "test",'
' "resources": '
' {"requests": {"cpu": 1, "memory": 1024}}'