mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 11:57:49 +00:00
Pass/Fail validations fix for multipsk (#686)
* Pass/Fail validations fix for multipsk Signed-off-by: anil-tegala <anil.tegala@candelatech.com> * upstream resource fixed in multipsk test Signed-off-by: anil-tegala <anil.tegala@candelatech.com> Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
This commit is contained in:
committed by
GitHub
parent
1f9dd1051e
commit
d83429ba5c
@@ -986,7 +986,7 @@ class RunTest:
|
|||||||
ssid=ssid,
|
ssid=ssid,
|
||||||
input=input_data,
|
input=input_data,
|
||||||
security=security,
|
security=security,
|
||||||
upstream_resource=self.upstream_resource)
|
resource=int(self.upstream_resource))
|
||||||
self.sta_url_map = None
|
self.sta_url_map = None
|
||||||
self.multi_obj.build()
|
self.multi_obj.build()
|
||||||
self.multi_obj.start()
|
self.multi_obj.start()
|
||||||
@@ -1037,6 +1037,7 @@ class RunTest:
|
|||||||
pf = 'PASS'
|
pf = 'PASS'
|
||||||
else:
|
else:
|
||||||
pf = 'FAIL'
|
pf = 'FAIL'
|
||||||
|
result1 = 'Fail'
|
||||||
table_data.append([i[item]['alias'], '100', f'{exp1[0]}.{exp1[1]}.X.X', i[item]['ip'], i[item]['mac'],
|
table_data.append([i[item]['alias'], '100', f'{exp1[0]}.{exp1[1]}.X.X', i[item]['ip'], i[item]['mac'],
|
||||||
f'{pf}'])
|
f'{pf}'])
|
||||||
elif i[item]['port type'] == 'WIFI-STA' and i[item]['alias'] == 'sta200':
|
elif i[item]['port type'] == 'WIFI-STA' and i[item]['alias'] == 'sta200':
|
||||||
@@ -1046,6 +1047,7 @@ class RunTest:
|
|||||||
pf = 'PASS'
|
pf = 'PASS'
|
||||||
else:
|
else:
|
||||||
pf = 'FAIL'
|
pf = 'FAIL'
|
||||||
|
result1 = 'Fail'
|
||||||
table_data.append([i[item]['alias'], '200', f'{exp2[0]}.{exp2[1]}.X.X', i[item]['ip'], i[item]['mac'], f'{pf}'])
|
table_data.append([i[item]['alias'], '200', f'{exp2[0]}.{exp2[1]}.X.X', i[item]['ip'], i[item]['mac'], f'{pf}'])
|
||||||
elif i[item]['port type'] == 'WIFI-STA' and i[item]['alias'] == 'sta00':
|
elif i[item]['port type'] == 'WIFI-STA' and i[item]['alias'] == 'sta00':
|
||||||
exp3 = temp['sta00'].split('.')
|
exp3 = temp['sta00'].split('.')
|
||||||
@@ -1055,12 +1057,14 @@ class RunTest:
|
|||||||
pf = 'PASS'
|
pf = 'PASS'
|
||||||
else:
|
else:
|
||||||
pf = 'FAIL'
|
pf = 'FAIL'
|
||||||
|
result1 = 'Fail'
|
||||||
table_data.append([i[item]['alias'], 'WAN upstream', f'{exp3[0]}.{exp3[1]}.X.X', i[item]['ip'], i[item]['mac'], f'{pf}'])
|
table_data.append([i[item]['alias'], 'WAN upstream', f'{exp3[0]}.{exp3[1]}.X.X', i[item]['ip'], i[item]['mac'], f'{pf}'])
|
||||||
elif mode == "NAT":
|
elif mode == "NAT":
|
||||||
if exp3[0] == '192' and exp3[1] == '168':
|
if exp3[0] == '192' and exp3[1] == '168':
|
||||||
pf = 'PASS'
|
pf = 'PASS'
|
||||||
else:
|
else:
|
||||||
pf = 'FAIL'
|
pf = 'FAIL'
|
||||||
|
result1 = 'Fail'
|
||||||
table_data.append([i[item]['alias'], 'LAN upstream', f'192.168.X.X', i[item]['ip'], i[item]['mac'], f'{pf}'])
|
table_data.append([i[item]['alias'], 'LAN upstream', f'192.168.X.X', i[item]['ip'], i[item]['mac'], f'{pf}'])
|
||||||
print(table_data)
|
print(table_data)
|
||||||
# attach test data in a table to allure
|
# attach test data in a table to allure
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ class TestMultipskBridge(object):
|
|||||||
if multipsk_obj == True:
|
if multipsk_obj == True:
|
||||||
assert True
|
assert True
|
||||||
else:
|
else:
|
||||||
assert False
|
assert False, "Expected and Attained IP's of Station are Different"
|
||||||
|
|
||||||
@pytest.mark.multipsk
|
@pytest.mark.multipsk
|
||||||
@pytest.mark.wpa2_personal
|
@pytest.mark.wpa2_personal
|
||||||
@@ -125,4 +125,4 @@ class TestMultipskBridge(object):
|
|||||||
if multipsk_obj == True:
|
if multipsk_obj == True:
|
||||||
assert True
|
assert True
|
||||||
else:
|
else:
|
||||||
assert False
|
assert False, "Expected and Attained IP's of Station are Different"
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ class TestMultipskBridge(object):
|
|||||||
if multipsk_obj == True:
|
if multipsk_obj == True:
|
||||||
assert True
|
assert True
|
||||||
else:
|
else:
|
||||||
assert False
|
assert False, "Expected and Attained IP's of Station are Different"
|
||||||
|
|
||||||
@pytest.mark.multipsk
|
@pytest.mark.multipsk
|
||||||
@pytest.mark.wpa
|
@pytest.mark.wpa
|
||||||
@@ -126,5 +126,5 @@ class TestMultipskBridge(object):
|
|||||||
if multipsk_obj == True:
|
if multipsk_obj == True:
|
||||||
assert True
|
assert True
|
||||||
else:
|
else:
|
||||||
assert False
|
assert False, "Expected and Attained IP's of Station are Different"
|
||||||
|
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ class TestMultipskNAT(object):
|
|||||||
if multipsk_obj == True:
|
if multipsk_obj == True:
|
||||||
assert True
|
assert True
|
||||||
else:
|
else:
|
||||||
assert False
|
assert False, "Expected and Attained IP's of Station are Different"
|
||||||
|
|
||||||
@pytest.mark.multipsk
|
@pytest.mark.multipsk
|
||||||
@pytest.mark.wpa2_personal
|
@pytest.mark.wpa2_personal
|
||||||
@@ -126,5 +126,6 @@ class TestMultipskNAT(object):
|
|||||||
if multipsk_obj == True:
|
if multipsk_obj == True:
|
||||||
assert True
|
assert True
|
||||||
else:
|
else:
|
||||||
assert False
|
assert False, "Expected and Attained IP's of Station are Different"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ class TestMultipskNAT(object):
|
|||||||
if multipsk_obj == True:
|
if multipsk_obj == True:
|
||||||
assert True
|
assert True
|
||||||
else:
|
else:
|
||||||
assert False
|
assert False, "Expected and Attained IP's of Station are Different"
|
||||||
|
|
||||||
@pytest.mark.multipsk
|
@pytest.mark.multipsk
|
||||||
@pytest.mark.wpa
|
@pytest.mark.wpa
|
||||||
@@ -124,5 +124,5 @@ class TestMultipskNAT(object):
|
|||||||
if multipsk_obj == True:
|
if multipsk_obj == True:
|
||||||
assert True
|
assert True
|
||||||
else:
|
else:
|
||||||
assert False
|
assert False, "Expected and Attained IP's of Station are Different"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user