fixtures.appliance module
This module contains fixtures to use when you need a temporary appliance for testing.
In cases where you cannot run a certain test againts the primary appliance because of the test’s
destructive potential (which could render all subsequent testing useless), you want to use
a temporary appliance parallel to the primary one.
For tests where all you need is a single preconfigured appliance to run a database restore on for
example, you will want to use the temp_appliance_preconfig()
fixture.
For tests that require multiple unconfigured appliances (e.g. replication testing), there is
temp_appliances_unconfig()
.
-
fixtures.appliance.
temp_appliance_preconfig
(temp_appliance_preconfig_modscope)[source]
-
fixtures.appliance.
temp_appliance_preconfig_clsscope
()[source]
-
fixtures.appliance.
temp_appliance_preconfig_funcscope
()[source]
-
fixtures.appliance.
temp_appliance_preconfig_funcscope_upgrade
(appliance)[source]
-
fixtures.appliance.
temp_appliance_preconfig_modscope
()[source]
-
fixtures.appliance.
temp_appliance_unconfig
(temp_appliance_unconfig_modscope)[source]
-
fixtures.appliance.
temp_appliance_unconfig_clsscope
()[source]
-
fixtures.appliance.
temp_appliance_unconfig_funcscope
()[source]
-
fixtures.appliance.
temp_appliance_unconfig_modscope
()[source]
-
fixtures.appliance.
temp_appliances
(*args, **kwds)[source]
Provisions one or more appliances for testing
Parameters: |
- count – Number of appliances
- preconfigured – True if the appliance should be already configured, False otherwise
- lease_time – Lease time in minutes (3 hours by default)
|
-
fixtures.appliance.
temp_appliances_unconfig
(temp_appliances_unconfig_modscope)[source]
-
fixtures.appliance.
temp_appliances_unconfig_clsscope
()[source]
-
fixtures.appliance.
temp_appliances_unconfig_funcscope
()[source]
-
fixtures.appliance.
temp_appliances_unconfig_modscope
()[source]