Merge "Adds client test for labels"

This commit is contained in:
Jenkins 2015-09-26 17:01:50 +00:00 committed by Gerrit Code Review
commit 2e58c5a0f0
2 changed files with 2 additions and 0 deletions

View File

@ -96,6 +96,7 @@ def random_baymodel_data(keypair_id=random_string(), image_id=random_string()):
"https_proxy": "https://proxy.com:%s" % generate_random_port(),
"no_proxy": ",".join(generate_random_ip() for x in range(3)),
"network_driver": "flannel",
"labels": {"K1": "V1", "K2": "V2"},
}
model = baymodel_model.BayModelEntity.from_dict(data)

View File

@ -102,6 +102,7 @@ class BaseMagnumClient(base.TestCase):
docker_volume_size=1,
network_driver='flannel',
coe=coe,
labels={"K1": "V1", "K2": "V2"},
)
return baymodel