Commit 8c2b3227 authored by Waleed Akbar's avatar Waleed Akbar
Browse files

Add new tests and scripts for SMO Slice Management and NBI Pluggable SBI

- Introduced `run_nbi_pluggable_sbi_test_v2.sh` to deploy and stream output from the v2 NBI to Pluggables to SBI pytest Job.
- Updated `zsm_test_job.yaml` to change monitored metric from PRE_FEC_BER to RECEIVED_POWER and increased collector duration.
- Added a new directory `test_SMO` containing scripts to test SMO slice intent endpoints, including a Python client and a Bash wrapper.
- Implemented `test_nbi_pluggable_sbi_v2.py` for end-to-end testing of NBI to Pluggables to SBI interactions.
- Updated `test_zsm_failure_notify_leaf.py` to ensure expected context and topology exist, with logging improvements.
parent 6903fd7f
Loading
Loading
Loading
Loading
+0 −0

Empty file deleted.

+0 −0

Empty file deleted.

+42 −0
Original line number Diff line number Diff line
{
    "devices": [
        {
            "device_id": {"device_uuid": {"uuid": "r1"}}, "device_type": "packet-router",
            "device_drivers": ["DEVICEDRIVER_GNMI_OPENCONFIG"],
            "device_config": {"config_rules": [
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "172.20.20.101"}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "6030"}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": {
                    "username": "admin", "password": "admin", "use_tls": false
                }}}
            ]}
        },
        {
            "device_id": {"device_uuid": {"uuid": "r2"}}, "device_type": "packet-router",
            "device_drivers": ["DEVICEDRIVER_GNMI_OPENCONFIG"],
            "device_config": {"config_rules": [
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "172.20.20.102"}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "6030"}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": {
                    "username": "admin", "password": "admin", "use_tls": false
                }}}
            ]}
        }
    ],
    "links": [
        {
            "link_id": {"link_uuid": {"uuid": "r1/Ethernet2==r2/Ethernet1"}},
            "link_endpoint_ids": [
                {"device_id": {"device_uuid": {"uuid": "r1"}}, "endpoint_uuid": {"uuid": "Ethernet2"}},
                {"device_id": {"device_uuid": {"uuid": "r2"}}, "endpoint_uuid": {"uuid": "Ethernet1"}}
            ]
        },
        {
            "link_id": {"link_uuid": {"uuid": "r2/Ethernet1==r1/Ethernet2"}},
            "link_endpoint_ids": [
                {"device_id": {"device_uuid": {"uuid": "r2"}}, "endpoint_uuid": {"uuid": "Ethernet1"}},
                {"device_id": {"device_uuid": {"uuid": "r1"}}, "endpoint_uuid": {"uuid": "Ethernet2"}}
            ]
        }
    ]
}
+2 −2
Original line number Diff line number Diff line
{
    "devices": [
        {
            "device_id": {"device_uuid": {"uuid": "r1"}}, "device_type": "packet-router",
            "device_id": {"device_uuid": {"uuid": "R1"}}, "device_type": "packet-router",
            "device_drivers": ["DEVICEDRIVER_OPENCONFIG"],
            "device_config": {"config_rules": [
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.30.7.8"}},
@@ -14,7 +14,7 @@
            ]}
        },
        {
            "device_id": {"device_uuid": {"uuid": "r2"}}, "device_type": "packet-router",
            "device_id": {"device_uuid": {"uuid": "R2"}}, "device_type": "packet-router",
            "device_drivers": ["DEVICEDRIVER_OPENCONFIG"],
            "device_config": {"config_rules": [
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.30.7.7"}},
+40 −0
Original line number Diff line number Diff line
{
    "contexts": [
        {"context_id": {"context_uuid": {"uuid": "ecoc"}}}   
    ],
    "topologies": [
        {"topology_id": {"context_id": {"context_uuid": {"uuid": "ecoc"}}, "topology_uuid": {"uuid": "ecoc"}}}
    ],
    "devices": [
        {
            "device_id": {"device_uuid": {"uuid": "R1"}}, "device_type": "packet-router",
            "device_drivers": ["DEVICEDRIVER_OPENCONFIG"],
            "device_config": {"config_rules": [
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.30.7.8"}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "830"}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/context_uuid", "resource_value": "ecoc"}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/topology_uuid", "resource_value": "ecoc"}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": {
                    "username": "admin", "password": "admin", "use_tls": false,
                    "hostkey_verify": false, "look_for_keys": false, "allow_agent": false
                }}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/populate_resource_keys", "resource_value": "__inventory__, __interfaces__, __network_instances__, __endpoints__"}}
            ]}
        },
        {
            "device_id": {"device_uuid": {"uuid": "R2"}}, "device_type": "packet-router",
            "device_drivers": ["DEVICEDRIVER_OPENCONFIG"],
            "device_config": {"config_rules": [
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.30.7.7"}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "830"}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/context_uuid", "resource_value": "ecoc"}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/topology_uuid", "resource_value": "ecoc"}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": {
                    "username": "admin", "password": "admin", "use_tls": false,
                    "hostkey_verify": false, "look_for_keys": false, "allow_agent": false
                }}},
                {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/populate_resource_keys", "resource_value": "__inventory__, __interfaces__, __network_instances__, __endpoints__"}}
            ]}
        }
    ]
}
Loading