Overview
For testing SDN-R with its basic use cases an automated test setup should be used.
Beside "SDN-R Development integratoin test" there is the "SDN-R Solution integration test"
Related issue: - SDNC-891Getting issue details... STATUS
Requirements
- Simple, run on single ubuntu server
- Use Simulators instead of devices
- Use as far as possible real ONAP server components, if not possible test tools, like VES-test-collector
- Is compatible with ONAP integration tests setup
Test setup
Environments
Post production test cases
Location
- Repository for robot test scripts: https://git-highstreet-technologies.com/highstreet/CICD_environment
- Repository for setup of integration test: https://git-highstreet-technologies.com/highstreet/ccsdk/tree/master/integration
- OSNL Based (https://www.osn-lab.com/) access required to be able to follow the links below
- Jenkins/robot framework scripts: http://10.20.6.10:30080/view/ONAP_SDNR_WT_FRANKFURT/job/60_device_onboarding_Frankfurt/
- Docker-image: http://10.20.6.10:30000/v2/highstreet/robot/tags/list
- ntsim: https://github.com/Melacon/ntsim/tree/master/ntsimulator
Infrastructure Basic information
- Server "Test VM": sdnr-frankfurt-int 10.20.5.5 provides docker based test environment
- Static environment for otto
- oran NTS_Manager 8300 baseport 50000 dir 3gppsim
- gran NTS_Manager_3GPP 9300 baseport 60000 dir oransim
- Static environment for frankfurt development build robot
- oran Robot_NTS_Manager 8200 basport 55000 dir robot-nts-manager
- Integration test environment
- Port ranges 8310 .. 8499, 40000 .. 49999
- ntssim oran 8310, 40000 .. 40019
- Docker internal static IP assignment in "integration" network (172.40.0.0/16) with names for /etc/hosts of docker host.
- 172.40.0.20 sdnrinit
- 172.40.0.21 sdnr
- 172.40.0.22-24 sdnr-0, sdnr-1, sdnr-2
- 172.40.0.30 sdnrdb
- 172.40.0.40 Netconfserversimulator
- 172.40.0.60 Zookeeper
- 172.40.0.70 Kafka
- 172.40.0.80 DMaaP
- 172.40.0.90 VESCollector
- NTSim is using its own network. Communication takes place over the host IP and the mapped ports.
- Access to services from outsite are running over the host IP. See table.
Name/IP/Port to access from jenkins/robotframework
Host Server Port | Internal Port | internal ip | Component | |
---|---|---|---|---|
8181 | SDN-R Web | itsdnr | ||
9200 | 9200, 9300 | Elasticsearch 6.8.5 ←Wrong version | itsdnrdb | |
8300 | 0.0.0.0 | NTSim ORAN Management | NTS_Manager | |
50000 .. 50099 | 830..839 n times | 172.17.0.2 ... | N times NTSim ORAN devices | generated names |
8323 | 2223 | Sim "2230" | netconfserversimulator | |
Sim "12600" (todo later) |
Development (old environment)
- docker for networking, run containers
- docker-compose starting a structure
- bash initialization
- manual execution of development tests
Test cases
Test case "Inventory"
- Startup
- Create docker network
- a static network setup with static IPs for the containers
- add name to hosts and use this names
- start docker - Simulator (e.g. Sim12600 with equipment)
- start docker - DB
- start docker - SDNC
- Create docker network
- Test steps
- mount sim12600
- Read over the RESTCONF Interface via data-provider the equipment
- Compare if it is the expected data