aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2020-08-17 11:17:30 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2020-08-17 12:31:01 +0200
commit1815ee71d2ca4f16f980bb032733abc40f9e9700 (patch)
treecb458b5e60a90e07db53a860e7a76bba24eed7bb
parentfb6a0beea75941cf83c1b818788e898cb3fd23f1 (diff)
Delete vgpu testcase
It's not longer executed and offered in any Functest container. Change-Id: I9805eca1e0d7203fecc396398469bccc38458888 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 3a15322d7398db08341943291e45aba611c59e87)
-rw-r--r--api/apidoc/functest.opnfv_tests.openstack.rst1
-rw-r--r--api/apidoc/functest.opnfv_tests.openstack.vgpu.rst17
-rw-r--r--api/apidoc/functest.opnfv_tests.openstack.vgpu.vgpu.rst7
-rw-r--r--functest/opnfv_tests/openstack/vgpu/__init__.py0
-rw-r--r--functest/opnfv_tests/openstack/vgpu/vgpu.py53
-rw-r--r--setup.cfg1
6 files changed, 0 insertions, 79 deletions
diff --git a/api/apidoc/functest.opnfv_tests.openstack.rst b/api/apidoc/functest.opnfv_tests.openstack.rst
index d035ce85d..2a59e8818 100644
--- a/api/apidoc/functest.opnfv_tests.openstack.rst
+++ b/api/apidoc/functest.opnfv_tests.openstack.rst
@@ -13,7 +13,6 @@ Subpackages
functest.opnfv_tests.openstack.refstack
functest.opnfv_tests.openstack.shaker
functest.opnfv_tests.openstack.tempest
- functest.opnfv_tests.openstack.vgpu
functest.opnfv_tests.openstack.vmtp
functest.opnfv_tests.openstack.vping
diff --git a/api/apidoc/functest.opnfv_tests.openstack.vgpu.rst b/api/apidoc/functest.opnfv_tests.openstack.vgpu.rst
deleted file mode 100644
index 7ba162d24..000000000
--- a/api/apidoc/functest.opnfv_tests.openstack.vgpu.rst
+++ /dev/null
@@ -1,17 +0,0 @@
-functest.opnfv\_tests.openstack.vgpu package
-============================================
-
-Submodules
-----------
-
-.. toctree::
-
- functest.opnfv_tests.openstack.vgpu.vgpu
-
-Module contents
----------------
-
-.. automodule:: functest.opnfv_tests.openstack.vgpu
- :members:
- :undoc-members:
- :show-inheritance:
diff --git a/api/apidoc/functest.opnfv_tests.openstack.vgpu.vgpu.rst b/api/apidoc/functest.opnfv_tests.openstack.vgpu.vgpu.rst
deleted file mode 100644
index 9bb3b55a5..000000000
--- a/api/apidoc/functest.opnfv_tests.openstack.vgpu.vgpu.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-functest.opnfv\_tests.openstack.vgpu.vgpu module
-================================================
-
-.. automodule:: functest.opnfv_tests.openstack.vgpu.vgpu
- :members:
- :undoc-members:
- :show-inheritance:
diff --git a/functest/opnfv_tests/openstack/vgpu/__init__.py b/functest/opnfv_tests/openstack/vgpu/__init__.py
deleted file mode 100644
index e69de29bb..000000000
--- a/functest/opnfv_tests/openstack/vgpu/__init__.py
+++ /dev/null
diff --git a/functest/opnfv_tests/openstack/vgpu/vgpu.py b/functest/opnfv_tests/openstack/vgpu/vgpu.py
deleted file mode 100644
index c8180a45c..000000000
--- a/functest/opnfv_tests/openstack/vgpu/vgpu.py
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2018 Kontron and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-
-"""vGPU testcase implementation."""
-
-from __future__ import division
-
-import logging
-
-from functest.core import singlevm
-
-
-class VGPU(singlevm.SingleVm2):
- """OpenStack vGPU Test Case."""
-
- __logger = logging.getLogger(__name__)
-
- filename = ('/home/opnfv/functest/images/'
- 'ubuntu-16.04-server-cloudimg-amd64-disk1.img')
- flavor_ram = 4096
- flavor_vcpus = 2
- flavor_disk = 40
- flavor_extra_specs = {'resources:VGPU': '1'}
- username = 'ubuntu'
- ssh_connect_loops = 12
- create_server_timeout = 300
-
- def __init__(self, **kwargs):
- """Initialize vGPU testcase object."""
- if "case_name" not in kwargs:
- kwargs["case_name"] = "vgpu"
- super(VGPU, self).__init__(**kwargs)
-
- def execute(self):
- """
- Test if the vGPU exist.
- """
- (_, stdout, stderr) = self.ssh.exec_command('lspci')
- lspci_output = stdout.read()
- self.__logger.debug("output:\n%s", stdout.read())
- self.__logger.debug("error:\n%s", stderr.read())
- if ('VGA compatible controller: Intel' in lspci_output or
- 'VGA compatible controller: Nvidia' in lspci_output):
- self.__logger.info("The VM have a vGPU")
- return 0
- self.__logger.error("The VM haven't any vGPU")
- return 1
diff --git a/setup.cfg b/setup.cfg
index da7bb2f65..d6bdfd1c6 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -34,7 +34,6 @@ xtesting.testcase =
barbican = functest.opnfv_tests.openstack.barbican.barbican:Barbican
vmtp = functest.opnfv_tests.openstack.vmtp.vmtp:Vmtp
shaker = functest.opnfv_tests.openstack.shaker.shaker:Shaker
- vgpu = functest.opnfv_tests.openstack.vgpu.vgpu:VGPU
rally_full = functest.opnfv_tests.openstack.rally.rally:RallyFull
cloudify = functest.core.cloudify:Cloudify
cloudify_ims = functest.opnfv_tests.vnf.ims.cloudify_ims:CloudifyIms