FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

If storage pool of type RBD is not found then skip the tests for LXC by sanju1010 · Pull Request #320 · apache/cloudstack · GitHub

Repository navigation

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ def setUpClass(cls):
cls.api_client = cls.testClient.getApiClient()
cls.services = cls.testClient.getParsedTestDataConfig()
cls.hypervisor = cls.testClient.getHypervisorInfo()
cls.find_storage_pool = True
if cls.hypervisor.lower() == 'lxc':
if not find_storage_pool_type(cls.apiclient, storagetype='rbd'):
raise unittest.SkipTest("RBD storage type is required for data volumes for LXC")
if not find_storage_pool_type(cls.api_client, storagetype='rbd'):
cls.find_storage_pool = False
return
# Get Domain, Zone, Template
cls.domain = get_domain(cls.api_client)
cls.zone = get_zone(
Expand Down Expand Up @@ -94,6 +96,8 @@ def setUpClass(cls):

def setUp(self):

if not self.find_storage_pool:
self.skipTest("Skipping tests since RBD storage type is required for data volumes for LXC")
self.apiClient = self.testClient.getApiClient()
self.account = Account.create(
self.apiClient,
Expand Down

Back | FazBrowse Home | New Git URL