diff options
| author | sunyajing <yajing.sun@easystack.cn> | 2016-06-13 10:37:10 +0800 |
|---|---|---|
| committer | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2016-07-11 18:07:34 +0800 |
| commit | 25bdf6811c71413921777cad73b6d039444600ff (patch) | |
| tree | b38ab497ca95a987543d88d6e387d0988302b1cb /functional | |
| parent | 4b61efe3f9f6158c6062ff3c56bb5116b7f08d87 (diff) | |
| download | python-openstackclient-25bdf6811c71413921777cad73b6d039444600ff.tar.gz | |
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 <huanxuan.ao@easystack.cn>
Diffstat (limited to 'functional')
| -rw-r--r-- | functional/tests/compute/v2/test_agent.py | 9 |
1 files changed, 5 insertions, 4 deletions
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) |
