Update test cases for test_bay.py and test_baymodel.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Fix Released
|
Undecided
|
Guangya Liu (Jay Lau) |
Bug Description
This is a follow up for the following gerrit review:
https:/
https:/
Planning to use following code style to make the code looks more cleaner.
- self.assertIn(
- self.assertIn(
- self.assertIn(
- self.assertIn(
- self.assertIn(
- self.assertIn(
- self.assertIn(
+ for key in ("name", "baymodel_id", "node_count", "status",
+ "api_address", "discovery_url", "node_addresses"):
+ self.assertIn(key, response)
Changed in magnum: | |
assignee: | nobody → Jay Lau (jay-lau-513) |
Changed in magnum: | |
milestone: | none → mitaka-1 |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. openstack. org/209078 /git.openstack. org/cgit/ openstack/ magnum/ commit/ ?id=d3a60915191 64cca4350d9ab08 2331ca05421dcf
Committed: https:/
Submitter: Jenkins
Branch: master
commit d3a6091519164cc a4350d9ab082331 ca05421dcf
Author: Jay Lau (Guangya Liu) <email address hidden>
Date: Tue Aug 4 09:56:55 2015 -0400
Update test cases for test_bay.py and test_baymodel.py
This is a follow up for the following gerrit review: /review. openstack. org/#/c/ 208137/ 1/magnum/ tests/unit/ api/controllers /v1/test_ bay.py /review. openstack. org/#/c/ 208137/ 1/magnum/ tests/unit/ api/controllers /v1/test_ baymodel. py
https:/
https:/
Closes-Bug: #1481765
Change-Id: Ifa134b6da6fadf 40e388aee2c6168 d777e112cab