Skip to content

Commit

Permalink
minor lux test fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Volf <[email protected]>
  • Loading branch information
martin-volf committed Jul 20, 2021
1 parent 241bbfb commit f2c71ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ $
The directory `lux` contains one test case that tries to verify that basic
integration with NSO and DrNED works. The prerequisites are:

* DrNED must be installed and the environment variable `DRNED` points to the
installation directory
* `xmllint` must be installed (Ubuntu: `sudo apt install libxml2-utils`)
* `PYTHONPATH` must point to NSO Python API
* several additional Python packages need to be installed, see
`requirements.txt`
* environment variable `relative_paths` should be set to `true` (occasionally
you may want to set it to `false`; it affects where XMNR stores its files)
* JDK and `ant`

When this is set correctly, run

Expand Down
6 changes: 3 additions & 3 deletions test/lux/basic.lux
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"""?
netconf-console --get .*
$states$$
SH-PROMPT
SH-PROMPT:
"""
[shell $shell]
[endmacro]
Expand All @@ -68,7 +68,7 @@
[local ned0_log=$ned0_dir/test/output.log]
!cp -v ../subnet2.xml $ned0_dir/test/states/
??'../subnet2.xml' -> '$ned0_dir/test/states/subnet2.xml'
?SH-PROMPT
?SH-PROMPT:
[shell ncs-cli]
!drned-xmnr state record-state state-name subnet2
???failure state subnet2 already exists
Expand Down Expand Up @@ -158,7 +158,7 @@
?explore transitions
?KeyboardInterrupt
~$_CTRL_C_
?SH-PROMPT
?SH-PROMPT:

[cleanup]
[invoke cleanup]

0 comments on commit f2c71ea

Please sign in to comment.