Download tests results
Change-Id: I78b66478730a64c6b388c14bbdc17760f2f9e317
Reviewed-on: https://review.gerrithub.io/370015
Reviewed-by: Tatyanka Leontovich <tleontovich@mirantis.com>
Tested-by: Tatyanka Leontovich <tleontovich@mirantis.com>
diff --git a/tcp_tests/fixtures/salt_fixtures.py b/tcp_tests/fixtures/salt_fixtures.py
index 7efd296..01353bc 100644
--- a/tcp_tests/fixtures/salt_fixtures.py
+++ b/tcp_tests/fixtures/salt_fixtures.py
@@ -12,14 +12,10 @@
# License for the specific language governing permissions and limitations
# under the License.
-import os
-
import pytest
-import yaml
from tcp_tests import logger
from tcp_tests.helpers import ext
-from tcp_tests import settings
from tcp_tests.managers import saltmanager
LOG = logger.logger
diff --git a/tcp_tests/helpers/utils.py b/tcp_tests/helpers/utils.py
index b300168..6717c2a 100644
--- a/tcp_tests/helpers/utils.py
+++ b/tcp_tests/helpers/utils.py
@@ -23,12 +23,10 @@
import jinja2
import paramiko
import yaml
-from devops.helpers import helpers
from devops.helpers import ssh_client
from tcp_tests import logger
from tcp_tests import settings
-from tcp_tests.helpers import ext
LOG = logger.logger
diff --git a/tcp_tests/settings.py b/tcp_tests/settings.py
index 13b96a7..caa30d6 100644
--- a/tcp_tests/settings.py
+++ b/tcp_tests/settings.py
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
import os
-import pkg_resources
import time
_boolean_states = {'1': True, 'yes': True, 'true': True, 'on': True,
@@ -54,3 +53,4 @@
DOCKER_REGISTRY = os.environ.get('DOCKER_REGISTRY',
'docker-prod-virtual.docker.mirantis.net')
+
diff --git a/tcp_tests/templates/virtual-mcp11-k8s-calico/sl.yaml b/tcp_tests/templates/virtual-mcp11-k8s-calico/sl.yaml
index f77f60e..f84c887 100644
--- a/tcp_tests/templates/virtual-mcp11-k8s-calico/sl.yaml
+++ b/tcp_tests/templates/virtual-mcp11-k8s-calico/sl.yaml
@@ -45,7 +45,7 @@
# Install slv2 infra
- description: Install telegraf
- cmd: salt -C 'I@telegraf:agentor or I@telegraf:remote_agent' state.sls telegraf
+ cmd: salt -C 'I@telegraf:agent or I@telegraf:remote_agent' state.sls telegraf
node_name: {{ HOSTNAME_CFG01 }}
retry: {count: 1, delay: 10}
skip_fail: false
diff --git a/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py b/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py
index f7669d9..ca074ed 100644
--- a/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py
+++ b/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py
@@ -11,13 +11,9 @@
# 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 copy
-import time
-
+import os
import pytest
-from tcp_tests import settings
-from tcp_tests.helpers import ext
from tcp_tests import logger
LOG = logger.logger
@@ -44,6 +40,14 @@
"""
LOG.info("*************** DONE **************")
+ gtw01 = [node_name for node_name in
+ underlay.node_names() if 'gtw01' in node_name]
+ with underlay.remote(node_name=gtw01[0]) as gtw_remote:
+ result = gtw_remote.execute('find /root -name "report_*.xml"')
+ LOG.debug("Finde result {0}".format(result))
+ file_name = result['stdout'][0].rstrip()
+ LOG.debug("Founded files {0}".format(file_name))
+ gtw_remote.download(destination=file_name, target=os.getcwd())
def test_mcp11_ocata_dvr_install(self, underlay, openstack_deployed,
show_step):