Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added 412 to error codes that are checked #1306

Merged
merged 8 commits into from Jun 16, 2022

Conversation

Mia-Cross
Copy link
Contributor

The validation function for the cassettes will now check for 412 errors (Precondition failed) in addition to 409 and 500. This will be useful when dealing with private networks among other things.

@codecov-commenter
Copy link

codecov-commenter commented Jun 1, 2022

Codecov Report

Merging #1306 (359918a) into master (7d0430b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1306   +/-   ##
=======================================
  Coverage   70.22%   70.22%           
=======================================
  Files         107      107           
  Lines       17514    17514           
=======================================
  Hits        12299    12299           
  Misses       4150     4150           
  Partials     1065     1065           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d0430b...359918a. Read the comment docs.

@remyleone
Copy link
Member

We got some 412 in the cassettes, I've checked with a grep. It is weird that the CI does not catch anything. Can you ensure that the test is working properly and that HTTP codes are indeed checked?

@Mia-Cross
Copy link
Contributor Author

Mia-Cross commented Jun 2, 2022

We found a bug in the cassettes validation function that was preventing quite a few errors to show up, here's the detail of the errors that we can catch now :

image

@Mia-Cross
Copy link
Contributor Author

Mia-Cross commented Jun 14, 2022

As of today, we still have these errors to fix :

@remyleone remyleone merged commit cd1479f into scaleway:master Jun 16, 2022
remyleone added a commit to remyleone/terraform-provider-scaleway that referenced this pull request Jun 17, 2022
Co-authored-by: Rémy Léone <rleone@scaleway.com>
Co-authored-by: Jules Castéran <jcasteran@scaleway.com>
@Mia-Cross Mia-Cross deleted the add_412_error_to_tests branch February 27, 2023 10:15
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.

Add checks to verify that we don't have 412 http error code in the cassettes
4 participants