Skip to content

Stdlib::Http::Method: Add new type for http methods #1299

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

Merged
merged 1 commit into from
Apr 23, 2023

Conversation

b4ldr
Copy link
Collaborator

@b4ldr b4ldr commented Mar 10, 2023

This PR creates new new resources:

  • Stdlib::Http::Method for validating http methods
  • Stdlib::Http::Status This is just a copy of Stdlib::Httpstatus
  • make Stdlib::Httpstatus and alias to Stdlib::Http::Status

This PR re-intorduces #1192 which i apparently nuked in #1193

Fixes #1297

@b4ldr b4ldr requested a review from a team as a code owner March 10, 2023 14:04
@b4ldr b4ldr mentioned this pull request Mar 10, 2023
@b4ldr b4ldr force-pushed the feature/https_method branch from db22075 to e588a1d Compare March 10, 2023 14:24
@b4ldr
Copy link
Collaborator Author

b4ldr commented Mar 10, 2023

i'm guessing the ci issue is unrelated?

@ekohl
Copy link
Collaborator

ekohl commented Mar 10, 2023

You can ignore mend, but I wonder why the unit test is failing.

@b4ldr
Copy link
Collaborator Author

b4ldr commented Mar 10, 2023

thanks, the failed spec test relate to fqdn_rand_string so i don't think anything in this PR could have broken them. i have kicked the testes of again to see if it was just something transient

@ekohl
Copy link
Collaborator

ekohl commented Mar 10, 2023

Oh no, that's #1294.

bastelfreak
bastelfreak previously approved these changes Mar 10, 2023
type Stdlib::HttpStatus = Integer[100, 599]
# @deprecated Use Stdlib::Http::Status
# @see Stdlib::Http::Status
type Stdlib::HttpStatus = Stdlib::Http::Status
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after this is merged, can you raise a new PR that removes this old type? Then we can keep it open until the next major release and won't forget it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure will do, ill leave this open for now so i dont forget

This PR creates new new resources:
 * Stdlib::Http::Method for validating http methods
 * Stdlib::Http::Status This is just a copy of Stdlib::Httpstatus
 * make Stdlib::Httpstatus and alias to Stdlib::Http::Status

Ideally we would deprecate Stdlib::Httpstatus in favour of
Stdlib::Http::Status

Co-authored-by: Ewoud Kohl van Wijngaarden <[email protected]>
@CLAassistant
Copy link

CLAassistant commented Apr 19, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ekohl ekohl merged commit 03bcefd into puppetlabs:main Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

missing merge 1192
6 participants