How to use list_loggable_resources method in tempest

Best Python code snippet using tempest_python

test_logging.py

Source:test_logging.py Github

copy

Full Screen

...54 # List supported logging types55 # Since returned logging types depends on loaded backend drivers56 # this test is checking only if returned keys are same as expected keys57 expected_log_keys = ['type']58 log_types = self.admin_client.list_loggable_resources()59 actual_list_log_types = log_types['loggable_resources']60 # Verify that only required fields present in logging types61 for log_type in actual_list_log_types:62 self.assertEqual(tuple(expected_log_keys), tuple(log_type.keys()))63 @decorators.idempotent_id('1ab4eb2a-76f5-45b9-816b-1aa497a71eea')64 def test_log_deleted_with_corresponding_security_group(self):65 security_group = self.create_security_group()66 name = data_utils.rand_name('test-log')67 log = self.create_log(68 name=name,69 resource_type='security_group',70 resource_id=security_group['id'],71 enabled=True)72 # Ensure log was created...

Full Screen

Full Screen

test_loggable_resource_client.py

Source:test_loggable_resource_client.py Github

copy

Full Screen

...31 fake_auth = fake_auth_provider.FakeAuthProvider()32 self.loggable_resource_client = \33 loggable_resource_client.LoggableResourceClient(34 fake_auth, "network", "regionOne")35 def _test_list_loggable_resources(self, bytes_body=False):36 self.check_service_client_function(37 self.loggable_resource_client.list_loggable_resources,38 "tempest.lib.common.rest_client.RestClient.get",39 self.FAKE_LOGS,40 bytes_body,41 200)42 def test_list_loggable_resources_with_str_body(self):43 self._test_list_loggable_resources()44 def test_list_loggable_resources_with_bytes_body(self):...

Full Screen

Full Screen

loggable_resource_client.py

Source:loggable_resource_client.py Github

copy

Full Screen

...13# License for the specific language governing permissions and limitations14# under the License.15from tempest.lib.services.network import base16class LoggableResourceClient(base.BaseNetworkClient):17 def list_loggable_resources(self, **filters):18 """List Loggable resources.19 For a full list of available parameters, please refer to the official20 API reference:21 https://docs.openstack.org/api-ref/network/v2/index.html#list-loggable-resources22 """23 uri = '/log/loggable-resources'...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run tempest automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful