Merge pull request #46548 from Ch3LL/profit_test

profitbrick test: check for foo,bar username,password set in profitbrick config
This commit is contained in:
Nicole Thomas 2018-03-15 10:25:27 -04:00 committed by GitHub
commit 98e3260b9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,7 @@ class ProfitBricksTest(ShellCase):
username = config[profile_str][DRIVER_NAME]['username']
password = config[profile_str][DRIVER_NAME]['password']
datacenter_id = config[profile_str][DRIVER_NAME]['datacenter_id']
if username == '' or password == '' or datacenter_id == '':
if username in ('' or 'foo') or password in ('' or 'bar') or datacenter_id == '':
self.skipTest(
'A username, password, and an datacenter must be provided to '
'run these tests. Check '