Skip to content

Upgrade cors tests - #4

Merged
alexvanin merged 4 commits into
masterfrom
empty_allowed_header
Oct 14, 2021
Merged

alexvanin merged 4 commits into
masterfrom
empty_allowed_header

Conversation

@masterSplinter01

Copy link
Copy Markdown

Signed-off-by: Angira Kekteeva [email protected]

Angira Kekteeva added 2 commits October 7, 2021 18:34
Separated test_cors_origin_response into test with requests witth
credetials and without.

Signed-off-by: Angira Kekteeva <[email protected]>
masterSplinter01 pushed a commit that referenced this pull request Oct 7, 2021
Responses to simple requests

Signed-off-by: Angira Kekteeva <[email protected]>
Added checking of headers.

Signed-off-by: Angira Kekteeva <[email protected]>
@masterSplinter01 masterSplinter01 changed the title Add more tests for allowed headers in cors Upgrade cors tests Oct 7, 2021
@masterSplinter01

masterSplinter01 commented Oct 9, 2021 •

Copy link
Copy Markdown
Author

Issues with CORS tests:

Fixed s3tests_boto3.functional.test_s3_neofs.test_cors_origin_response_with_credentials fails with AWS because in case when in CORSConfiguration AllowedOrigin = '' AWS responds to requests with credentials with header access-control-allow-origin = '' that is not correct via docs:

Note: When responding to a credentialed requests request, the server must specify an origin in the value of the Access-Control-Allow-Origin header, instead of specifying the "*" wildcard.

@KirillovDenis

Copy link
Copy Markdown

The following tests fail on AWS S3:

  • s3tests_boto3.functional.test_s3_neofs.test_cors_origin_response_with_credentials
  • s3tests_boto3.functional.test_s3_neofs.test_cors_origin_response

Should we ensure that new tests pass on AWS?

@masterSplinter01

Copy link
Copy Markdown
Author

Why s3tests_boto3.functional.test_s3_neofs.test_cors_origin_response_with_credentials fails is explained in the comment above.

It's strange that test s3tests_boto3.functional.test_s3_neofs.test_cors_origin_response failed, because I restarted the tests and got the results (the same as earlier):

s3tests_boto3.functional.test_s3_neofs.test_set_cors ... ok
s3tests_boto3.functional.test_s3_neofs.test_cors_origin_response ... ok
s3tests_boto3.functional.test_s3_neofs.test_cors_origin_response_with_credentials ... FAIL
s3tests_boto3.functional.test_s3_neofs.test_cors_origin_wildcard ... ok

Could you please retry the test test_cors_origin_response and attach logs from results?

@KirillovDenis

Copy link
Copy Markdown

AWS responds to requests with credentials with header access-control-allow-methods='*'

Do you mean access-control-allow-origin?

@masterSplinter01

masterSplinter01 commented Oct 13, 2021 •

Copy link
Copy Markdown
Author

Typo, yep, I mean access-control-allow-origin. Edited the comment.

@KirillovDenis

Copy link
Copy Markdown

Well... Currently the test pass. Some time ago I couldn't connect to AWS at all (perhaps it was related).

@alexvanin
alexvanin merged commit 448dd29 into master Oct 14, 2021
masterSplinter01 pushed a commit that referenced this pull request Apr 20, 2022
Signed-off-by: Angira Kekteeva <[email protected]>
masterSplinter01 pushed a commit that referenced this pull request Apr 20, 2022
Signed-off-by: Angira Kekteeva <[email protected]>
masterSplinter01 pushed a commit that referenced this pull request Apr 20, 2022
Signed-off-by: Angira Kekteeva <[email protected]>
evgeniiz321 pushed a commit that referenced this pull request Oct 4, 2023
c4d30d7	Ravindra Choudhari	Mon, 27 Jun 2022 removing region name
4a13f58	Ravindra Choudhari	Thu, 16 Jun 2022 Updating readme file (#15)
18bc152	Ravindra Choudhari	Tue, 14 Jun 2022 Adding attr test_of_iam to all user policy tests (#13)
03f520a	Ravindra Choudhari	Tue, 14 Jun 2022 resolving review comments (#12)
7cf2823	Ravindra Choudhari	Mon, 13 Jun 2022 added IAM policy test section in README.rst (#11)
563f3ea	Ravindra Choudhari	Fri, 10 Jun 2022 adding failing three tests back with attr @fails_on_rgw (#10)
696dd2e Ravindra Choudhari 	Mon, 6 Jun 2022 changes as per review comments
3d63dfd Ravindra Choudhari 	Mon, 6 Jun 2022 Fixed review comments (#8)
9492f69 Ravindra Choudhari	Fri, 3 Jun 2022 Fixed review comments (#7)
74095dc Ketan Arlulkar     	Wed, 1 Jun 2022 Fixed review comments (#6)
942fb4f Ketan Arlulkar     	Wed, 1 Jun 2022 Added Tests for conflicting policies and IAM actions (#4)
ad5b5ae Ravindra Choudhari 	Tue, 31 May 2022 IAM policies s3 actions (#5)
6515ec6 Ketan Arlulkar     	Fri, 27 May 2022 Corrected eq import
40a2841 Ravindra Choudhari 	Tue, 17 May 2022 resolving conflicts
f53a5c1 Ravindra Choudhari 	Tue, 17 May 2022 added cleanup
747d563 Ketan Arlulkar     	Tue, 17 May 2022 Added cleanup/Delete Policy
d1cc1d8 Ketan Arlulkar     	Mon, 16 May 2022 Fixed review comments
1ec43a2 Ravindra Choudhari 	Mon, 16 May 2022 delete user policy tests
a01722e Ravindra Choudhari 	Mon, 16 May 2022 get user policy tests
ff9d676 Ketan Arlulkar     	Fri, 13 May 2022 Removed TEST IDs
d261400 Ketan Arlulkar     	Tue, 10 May 2022 Put User Policy & List User Policy Tests

Signed-off-by: Ravindra Choudhari <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants