Remove main execution block from Quasar model and add configuration files for testing
- Eliminated the main execution block from the Quasar model for cleaner code. - Introduced new configuration files `config_1.conf` and `config_2.conf` for Quasar devices, detailing interface settings and IP configurations. - Added expected output JSON files `config_1.expected.json` and `config_2.expected.json` to validate the parsing of Quasar configurations against expected results.
This commit is contained in:
94
tests/fixtures/quasar/config_2.expected.json
vendored
Normal file
94
tests/fixtures/quasar/config_2.expected.json
vendored
Normal file
@@ -0,0 +1,94 @@
|
||||
{
|
||||
"system": {
|
||||
"model": "D5232C-T",
|
||||
"serial_number": "WHF1C87123456A",
|
||||
"version": "0.2.23_9.9.1_GA"
|
||||
},
|
||||
"interfaces": [
|
||||
{
|
||||
"interface": "1/1",
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "TEST_HW_1_1"
|
||||
},
|
||||
{
|
||||
"interface": "1/3",
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "TEST_HW_1_3"
|
||||
},
|
||||
{
|
||||
"interface": "2/1",
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "TEST_HW_2_1"
|
||||
},
|
||||
{
|
||||
"interface": "2/2",
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "TEST_HW_2_2"
|
||||
},
|
||||
{
|
||||
"interface": "2/3",
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "TEST_HW_2_3"
|
||||
},
|
||||
{
|
||||
"interface": "2/4",
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "TEST_HW_2_4"
|
||||
},
|
||||
{
|
||||
"interface": "3/1",
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "TEST_HW_3_1"
|
||||
},
|
||||
{
|
||||
"interface": "3/3",
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "TEST_HW_3_3"
|
||||
},
|
||||
{
|
||||
"interface": "3/4",
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "TEST_HW_3_4"
|
||||
},
|
||||
{
|
||||
"interface": "4/1",
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "TEST_HW_4_1"
|
||||
},
|
||||
{
|
||||
"interface": "4/2",
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "TEST_HW_4_2"
|
||||
},
|
||||
{
|
||||
"interface": "4/3",
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "TEST_HW_4_3"
|
||||
},
|
||||
{
|
||||
"interface": "4/4",
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "TEST_HW_4_4"
|
||||
},
|
||||
{
|
||||
"interface": "ethernet",
|
||||
"ip_address": "25.25.18.19",
|
||||
"mask": 24,
|
||||
"description": null
|
||||
}
|
||||
],
|
||||
"vlans": []
|
||||
}
|
||||
Reference in New Issue
Block a user