diff options
author | 2017-04-22 13:25:07 +0200 | |
---|---|---|
committer | 2017-04-22 13:25:07 +0200 | |
commit | d182202fc6001983541504ed323d68479086317e (patch) | |
tree | 11d4c10cdd3e995f519c3e0e324968fdaf175114 /moonv4/moon_interface/tests/apitests/README.md | |
parent | 83c1c966baf73329fab8ddcfad19ad7fe0c41c2a (diff) |
add moonv4
Change-Id: I247af788d0b0fb961fbc85416486b241eb1d807c
Signed-off-by: WuKong <rebirthmonkey@gmail.com>
Diffstat (limited to 'moonv4/moon_interface/tests/apitests/README.md')
-rw-r--r-- | moonv4/moon_interface/tests/apitests/README.md | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/moonv4/moon_interface/tests/apitests/README.md b/moonv4/moon_interface/tests/apitests/README.md new file mode 100644 index 00000000..ef74a1e3 --- /dev/null +++ b/moonv4/moon_interface/tests/apitests/README.md @@ -0,0 +1,33 @@ +Test directory +============== + +API tests +--------- +To test all interfaces, you can use : + +```bash +$ cd moonv4/moon_interface/tests/apitests +$ pytest +============================================================================= test session starts ============================================================================== +platform linux -- Python 3.5.2, pytest-3.0.7, py-1.4.33, pluggy-0.4.0 +rootdir: /home/vdsq3226/projets/opnfv/moonv4/moon_interface, inifile: +collected 15 items + +test_models.py ..... +test_pdp.py . +test_policies.py ......... + +``` + +Populate default variables for a particular demonstration +--------------------------------------------------------- + +```bash +$ cd moonv4/moon_interface/tests/apitests +$ python3 populate_default_values.py scenario/rbac.py -v +Loading: scenario/rbac.py +2017-03-31 09:57:17,243 WARNING Creating model RBAC +2017-03-31 09:57:17,507 WARNING Creating policy Multi policy example +2017-03-31 09:57:18,690 WARNING Creating PDP pdp1 + +```
\ No newline at end of file |