1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-05-02 15:17:28 +02:00

test: Fix compilerLibTest

This contradicts the comments in the test,
but conforms to the actual code, which has
been used for several years.
This commit is contained in:
Sirius Bakke 2020-03-19 01:03:51 +01:00
parent 73814141f6
commit c20b274b04

View File

@ -544,10 +544,10 @@ void interfacePropertiesTest::isValidVlanInterfaceNameProCurve()
QVERIFY (int_prop->isValidVlanInterfaceName("vlan 2", parent, err) == true);
QVERIFY (int_prop->isValidVlanInterfaceName("VLAN 2", parent, err) == true);
QVERIFY (int_prop->isValidVlanInterfaceName("Vlan 2", parent, err) == true);
QVERIFY (int_prop->isValidVlanInterfaceName("vlan2", parent, err) == false);
QVERIFY (int_prop->isValidVlanInterfaceName("vlan2", parent, err) == true);
QVERIFY (int_prop->isValidVlanInterfaceName("vlan 101", parent, err) == true);
QVERIFY (int_prop->isValidVlanInterfaceName("vlan101", parent, err) == false);
QVERIFY (int_prop->isValidVlanInterfaceName("vlan101", parent, err) == true);
QVERIFY (int_prop->isValidVlanInterfaceName("Ethernet0/0.101", parent, err) == false);
}
@ -581,7 +581,7 @@ void interfacePropertiesTest::validateInterfaceProCurve()
QVERIFY(int_prop->validateInterface(&fw, iface, false, err) == true);
iface->setName("vlan 34324");
QVERIFY(int_prop->validateInterface(&fw, iface, false, err) == false);
QVERIFY(int_prop->validateInterface(&fw, iface, false, err) == true);
}
void interfacePropertiesTest::testManageIpAddresses()