mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 20:07:57 +00:00
nightly work with pytest started
Signed-off-by: shivam <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -85,3 +85,6 @@ def get_customer_id(request):
|
||||
@pytest.fixture(scope="session")
|
||||
def get_testbed_name(request):
|
||||
yield request.config.getini("testbed-name")
|
||||
|
||||
|
||||
|
||||
|
||||
22
tests/nightly/test_nightly.py
Normal file
22
tests/nightly/test_nightly.py
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user