Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Adds tests of securitySchemes in endpoints #68

Merged
merged 4 commits into from
Nov 6, 2022
Merged

Conversation

spacether
Copy link
Contributor

@spacether spacether commented Nov 5, 2022

Adds tests of security schemas in endpoints

  • adds http + basic test in POST to http://petstore.swagger.io:80/v2/fake
  • adds http + bearer test in DELETE to http://petstore.swagger.io:80/v2/fake

Improvements:

  • Configuration class updated to allow access_token to be passed in init
  • init variables limited to only the auth applicable ones
  • removed discard_unknown_keys because it is unused in this generator

Note:

PR checklist

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • Run the following to build the project and update samples:
    ./mvnw clean package 
    ./bin/generate-samples.sh
    ./bin/utils/export_docs_generators.sh
    
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/python*.
    For Windows users, please run the script in Git BASH.

@spacether spacether added this to the 1.0.3 milestone Nov 5, 2022
@spacether spacether marked this pull request as draft November 5, 2022 22:47
@spacether spacether marked this pull request as ready for review November 6, 2022 07:35
@spacether spacether merged commit 84557a9 into master Nov 6, 2022
@spacether spacether deleted the adds_security_tests branch November 6, 2022 07:48
@spacether spacether changed the title Adds tests of security schemas in endpoints Adds tests of securitySchemes in endpoints Nov 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant