mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 01:32:18 +02:00
Enable Flake8 rule W391 (#6606)
Best practice is to have one blank line at the end of Python files. Remove unneeded blank lines from the end of files
This commit is contained in:
parent
e65c22d883
commit
8e538028b2
7
.github/linters/.flake8
vendored
7
.github/linters/.flake8
vendored
@ -15,5 +15,10 @@
|
|||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
# W291 Trailing whitespace
|
||||||
|
# W292 No newline at end of file
|
||||||
|
# W293 Blank line contains whitespace
|
||||||
|
# W391 Blank line at end of file
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
select = W291,W292,W293
|
select = W291,W292,W293,W391
|
||||||
|
|||||||
@ -40,4 +40,3 @@ def lookup_api(api_name):
|
|||||||
else: api = matchingapi[0]
|
else: api = matchingapi[0]
|
||||||
if api: api = getattr(api,"implementor")
|
if api: api = getattr(api,"implementor")
|
||||||
return api
|
return api
|
||||||
|
|
||||||
|
|||||||
@ -194,5 +194,3 @@ for name,meth in load_dynamic_methods():
|
|||||||
implementor = CloudAPI
|
implementor = CloudAPI
|
||||||
|
|
||||||
del name,meth,describe,load_dynamic_methods
|
del name,meth,describe,load_dynamic_methods
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -172,4 +172,3 @@ class ConfigFileOps:
|
|||||||
self.add_lines(oldLine, False)
|
self.add_lines(oldLine, False)
|
||||||
else:
|
else:
|
||||||
self.replace_lines(newLine, oldLine, False)
|
self.replace_lines(newLine, oldLine, False)
|
||||||
|
|
||||||
|
|||||||
@ -156,4 +156,3 @@ def makeOwnerFileName():
|
|||||||
hostIp = successToMap(get_master_ip())['ip']
|
hostIp = successToMap(get_master_ip())['ip']
|
||||||
ownerFileName = OWNER_FILE_PREFIX + hostIp.replace('.', '_')
|
ownerFileName = OWNER_FILE_PREFIX + hostIp.replace('.', '_')
|
||||||
return ownerFileName
|
return ownerFileName
|
||||||
|
|
||||||
|
|||||||
@ -102,4 +102,3 @@ class OvmHaHeartBeat(object):
|
|||||||
stopOldHeartBeat(pid)
|
stopOldHeartBeat(pid)
|
||||||
|
|
||||||
setupHeartBeat()
|
setupHeartBeat()
|
||||||
|
|
||||||
|
|||||||
@ -77,4 +77,3 @@ EOF
|
|||||||
doCmd(cmd)
|
doCmd(cmd)
|
||||||
cmd = ['service o2cb start %s'%cluster]
|
cmd = ['service o2cb start %s'%cluster]
|
||||||
doCmd(cmd)
|
doCmd(cmd)
|
||||||
|
|
||||||
|
|||||||
@ -438,41 +438,3 @@ class OvmSecurityGroup(OvmObject):
|
|||||||
return [True, True, True, True, True, True]
|
return [True, True, True, True, True, True]
|
||||||
|
|
||||||
return [(vm_name != _vm_name), (vm_id != _vm_id), (vm_ip != _vm_ip), (dom_id != _dom_id), (signature != _signature), (seqno != _seqno)]
|
return [(vm_name != _vm_name), (vm_id != _vm_id), (vm_ip != _vm_ip), (dom_id != _dom_id), (signature != _signature), (seqno != _seqno)]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -427,5 +427,3 @@ if this doesn't resolve the problem, please check oracle manual to see how to of
|
|||||||
errmsg = fmt_err_msg(e)
|
errmsg = fmt_err_msg(e)
|
||||||
logger.error(OvmStoragePool.copyVolume, errmsg)
|
logger.error(OvmStoragePool.copyVolume, errmsg)
|
||||||
raise XmlRpcFault(toErrCode(OvmStoragePool, OvmStoragePool.copyVolume), errmsg)
|
raise XmlRpcFault(toErrCode(OvmStoragePool, OvmStoragePool.copyVolume), errmsg)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -153,6 +153,3 @@ class OvmVolume(OvmObject):
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print OvmVolume.detachOrAttachIso(sys.argv[1], '', False)
|
print OvmVolume.detachOrAttachIso(sys.argv[1], '', False)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -679,4 +679,3 @@ class MigrationContext:
|
|||||||
def rollback(self):raise NotImplementedError
|
def rollback(self):raise NotImplementedError
|
||||||
def get_schema_level(self):raise NotImplementedError
|
def get_schema_level(self):raise NotImplementedError
|
||||||
def set_schema_level(self,l):raise NotImplementedError
|
def set_schema_level(self,l):raise NotImplementedError
|
||||||
|
|
||||||
|
|||||||
@ -163,4 +163,3 @@ class networkConfig:
|
|||||||
type = "dev"
|
type = "dev"
|
||||||
|
|
||||||
return networkConfig.devInfo(macAddr, ipAddr, netmask, None, type, dev)
|
return networkConfig.devInfo(macAddr, ipAddr, netmask, None, type, dev)
|
||||||
|
|
||||||
|
|||||||
@ -120,4 +120,3 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
ret = insert_host_entry(mac, ip, hostname, dns, gateway, next_server)
|
ret = insert_host_entry(mac, ip, hostname, dns, gateway, next_server)
|
||||||
sys.exit(ret)
|
sys.exit(ret)
|
||||||
|
|
||||||
|
|||||||
@ -72,4 +72,3 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
(kernel, initrd, copy_to) = sys.argv[1:]
|
(kernel, initrd, copy_to) = sys.argv[1:]
|
||||||
sys.exit(prepare())
|
sys.exit(prepare())
|
||||||
|
|
||||||
|
|||||||
@ -258,4 +258,3 @@ def get_vm_group_perfmon(args={}):
|
|||||||
else:
|
else:
|
||||||
result += ',' + str(vm_count) + '.' + str(counter_count) + ':' + str(average_memory)
|
result += ',' + str(vm_count) + '.' + str(counter_count) + ':' + str(average_memory)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|||||||
@ -309,4 +309,3 @@ if __name__ == '__main__':
|
|||||||
else:
|
else:
|
||||||
logging.debug("Unknown command: " + cmd)
|
logging.debug("Unknown command: " + cmd)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|||||||
@ -169,4 +169,3 @@ class TestPrimaryResourceLimitsVolume(cloudstackTestCase):
|
|||||||
self.assertEqual(response[0], PASS, response[1])
|
self.assertEqual(response[0], PASS, response[1])
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@ -334,4 +334,3 @@ class TestDeployVmWithMetaData(cloudstackTestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@ -349,5 +349,3 @@ class TestIPResourceCountVPC(cloudstackTestCase):
|
|||||||
account_list = Account.list(self.apiclient, id=self.account.id)
|
account_list = Account.list(self.apiclient, id=self.account.id)
|
||||||
totalip = account_list[0].iptotal
|
totalip = account_list[0].iptotal
|
||||||
self.assertTrue(totalip - totalip_1 == 3, "publicip count is 3")
|
self.assertTrue(totalip - totalip_1 == 3, "publicip count is 3")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -546,4 +546,3 @@ class TestIsolatedNetworkDelete(cloudstackTestCase):
|
|||||||
)
|
)
|
||||||
cls._cleanup.append(network)
|
cls._cleanup.append(network)
|
||||||
return network
|
return network
|
||||||
|
|
||||||
|
|||||||
@ -1124,5 +1124,3 @@ class TestSharedNetwork(cloudstackTestCase):
|
|||||||
apiclient,
|
apiclient,
|
||||||
user.id
|
user.id
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1082,6 +1082,3 @@ class TestDeployVMAffinityGroups(cloudstackTestCase):
|
|||||||
|
|
||||||
wait_for_cleanup(self.api_client, ["expunge.delay", "expunge.interval"])
|
wait_for_cleanup(self.api_client, ["expunge.delay", "expunge.interval"])
|
||||||
self.cleanup.append(aff_grp)
|
self.cleanup.append(aff_grp)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -120,4 +120,3 @@ class TestBaremetal(cloudstackTestCase):
|
|||||||
cmd.endip = "10.1.1.40"
|
cmd.endip = "10.1.1.40"
|
||||||
cmd.forVirtualNetwork="false"
|
cmd.forVirtualNetwork="false"
|
||||||
self.apiclient.createVlanIpRange(cmd)
|
self.apiclient.createVlanIpRange(cmd)
|
||||||
|
|
||||||
|
|||||||
@ -329,4 +329,3 @@ class TestBrocadeVcs(cloudstackTestCase):
|
|||||||
Network.delete(self.network, self.apiclient)
|
Network.delete(self.network, self.apiclient)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@ -303,4 +303,3 @@ class TestSnapshotRootDisk(cloudstackTestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@ -2124,4 +2124,3 @@ class TestDeployVMs(cloudstackTestCase):
|
|||||||
self.debug("Success: Updating dhcp config params with invalid values is not allowed\
|
self.debug("Success: Updating dhcp config params with invalid values is not allowed\
|
||||||
and throws following message: %s" % e)
|
and throws following message: %s" % e)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@ -2125,6 +2125,3 @@ class TestInvalidParametersForEgress(cloudstackTestCase):
|
|||||||
domainid=self.account.domainid
|
domainid=self.account.domainid
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -4492,6 +4492,3 @@ class TestInstances(cloudstackTestCase):
|
|||||||
"Warning: Exception in expunging vms vm3 and vm4 : %s" %
|
"Warning: Exception in expunging vms vm3 and vm4 : %s" %
|
||||||
e)
|
e)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -861,6 +861,3 @@ class TestTemplates(cloudstackTestCase):
|
|||||||
)
|
)
|
||||||
del self.services["privatetemplate"]["ostype"]
|
del self.services["privatetemplate"]["ostype"]
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -367,6 +367,3 @@ class TestVMware(cloudstackTestCase):
|
|||||||
snapshot_created_1,
|
snapshot_created_1,
|
||||||
"VM Snapshot creation failed"
|
"VM Snapshot creation failed"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -286,4 +286,3 @@ class TestHypervisorCapabilities(cloudstackTestCase):
|
|||||||
cmd = listHypervisorCapabilities.listHypervisorCapabilitiesCmd()
|
cmd = listHypervisorCapabilities.listHypervisorCapabilitiesCmd()
|
||||||
cmd.id = id
|
cmd.id = id
|
||||||
return self.apiclient.listHypervisorCapabilities(cmd)
|
return self.apiclient.listHypervisorCapabilities(cmd)
|
||||||
|
|
||||||
|
|||||||
@ -124,4 +124,3 @@ class TestIsolatedNetworkInvalidGw(cloudstackTestCase):
|
|||||||
netmask="255.0.255.0",
|
netmask="255.0.255.0",
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@ -304,4 +304,3 @@ class TestLdap(cloudstackTestCase):
|
|||||||
except Exception as p:
|
except Exception as p:
|
||||||
self.debug("login operation failed %s" % p)
|
self.debug("login operation failed %s" % p)
|
||||||
self.reason = "Login operation Failed %s" % p
|
self.reason = "Login operation Failed %s" % p
|
||||||
|
|
||||||
|
|||||||
@ -594,5 +594,3 @@ class TestLdap(cloudstackTestCase):
|
|||||||
"", "", self.parent_domain.name, method="POST")
|
"", "", self.parent_domain.name, method="POST")
|
||||||
self.debug(loginRes)
|
self.debug(loginRes)
|
||||||
self.assertEqual(loginRes, None, self.reason)
|
self.assertEqual(loginRes, None, self.reason)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -621,4 +621,3 @@ class TestMulipleNicSupport(cloudstackTestCase):
|
|||||||
self.fail("Exception occurred: %s" % e)
|
self.fail("Exception occurred: %s" % e)
|
||||||
|
|
||||||
self.verify_network_rules(self.virtual_machine1.id)
|
self.verify_network_rules(self.virtual_machine1.id)
|
||||||
|
|
||||||
|
|||||||
@ -380,4 +380,3 @@ class TestEnableVPNOverRvR(cloudstackTestCase):
|
|||||||
"List remote VPNs should not return empty response"
|
"List remote VPNs should not return empty response"
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@ -955,4 +955,3 @@ class TestAddRemoveHosts(cloudstackTestCase):
|
|||||||
xen_server = cls.testdata[TestData.xenServer]
|
xen_server = cls.testdata[TestData.xenServer]
|
||||||
|
|
||||||
cls.xen_session.xenapi.login_with_password(xen_server[TestData.username], xen_server[TestData.password])
|
cls.xen_session.xenapi.login_with_password(xen_server[TestData.username], xen_server[TestData.password])
|
||||||
|
|
||||||
|
|||||||
@ -624,4 +624,3 @@ class TestManagedSystemVMs(cloudstackTestCase):
|
|||||||
xen_server = cls.testdata[TestData.xenServer]
|
xen_server = cls.testdata[TestData.xenServer]
|
||||||
|
|
||||||
cls.xen_session.xenapi.login_with_password(xen_server[TestData.username], xen_server[TestData.password])
|
cls.xen_session.xenapi.login_with_password(xen_server[TestData.username], xen_server[TestData.password])
|
||||||
|
|
||||||
|
|||||||
@ -1767,4 +1767,3 @@ class TestSnapshots(cloudstackTestCase):
|
|||||||
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
|
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
|
||||||
|
|
||||||
sf_util.check_list(sf_volumes, expected_num_volumes, self, volume_err_msg)
|
sf_util.check_list(sf_volumes, expected_num_volumes, self, volume_err_msg)
|
||||||
|
|
||||||
|
|||||||
@ -2710,4 +2710,3 @@ class TestVolumes(cloudstackTestCase):
|
|||||||
xen_server = cls.testdata[TestData.xenServer]
|
xen_server = cls.testdata[TestData.xenServer]
|
||||||
|
|
||||||
cls.xen_session.xenapi.login_with_password(xen_server[TestData.username], xen_server[TestData.password])
|
cls.xen_session.xenapi.login_with_password(xen_server[TestData.username], xen_server[TestData.password])
|
||||||
|
|
||||||
|
|||||||
@ -2149,5 +2149,3 @@ class TestStoragePool(cloudstackTestCase):
|
|||||||
host, port = cfg['SP_API_HTTP'].split(':')
|
host, port = cfg['SP_API_HTTP'].split(':')
|
||||||
auth = cfg['SP_AUTH_TOKEN']
|
auth = cfg['SP_AUTH_TOKEN']
|
||||||
return host, int(port), auth
|
return host, int(port), auth
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -745,4 +745,3 @@ class StorPoolHelper():
|
|||||||
cmd.id = vmid
|
cmd.id = vmid
|
||||||
cmd.hostid = hostid
|
cmd.hostid = hostid
|
||||||
return (apiclient.startVirtualMachine(cmd))
|
return (apiclient.startVirtualMachine(cmd))
|
||||||
|
|
||||||
|
|||||||
@ -289,4 +289,3 @@ class TestNetworkManagement(cloudstackTestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
self.cleanup.append(self.network_offering)
|
self.cleanup.append(self.network_offering)
|
||||||
|
|
||||||
|
|||||||
@ -394,6 +394,3 @@ class TestDeployVmRootSize(cloudstackTestCase):
|
|||||||
self.assertEqual(success, True, "Check if passing rootdisksize < templatesize fails appropriately")
|
self.assertEqual(success, True, "Check if passing rootdisksize < templatesize fails appropriately")
|
||||||
else:
|
else:
|
||||||
self.debug("test 02 does not support hypervisor type " + self.hypervisor)
|
self.debug("test 02 does not support hypervisor type " + self.hypervisor)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -268,4 +268,3 @@ class TestRoleBasedUsersInProjects(cloudstackTestCase):
|
|||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@ -376,4 +376,3 @@ class TestMetrics(cloudstackTestCase):
|
|||||||
return True
|
return True
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
@ -791,4 +791,4 @@ class TestNetworkPermissions(cloudstackTestCase):
|
|||||||
|
|
||||||
self.remove_network_permission(self.apiclient, self.user_network, self.other_user, None, expected=True)
|
self.remove_network_permission(self.apiclient, self.user_network, self.other_user, None, expected=True)
|
||||||
self.list_network(self.apiclient, self.other_user, self.user_network, None, None, expected=False)
|
self.list_network(self.apiclient, self.other_user, self.user_network, None, None, expected=False)
|
||||||
self.list_network(self.otheruser_apiclient, self.other_user, self.user_network, None, None, expected=False)
|
self.list_network(self.otheruser_apiclient, self.other_user, self.user_network, None, None, expected=False)
|
||||||
|
|||||||
@ -88,4 +88,3 @@ class TestUpdatePhysicalNetwork(cloudstackTestCase):
|
|||||||
updateResponse = self.network.update(self.apiClient, id = self.networkid, vlan=self.existing_vlan)
|
updateResponse = self.network.update(self.apiClient, id = self.networkid, vlan=self.existing_vlan)
|
||||||
self.assertTrue(updateResponse.vlan.find(self.vlan["full_range"]) < 0,
|
self.assertTrue(updateResponse.vlan.find(self.vlan["full_range"]) < 0,
|
||||||
"VLAN was not removed successfully")
|
"VLAN was not removed successfully")
|
||||||
|
|
||||||
|
|||||||
@ -537,4 +537,3 @@ class TestDeltaSnapshots(cloudstackTestCase):
|
|||||||
"Check: Snapshot 1 is still on Secondary Storage. Not Deleted.")
|
"Check: Snapshot 1 is still on Secondary Storage. Not Deleted.")
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@ -53,4 +53,3 @@ if __name__ == "__main__":
|
|||||||
browser.set_url("http://10.88.90.84:8080/client/")
|
browser.set_url("http://10.88.90.84:8080/client/")
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
browser.quit_browser()
|
browser.quit_browser()
|
||||||
|
|
||||||
|
|||||||
@ -14,5 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -146,4 +146,3 @@ class Shared(object):
|
|||||||
|
|
||||||
#this method isn't as slick as I hoped :(
|
#this method isn't as slick as I hoped :(
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|||||||
@ -14,5 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -18,4 +18,3 @@
|
|||||||
class CloudStackPage(object):
|
class CloudStackPage(object):
|
||||||
def __init__():
|
def __init__():
|
||||||
self.browser = None
|
self.browser = None
|
||||||
|
|
||||||
|
|||||||
@ -14,5 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -71,4 +71,3 @@ class DashboardPage(CloudStackPage):
|
|||||||
li.click()
|
li.click()
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@ -14,5 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -14,4 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|||||||
@ -14,4 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|||||||
@ -14,4 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|||||||
@ -60,4 +60,3 @@ smokecfg = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -220,5 +220,3 @@ login_password_css = "body.login > div.login > form > div.fields > div.field.pas
|
|||||||
|
|
||||||
# Click ok to login
|
# Click ok to login
|
||||||
login_submit_css = "body.login > div.login > form > div.fields > input[type=\"submit\"]" # Login>Login Button (Submit button)
|
login_submit_css = "body.login > div.login > form > div.fields > input[type=\"submit\"]" # Login>Login Button (Submit button)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -140,6 +140,3 @@ runner = xmlrunner.XMLTestRunner(output='test-reports')
|
|||||||
|
|
||||||
# Leave following as is for either XML or HTML
|
# Leave following as is for either XML or HTML
|
||||||
runner.run(suite)
|
runner.run(suite)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -92,4 +92,3 @@ class CloudstackAclException():
|
|||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
@ -551,4 +551,3 @@ def wait_until(retry_interval=2, no_of_times=2, callback=None, *callback_args):
|
|||||||
break
|
break
|
||||||
|
|
||||||
return wait_result, return_val
|
return wait_result, return_val
|
||||||
|
|
||||||
|
|||||||
@ -145,4 +145,3 @@ class bash:
|
|||||||
return self.getStdout()
|
return self.getStdout()
|
||||||
else:
|
else:
|
||||||
return self.getStderr()
|
return self.getStderr()
|
||||||
|
|
||||||
|
|||||||
@ -50,4 +50,3 @@ if __name__ == '__main__':
|
|||||||
timeout = timeout - 1
|
timeout = timeout - 1
|
||||||
if tn is None:
|
if tn is None:
|
||||||
raise socket.error("Unable to reach API port")
|
raise socket.error("Unable to reach API port")
|
||||||
|
|
||||||
|
|||||||
@ -14,5 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -14,5 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -14,5 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -14,5 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -14,4 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|||||||
@ -14,4 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|||||||
@ -14,5 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -14,5 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -14,5 +14,3 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user