From 1e72bec19df2042ebdb493489f292569b4641027 Mon Sep 17 00:00:00 2001 From: Sirushti Murugesan Date: Wed, 4 Feb 2015 00:01:26 +0530 Subject: [PATCH] Get tox to generate config for heat_integrationtests Change-Id: Ic1ee2a333f4aa25ccdc80ed2fd0a0d4f064bd1d0 --- heat_integrationtests/config-generator.conf | 4 ++ .../heat_integrationtests.conf.sample | 70 +++++++++---------- tox.ini | 4 +- 3 files changed, 42 insertions(+), 36 deletions(-) create mode 100644 heat_integrationtests/config-generator.conf diff --git a/heat_integrationtests/config-generator.conf b/heat_integrationtests/config-generator.conf new file mode 100644 index 0000000000..4c92c48513 --- /dev/null +++ b/heat_integrationtests/config-generator.conf @@ -0,0 +1,4 @@ +[DEFAULT] +output_file = heat_integrationtests/heat_integrationtests.conf.sample +wrap_width = 79 +namespace = heat_integrationtests.common.config diff --git a/heat_integrationtests/heat_integrationtests.conf.sample b/heat_integrationtests/heat_integrationtests.conf.sample index 2dbdaf6a87..b4021898b0 100644 --- a/heat_integrationtests/heat_integrationtests.conf.sample +++ b/heat_integrationtests/heat_integrationtests.conf.sample @@ -4,37 +4,27 @@ # From heat_integrationtests.common.config # +# Username to use for API requests. (string value) +#username = + +# API key to use when authenticating. (string value) +#password = + +# Tenant name to use for API requests. (string value) +#tenant_name = + # Full URI of the OpenStack Identity API (Keystone), v2 (string value) #auth_url = -# Identity API version to be used for authentication for API tests. (string -# value) -#auth_version = v2 - -# Time in seconds between build status checks. (integer value) -#build_interval = 4 - -# Timeout in seconds to wait for a stack to build. (integer value) -#build_timeout = 1200 - -# Set to True if using self-signed SSL certificates. (boolean value) -#disable_ssl_certificate_validation = false - -# Visible fixed network name (string value) -#fixed_network_name = private - -# Visible fixed sub-network name (string value) -#fixed_subnet_name = private-subnet - -# Name of image to use for tests which boot servers. (string value) -#image_ref = +# The region name to us (string value) +#region = # Instance type for tests. Needs to be big enough for a full OS plus the test # workload (string value) #instance_type = -# IP version used for SSH connections. (integer value) -#ip_version_for_ssh = 4 +# Name of image to use for tests which boot servers. (string value) +#image_ref = # Name of existing keypair to launch servers with. (string value) #keypair_name = @@ -43,29 +33,39 @@ # (string value) #minimal_image_ref = +# Identity API version to be used for authentication for API tests. (string +# value) +#auth_version = v2 + +# Set to True if using self-signed SSL certificates. (boolean value) +#disable_ssl_certificate_validation = false + +# Time in seconds between build status checks. (integer value) +#build_interval = 4 + +# Timeout in seconds to wait for a stack to build. (integer value) +#build_timeout = 1200 + # Network used for SSH connections. (string value) #network_for_ssh = private -# API key to use when authenticating. (string value) -#password = +# Visible fixed network name (string value) +#fixed_network_name = private -# The region name to us (string value) -#region = - -# Timeout in seconds to wait for output from ssh channel. (integer value) -#ssh_channel_timeout = 60 +# Visible fixed sub-network name (string value) +#fixed_subnet_name = private-subnet # Timeout in seconds to wait for authentication to succeed. (integer value) #ssh_timeout = 300 -# Tenant name to use for API requests. (string value) -#tenant_name = +# IP version used for SSH connections. (integer value) +#ip_version_for_ssh = 4 + +# Timeout in seconds to wait for output from ssh channel. (integer value) +#ssh_channel_timeout = 60 # The mask bits for tenant ipv4 subnets (integer value) #tenant_network_mask_bits = 28 -# Username to use for API requests. (string value) -#username = - # Default size in GB for volumes created by volumes tests (integer value) #volume_size = 1 diff --git a/tox.ini b/tox.ini index 119ab94a55..1324fb75c2 100644 --- a/tox.ini +++ b/tox.ini @@ -49,7 +49,9 @@ deps = -r{toxinidir}/requirements.txt commands = python setup.py build_sphinx [testenv:genconfig] -commands = oslo-config-generator --config-file=config-generator.conf +commands = + oslo-config-generator --config-file=config-generator.conf + oslo-config-generator --config-file=heat_integrationtests/config-generator.conf [flake8] # H404 multi line docstring should start with a summary