5G - PNF SW Upgrade - Integration Test Cases
Preparation
1. Modify the file /opt/onap/sdnc/data/properties/lcm-dg.properties in sdnc container as follows:
-lcm.pnf.upgrade-pre-check.playbookname=ansible_precheck_pnf |
And then restart the sdnc container.
2. Add the following line in the file in /opt/ansible-server/Playbooks/Ansible_inventory in ansible-server container:
192.168.35.83 ansible_connection=ssh ansible_ssh_user=ubuntu ansible_ssh_private_key_file=/home/ansible/.ssh/ssh_key_file |
Where ssh_key_file is private key of SSH user ubuntu at host 192.168.35.83.
Host 192.168.35.83 is the EMS Simulator.
3. Add topics SDNC-LCM-READ and SDNC-LCM-WRITE to DMaaP if they don't exist.
Login Message Router container, and run the following commands:
cd /opt/kafka/bin ./kafka-topics.sh --zookeeper message-router-zookeeper:2181 --create --topic SDNC-LCM-READ --partitions 1 --replication-factor 1 --if-not-exists ./kafka-topics.sh --zookeeper message-router-zookeeper:2181 --create --topic SDNC-LCM-WRITE --partitions 1 --replication-factor 1 --if-not-exists |
Test Case 1: Using DMaaP Listener
Using DMaaP: UpgradePreCheck
Test Case ID | UpgradePreCheck1 | ||||||
|---|---|---|---|---|---|---|---|
Test Case Name | Verify UpgradePreCheck API of SDNC | ||||||
Release | Dublin | ||||||
Pre-conditions | Initial State | ||||||
Testing Steps | 1. Go to terminal 1:
2. Go to terminal 2:
The content of file upgrade-pre-check-input.json is as follows:
3. Back to terminal 1, and wait a minute to get the output:
| ||||||
Conclusion (Pass /Fail) | PASS |