threefoldtecharchive / 0-templates

0-robot templates
Apache License 2.0
1 stars 1 forks source link

node_port_manager test cases #291

Closed hossnys closed 5 years ago

hossnys commented 5 years ago

node_port_manager test cases

root@1a2ce0c78812:/opt/code/github/threefoldtech/0-templates/tests# nosetests-3.4 -vs --rednose --logging-level=WARNING testcases/a_basics/node_port_manager_testcases.py --tc-file config.ini
[Wed26 10:20] - SSHKeys.py        :153 :j.clients.sshkey     - INFO     - Will start agent
   52 pts/0    S+     0:00 /bin/bash -c ps ax | grep 'ssh-agent'
   54 pts/0    S+     0:00 grep ssh-agent
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
[Wed26 10:20] - SSHKeys.py        :274 :j.clients.sshkey     - INFO     - load ssh agent
[Wed26 10:20] - SSHKeys.py        :79  :j.clients.sshkey     - INFO     - load ssh key: /root/.ssh/id_rsa
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa)
Lifetime set to 86400 seconds
*Test case for reserving ports using service guid . ... [Wed26 10:20] - base_test.py      :92  :j.testsuite.log      - INFO     - reserving two ports for one service
[Wed26 10:20] - base_test.py      :92  :j.testsuite.log      - INFO     - releasing  the 1st reserved port for one service
[Wed26 10:20] - base_test.py      :92  :j.testsuite.log      - INFO     - releasing  the 2nd reserved port for one service
passed
*Test case for reserving port using guid and release it with different GUID ... [Wed26 10:20] - base_test.py      :92  :j.testsuite.log      - INFO     - releasing the reserved port with different guid , should fail
[Wed26 10:20] - base_test.py      :92  :j.testsuite.log      - INFO     - releasing the reserved port with right guid , should success
passed

-----------------------------------------------------------------------------
2 tests run in 27.589 seconds (2 tests passed)