CLOUDSTACK-9304: Add nuagevsp userdata testcase (Cloudstack-9095) & Refactor existing testcases#1431
CLOUDSTACK-9304: Add nuagevsp userdata testcase (Cloudstack-9095) & Refactor existing testcases#1431asfgit merged 5 commits intoapache:masterapache/cloudstack:masterfrom
Conversation
new file: ../plugins/nuagevsp/__init__.py
| physical_networks = cls.api_client.listPhysicalNetworks(resp) | ||
| for pn in physical_networks: | ||
| if pn.isolationmethods=='VSP': | ||
| physical_network = pn |
There was a problem hiding this comment.
I would say come out of the loop as and when you find a physical network with isolation method as "VSP" unless the intention is to use multiple physical networks.
There was a problem hiding this comment.
@sanju1010 - Done..! Commited the change to the PR. Please review the same.
…SP is found modified: nuageTestCase.py
|
LGTM based on the code review. |
|
@sneeladh @shivsg Thanks for adding the tests, can you please run your code through pyflakes, pep8 and fix them ? $ pyflakes *.py |
|
Pep8 and Pyflakes compliant [sneeladh@mvlinux26:nuagevsp]$ [sneeladh@mvlinux26:nuagevsp]$ [sneeladh@mvlinux26:nuagevsp]$ |
|
Jenkins failure is not related to these integration test changes, there are some junit tests failed [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project cloud-utils: There are test failures. |
|
otherwise, it LGTM. |
|
LGTM based on the test results test_01_UserDataPasswordReset (nuagevsp.test_nuage_password_reset.TestNuagePasswordReset) ... === TestName: test_01_UserDataPasswordReset | Status : SUCCESS === Ran 3 tests in 2477.667s OK |
CLOUDSTACK-9304: Add nuagevsp userdata testcase (Cloudstack-9095) & Refactor existing testcaseshttps://issues.apache.org/jira/browse/CLOUDSTACK-9304 1. Created folder / test / integration / plugins / nuagevsp 2. Moved test_nuage_vpc_network.py , test_nuage_vsp.py from / test / integration / component / to---> / test / integration / plugins / nuagevsp/ 3. Added new testcase test_nuage_password_reset.py (Cloudstack-9095) 4. Added Nuage class in / tools / marvin / marvin / lib / base.py 5. Added services in / tools / marvin / marvin / config / test_data.py results: test_01_UserDataPasswordReset (nuagevsp.test_nuage_password_reset.TestNuagePasswordReset) ... === TestName: test_01_UserDataPasswordReset | Status : SUCCESS === ok Test Basic VPC Network Functionality with NuageVsp network Plugin ... === TestName: test_nuage_vpc_network | Status : SUCCESS === ok Test NuageVsp network plugin with basic Isolated Network functionality ... === TestName: test_nuage_vsp | Status : SUCCESS === ok ---------------------------------------------------------------------- XML: /root/report_xunit.xml ---------------------------------------------------------------------- [PassLogs.zip](https://github.com/apache/cloudstack/files/164368/PassLogs.zip) Ran 3 tests in 2406.256s OK #CLOUDSTACK-9304 * pr/1431: Made the code Pyflakes compliant CLOUDSTACK-9304 - Exit loop when Physical Network with isolation as VSP is found modified: nuageTestCase.py CLOUDSTACK-9304 - Modified Description deleted: test_vpcnetwork_nuage.py new file: ../plugins/nuagevsp/__init__.py Add nuagevsp userdata testcase (Cloudstack-9095) & Refactor existing testcases Signed-off-by: Srikanteswararao Talluri <talluri@apache.org>
|
I am not going to revert this merge at this time, but please ping me if you feel the PR is ready to be merged into master. Thx... |
|
@swill Yes, PR is ready to be merged. Do you see any problem with that? |
|
If the concern is jenkins build, I mentioned that the failures are not related to these integration test code but they are junit tests. |
|
It was already merged. I will leave it for now, but I will take note of this PR to validate it once my CI is up and running to make sure it does not cause any issues. |
|
sure. |
Substituição de `finalyzeAccountId` por `finalizeAccountId` Closes apache#1431 See merge request scclouds/scclouds!1142
https://issues.apache.org/jira/browse/CLOUDSTACK-9304
results:
test_01_UserDataPasswordReset (nuagevsp.test_nuage_password_reset.TestNuagePasswordReset) ... === TestName: test_01_UserDataPasswordReset | Status : SUCCESS ===
ok
Test Basic VPC Network Functionality with NuageVsp network Plugin ... === TestName: test_nuage_vpc_network | Status : SUCCESS ===
ok
Test NuageVsp network plugin with basic Isolated Network functionality ... === TestName: test_nuage_vsp | Status : SUCCESS ===
ok
XML: /root/report_xunit.xml
PassLogs.zip
Ran 3 tests in 2406.256s
OK
CLOUDSTACK-9304