How to use test_update_container_metadata_with_delete_metadata_key method in tempest

Best Python code snippet using tempest_python

test_container_services.py

Source:test_container_services.py Github

copy

Full Screen

...329 resp, _ = self.container_client.list_container_metadata(330 container_name)331 self.assertNotIn('x-container-meta-test-container-meta1', resp)332 @test.idempotent_id('a2e36378-6f1f-43f4-840a-ffd9cfd61914')333 def test_update_container_metadata_with_delete_metadata_key(self):334 # update container metadata with a blank value of metadata335 container_name = data_utils.rand_name(name='TestContainer')336 metadata = {'test-container-meta1': 'Meta1'}337 self.container_client.create_container(container_name,338 metadata=metadata)339 self.containers.append(container_name)340 metadata = {'test-container-meta1': ''}341 resp, _ = self.container_client.delete_container_metadata(342 container_name,343 metadata=metadata)344 self.assertHeaders(resp, 'Container', 'POST')345 resp, _ = self.container_client.list_container_metadata(container_name)...

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