From 25bdf6811c71413921777cad73b6d039444600ff Mon Sep 17 00:00:00 2001 From: sunyajing Date: Mon, 13 Jun 2016 10:37:10 +0800 Subject: Modify compute agent set command Migrate ``compute agent set`` arguments: version, url, md5hash to be optional. BackwardsIncompatibleImpact Change-Id: I092b7ed24274bafa548f0537c4586504be3a2825 Co-Authored-By: Huanxuan Ao --- functional/tests/compute/v2/test_agent.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'functional/tests') diff --git a/functional/tests/compute/v2/test_agent.py b/functional/tests/compute/v2/test_agent.py index 2d7ea216..9622c1bf 100644 --- a/functional/tests/compute/v2/test_agent.py +++ b/functional/tests/compute/v2/test_agent.py @@ -64,10 +64,11 @@ class ComputeAgentTests(test.TestCase): url = "http://openstack" md5hash = hashlib.md5().hexdigest() - raw_output = self.openstack('compute agent set ' + - self.ID + ' ' + ver + ' ' + - url + ' ' + md5hash) - self.assertEqual('', raw_output) + self.openstack('compute agent set ' + + self.ID + + ' --agent-version ' + ver + + ' --url ' + url + + ' --md5hash ' + md5hash) raw_output = self.openstack('compute agent list') self.assertIn(self.ID, raw_output) -- cgit v1.2.1