blob: 6f66c17efb05ab8eec3919f405e29e8a6783340c [file] [log] [blame]
Jeremy Mordkoff6f07e6f2016-09-07 18:56:51 -04001
2TO test the LP mocklet via command line:
3
4Part 1: Run the test server infrastructure
5
61. ssh into a VM, navigate to your workspace rift root and run ./rift-shell
72. navigate to:
8 modules/core/mc/rwmc/test
9
103. run:
11 $ python3 ./mission_control.py -m ethsim -c --skip-prepare-vm --mock --skip-ui
12
13The --skip-ui option prevents the server infrastructure from loading Composer
14and the UI (to save time loading, especially if you are going to be running
15the server in your own dev environment).
16
17Part 2: Run the mocklet
18
191. repeat step 1 above
202. navigate to:
21 modules/core/mc/rwlp_dts_mock
22
23
243. If the rwlp_dts_mock/node_modules directory does not exist, run:
25
26 $ npm install
27
284. Start the mocklet after the server (mission_control.py) has completed initialization
29
30To start the mocklet:
31
32 $ node lp_mock_client.js
33
345. After the mocklet has started, open another terminal window (can be
35anywhere that can access the restconf server on your VM) and run the following:
36
37Seed the descriptors and instance config objects, run:
38
39 $ ./set_data.sh <vm-ip-address>
40
41Now you are ready to test retrieving an ns-instance-opdata object
42
43 $ get_ns_instance_opdata.sh <vm-ip-address>
44