mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-03 12:27:53 +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")
|
@pytest.fixture(scope="session")
|
||||||
def get_testbed_name(request):
|
def get_testbed_name(request):
|
||||||
yield request.config.getini("testbed-name")
|
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]
|
[pytest]
|
||||||
addopts= --junitxml=test_everything.xml
|
addopts= --junitxml=test_everything.xml
|
||||||
|
|
||||||
# jFrog parameters
|
# jFrog parameters
|
||||||
jfrog-base-url=tip.jFrog.io/artifactory/tip-wlan-ap-firmware
|
jfrog-base-url=tip.jFrog.io/artifactory/tip-wlan-ap-firmware
|
||||||
jfrog-user-id=tip-read
|
jfrog-user-id=tip-read
|
||||||
@@ -8,11 +9,13 @@ jfrog-user-password=tip-read
|
|||||||
testbed-name=nola-ext-04
|
testbed-name=nola-ext-04
|
||||||
sdk-user-id=support@example.com
|
sdk-user-id=support@example.com
|
||||||
sdk-user-password=support
|
sdk-user-password=support
|
||||||
|
|
||||||
# Testrails parameters
|
# Testrails parameters
|
||||||
testrail-base-url=telecominfraproject.testrail.com
|
testrail-base-url=telecominfraproject.testrail.com
|
||||||
testrail-project=opsfleet-wlan
|
testrail-project=opsfleet-wlan
|
||||||
testrail-user-id=gleb@opsfleet.com
|
testrail-user-id=gleb@opsfleet.com
|
||||||
testrail-user-password=use_command_line_to_pass_this
|
testrail-user-password=use_command_line_to_pass_this
|
||||||
|
|
||||||
# LANforge
|
# LANforge
|
||||||
lanforge-ip-address=localhost
|
lanforge-ip-address=localhost
|
||||||
lanforge-port-number=8080
|
lanforge-port-number=8080
|
||||||
@@ -24,6 +27,10 @@ sdk-customer-id=2
|
|||||||
|
|
||||||
markers =
|
markers =
|
||||||
login: marks cloudsdk login
|
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
|
UHF: marks tests as using 2.4 ghz frequency
|
||||||
SHF: marks tests as using 5.0 ghz frequency
|
SHF: marks tests as using 5.0 ghz frequency
|
||||||
open: marks tests as using no security
|
open: marks tests as using no security
|
||||||
|
|||||||
Reference in New Issue
Block a user