fuel-qa/fuelweb_test/testrail/settings.py
Artem Panchenko f89eab7b4b Fix regex for detecting milestone / build number
Modify regex which is used for detecting Fuel milestone
and iso build number from magnet link, so it can parse
links to images for "x.y.z" milestones.
Also modify default tests suite name (TestRail), because
it was decided to use separate suite for each milestone.

Change-Id: I11b87cc91f50c25d7497d00f1074edeb264d3661
Related-bug: #1430747
2015-03-20 12:36:00 +02:00

57 lines
2.2 KiB
Python

# Copyright 2015 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import logging
import os
logger = logging.getLogger(__package__)
ch = logging.StreamHandler()
formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
ch.setFormatter(formatter)
logger.addHandler(ch)
logger.setLevel(logging.INFO)
JENKINS = {
'url': os.environ.get('JENKINS_URL', 'http://localhost/'),
'version_artifact': os.environ.get('JENKINS_VERSION_ARTIFACT',
'version.yaml.txt')
}
class LaunchpadSettings(object):
project = os.environ.get('LAUNCHPAD_PROJECT', 'fuel')
milestone = os.environ.get('LAUNCHPAD_MILESTONE', '6.1')
closed_statuses = [
os.environ.get('LAUNCHPAD_RELEASED_STATUS', 'Fix Released'),
os.environ.get('LAUNCHPAD_INVALID_STATUS', 'Invalid')
]
class TestRailSettings(object):
url = os.environ.get('TESTRAIL_URL', 'https://mirantis.testrail.com')
user = os.environ.get('TESTRAIL_USER', 'user@example.com')
password = os.environ.get('TESTRAIL_PASSWORD', 'password')
project = os.environ.get('TESTRAIL_PROJECT', 'Mirantis OpenStack')
milestone = os.environ.get('TESTRAIL_MILESTONE', '6.1')
tests_suite = os.environ.get('TESTRAIL_TEST_SUITE', 'Swarm 6.1')
tests_section = os.environ.get('TESTRAIL_TEST_SECTION', 'all cases')
tests_include = os.environ.get('TESTRAIL_TEST_INCLUDE', None)
tests_exclude = os.environ.get('TESTRAIL_TEST_EXCLUDE', None)
previous_results_depth = os.environ.get('TESTRAIL_TESTS_DEPTH', 5)
operation_systems = [
os.environ.get('TESTRAIL_CENTOS_RELEASE', 'Centos 6.5'),
os.environ.get('TESTRAIL_UBUNTU_RELEASE', 'Ubuntu 14.04')
]