Add request method to test requests

Follow up to a comment on Change I467a74dfe321e61d.

Change-Id: I4e80d9e673ff21d41d3113a5ddf91d44259a689e
This commit is contained in:
Brian Rosmaita 2021-09-13 15:28:06 -04:00
parent 3cedf7d81c
commit 640c7302dc
1 changed files with 2 additions and 0 deletions

View File

@ -122,6 +122,7 @@ class AttachmentsPolicyTest(base.BasePolicyTest):
attachment_id = self._create_attachment()
url = '%s/%s' % (self.api_path, attachment_id)
req = fake_api.HTTPRequest.blank(url, version=self.api_version)
req.method = 'PUT'
body = {
"attachment": {
"connector": {
@ -158,6 +159,7 @@ class AttachmentsPolicyTest(base.BasePolicyTest):
attachment_id = self._create_attachment()
url = '%s/%s' % (self.api_path, attachment_id)
req = fake_api.HTTPRequest.blank(url, version=self.api_version)
req.method = 'DELETE'
unauthorized_exceptions = []