nightly work with pytest started

Signed-off-by: shivam <shivam.thakur@candelatech.com>
This commit is contained in:
shivam
2021-03-11 13:11:59 +05:30
parent 2e8803687e
commit 0bb98fea08
3 changed files with 32 additions and 0 deletions

View File

@@ -85,3 +85,6 @@ def get_customer_id(request):
@pytest.fixture(scope="session")
def get_testbed_name(request):
yield request.config.getini("testbed-name")

View File

@@ -0,0 +1,22 @@
import pytest
@pytest.mark.usefixtures('setup_cloudsdk')
@pytest.mark.usefixtures('update_firmware')
@pytest.mark.nightly
class NightlySanity(object):
@pytest.mark.nightly_bridge
def test_nightly_bridge(self, setup_cloudsdk, update_firmware):
print(setup_cloudsdk)
assert 1 == 1
@pytest.mark.nightly_nat
def test_nightly_nat(self, setup_cloudsdk, update_firmware):
print(setup_cloudsdk)
assert 1 == 1
@pytest.mark.nightly_vlan
def test_nightly_vlan(self, setup_cloudsdk, update_firmware):
print(setup_cloudsdk)
assert 1 == 1

View File

@@ -1,5 +1,6 @@
[pytest]
addopts= --junitxml=test_everything.xml
# jFrog parameters
jfrog-base-url=tip.jFrog.io/artifactory/tip-wlan-ap-firmware
jfrog-user-id=tip-read
@@ -8,11 +9,13 @@ jfrog-user-password=tip-read
testbed-name=nola-ext-04
sdk-user-id=support@example.com
sdk-user-password=support
# Testrails parameters
testrail-base-url=telecominfraproject.testrail.com
testrail-project=opsfleet-wlan
testrail-user-id=gleb@opsfleet.com
testrail-user-password=use_command_line_to_pass_this
# LANforge
lanforge-ip-address=localhost
lanforge-port-number=8080
@@ -24,6 +27,10 @@ sdk-customer-id=2
markers =
login: marks cloudsdk login
nightly_vlan: marks nightly vlan cases
nightly: marks nightly sanity cases
nightly_bridge: marks nightly bridge cases
nightly_nat: marks nightly nat cases
UHF: marks tests as using 2.4 ghz frequency
SHF: marks tests as using 5.0 ghz frequency
open: marks tests as using no security