14 Commits

Author SHA1 Message Date
Zuul
b82476000c Merge "Adding new test of security group rules quota increased." 2020-03-11 11:56:57 +00:00
ekuris
4e329cf99c Adding new test of security group rules quota increased.
The test is checking that it is possible to create
new security group rules after increasing the quota parameter.

Change-Id: Ie961293215c48883c962debe888b0bca418e3eb9
2020-03-10 13:35:21 +00:00
Zuul
753ddfe205 Merge "Helper class for BaseSecGroupRulesQuota tests." 2020-03-06 00:22:35 +00:00
ekuris
1b896ca196 Helper class for BaseSecGroupRulesQuota tests.
The helper class contain:
-Get function of security group rules quota
-Set function of security group rules quota
-Increase & Decrease of security group rules quota

Change-Id: I99d633bdc0fbac7d7259210052be289c94b70a2b
2020-03-04 07:41:56 +00:00
Slawek Kaplonski
31c0006ded Add list security group rules API test
This test checks that regular user can see all SG rules which belongs
to his tenant OR belongs to security group owned by his tenant.

This test also ensures that SG rules from different tenants and Security
Groups are not visible for regular user.

Fix for master branch
Depends-On: https://review.opendev.org/681910

Fix for stable/train
Depends-On: https://review.opendev.org/688715

Fix for stable/stein
Depends-On: https://review.opendev.org/688716

Fix for stable/rocky
Depends-On: https://review.opendev.org/688717

Fix for stable/queens
Depends-On: https://review.opendev.org/688719

Change-Id: Ic2e97ab8162d10e507ef83b9af0840e7311f0587
Related-Bug: #1824248
2020-02-26 20:33:02 +00:00
Rodolfo Alonso Hernandez
cc92cc9f44 Remove references to "tenant_id" in test_security_groups
Change-Id: I4cbeb5b0dff226ccb6c7d7893b4fa5a0b49a8f64
Related-Bug: #1858783
2020-02-11 09:29:10 +00:00
Alex Katz
426c909aab Positive tests for security group quota
1. Test supported values for securiyt group quota
2. Test creating maximum allowed amount of security groups
3. Test creating maximum allowed amount of security groups if
quota is increased
4. Test decreasing security group quota to a value that is less
than amount of already created security groups
5. Test creating security groups when the quota is disabled (set to -1)

Change-Id: I833e5d5e67ef7555c9e6a54613b7324310079b0b
2020-01-14 16:30:31 +02:00
Zuul
0d29ebb40c Merge "Add API test case to check if SG displays all rules" 2019-05-28 17:43:05 +00:00
Slawek Kaplonski
87c3f941a3 Add API test case to check if SG displays all rules
This patch adds new API test which checks if owner of security group
can see rules which belongs to his security group even if rule was
created and belongs to other user (admin).

Patch for master branch:
Depends-On: https://review.opendev.org/660174

Backport to stable/Stein:
Depends-On: https://review.opendev.org/661281

Backport to stable/Rocky:
Depends-On: https://review.opendev.org/661283

Backport to stable/Queens:
Depends-On: https://review.opendev.org/661284

Change-Id: I728cd8252d27e27e91bd95e4734d9db470dee35a
Related-Bug: #1824248
2019-05-24 19:02:54 +00:00
Brian Haley
8d2557c632 Change legacy security group rule check
A neutron change, https://review.opendev.org/#/c/453346/
is standardizing the protocol name for IPv6 ICMP in security
group rules to be 'ipv6-icmp', even if 'icmp' or 'icmpv6'
was passed during creation.  Change the API test to check
against a list of possible values so it covers both old and
new behaviors.

Change-Id: I0ca8d743ca56f7d67ef8c1ae45ca518bd6e6dc35
Partial-Bug: #1582500
2019-05-21 09:14:38 -04:00
Doug Wiegley
5b85ad8c3f
Add tempest api tests for security groups RBAC
Partial-Bug: #1817119
Depends-On: https://review.openstack.org/635311
Change-Id: I806d0c1763a0abc4f07a7c85922949b056ad78d8
2019-03-05 22:12:16 -07:00
Federico Ressi
e570de6389 Update test cases after security group menthods improvements.
Change I50858d5198d8a70a2bb9fb278786c433d7cb12ca improved
test case methods for helping reducint test case complexity
when handling with security groups.

This change use those API improvements to reduce the
complexity of existing test cases and to make them easier
to read.

Change-Id: I8589b31db996702c3da2235fa72182badfd84c02
2018-12-04 09:16:30 +00:00
Chandan Kumar
c125fd1479 Code Sync from neutron project to newly created neutron-tempest-plugin
* The following commit sync the code from following hash:
  start_hash: 7279aa35851110a4933a10b58b2758a2bc3933a3
  end_hash: 6e911a49a9e630878f4c46f61fde3964be550880

Change-Id: I371aa4d5f043f695df04b98b0f485c8f0548f2b3
2017-11-15 23:00:13 +05:30
Chandan Kumar
667d3d3260 Refactored Neutron tempest plugin directory structure
* switch from neutron.tests.tempest to neutron_tempest_plugin
* Cleaned up README.rst and setup.cfg
* Use neutron_tempest_plugin as a tempest plugin package
* Fixed gitreview
* Keeping flake8 Ignores in tox.ini as tempest plugin is
  imported from neutron codebase.

Change-Id: I42d389836e72813fdeebc797a577f4a8ac2ee603
2017-11-13 09:19:11 +05:30