The argus.scenarios.windows Module

class argus.scenarios.cloud.windows.BaseServiceMockMixin

Mixin class for mocking metadata services.

In order to have support for mocked metadata services, set a list of named() entries in the class, as such:

class Test(BaseServiceMockMixin, CloudScenario):
    services = [
         named(application, script_name, host, port)
    ]
classmethod prepare_instance()
classmethod tearDownClass()
class argus.scenarios.cloud.windows.CloudstackWindowsScenario(methodName='runTest')

Scenario for testing the Cloudstack metadata service.

services = [service(application=<class 'argus.scenarios.cloud.service_mock.CloudstackMetadataServiceApp'>, script_name='', host='0.0.0.0', port=80), service(application=<class 'argus.scenarios.cloud.service_mock.CloudstackPasswordManagerApp'>, script_name='', host='0.0.0.0', port=8080)]
class argus.scenarios.cloud.windows.EC2WindowsScenario(methodName='runTest')

Scenario for testing the EC2 metadata service.

services = [service(application=<class 'argus.scenarios.cloud.service_mock.EC2MetadataServiceApp'>, script_name='/2009-04-04/meta-data', host='0.0.0.0', port=80)]
class argus.scenarios.cloud.windows.HTTPKeysWindowsScenario(methodName='runTest')

Scenario for testing custom OpenStack http metadata service.

services = [service(application=<class 'argus.scenarios.cloud.service_mock.HTTPKeysMetadataServiceApp'>, script_name='/openstack', host='0.0.0.0', port=80)]
class argus.scenarios.cloud.windows.MaasWindowsScenario(methodName='runTest')

Scenario for testing the Maas metadata service.

services = [service(application=<class 'argus.scenarios.cloud.service_mock.MaasMetadataServiceApp'>, script_name='/2012-03-01', host='0.0.0.0', port=80)]
argus.scenarios.cloud.windows.get_port_number(url)

Gets the port number from a given url.

Parameters:url – String value of a URL.
Return type:int
Returns:The port value from the given url.
class argus.scenarios.cloud.windows.named