-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for Policy-Management and BGPVPN. #14
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SVilgelm can you please review this ?
Again, you don't need to create new pull request, so we lost our conversation. You had to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Can you provide the test results and pylint report without any pylint rc, please? |
Here are the Pylint-results (35_env) root@ubuntu:~# pylint /home/ubuntu/run/tungsten-tempest/tungsten_tempest_plugin/tests/api/contrail/test_bgpvpn.py Your code has been rated at 10.00/10 (35_env) root@ubuntu:~# pylint /home/ubuntu/run/tungsten-tempest/tungsten_tempest_plugin/tests/api/contrail/test_policy_management.py Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) Tempest-results: admin ======
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, use from tempest.lib import decorators
to avoid pep8 error or ping @aveeshek, he has a code to fix this problem.
|
||
@rbac_rule_validation.action(service="Contrail", | ||
rules=["list_service_objects"]) | ||
@decorators.idempotent_id('05458fa1-ba09-4772-91aa-ca06243b5f5e') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You use @decorators.idempotent_id
here, but you imports from tempest.lib.decorators import idempotent_id
on L20.
So there is not decorators
module in the current scope.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea i have updated it thanks :)
from patrole_tempest_plugin import rbac_rule_validation | ||
from tempest import config | ||
from tempest.lib.common.utils import data_utils | ||
from tempest.lib import decorators |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
http://www.opencontrail.org/documentation/api/r5.0/contrail_openapi.html#policy-management-label
http://www.opencontrail.org/documentation/api/r5.0/contrail_openapi.html#bgpvpn-label