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

1.0.0 release #38

Merged
merged 54 commits into from
Jun 18, 2021
Merged

1.0.0 release #38

merged 54 commits into from
Jun 18, 2021

Conversation

nicklloyd
Copy link
Contributor

No description provided.

nicklloyd and others added 30 commits May 31, 2021 17:17
* WIP - Simple response check

* WIP - Simple response check

* WIP - Full flow

* Minor

* WIP - flatten postman test scripts

* init test suite as service

* update snaps

* remove snaps

* let parser convert json to Collection

* slight change in adding a test

* Corrected typo in the testSuite key

* Added checkForSuccessStatus
Added checkForResponseTime
Added checkForResponseContentType

* Added json schema check
Added json body check

* fix typing issues

* don't redefine responseChecks

* add Portman class

* link collection in testsuite

* extend parser find methods

* extend parser find methods for oas

* Corrected incorrect headers property

* Added response headers check

* Corrected incorrect headers property

* Renamed statusSuccess to CheckResponseStatusSuccess

* cleanup file and method naming

* add units to testsuite generation

* add basic unit for TestSuiteService

* add unit for skip501s

* add unit for injectEnvVariables

* Added overwrite request body option

* Added overwrite request headers & query params option

* Added overwrite request path variables option for defined Operation ID's

* Added overwrite request path variables option for defined Operation ID's

* allow hasOwnValue

* add types for TestSuiteConfig

* refactor overwrite requests

* cleanup testsuite

* Added overwrite request path variables option

* simplify path overwrites for now

* type fix

* adds unit for overwriteRequestPath

* remove remove config from path params

* add unit for overwriteRequestQueryParams

* setByPath should handle array overwrites

* add remove to overwrites for headers and params

* add unit for overwriteRequestBody

* refactor test-suite-config

* add overwriteRequestPathIdVariables to overwrites

* Added content tests for the response body

* use postman collection _before_ portman for fixtures

* Added unit tests for content tests for the response body

* Added assign postman variables from Portman for request body value, response body value, response header value, fixed value

* Added jest snapshots

* Fixed invalid generated postman test for checkForResponse

* Path matching improvement to handle both OpenApi path as Postman path definitions

* Fixed an issue with the generated assignFromResponseHeader postman script + aligned messages

* Fixed assignVarFromRequestBody unit tests

* Added extended tests configuration option

* Removed skip501s in favour of using it through "extendTests" functionality

* Refactored append method to setTestScript method
Added setPreRequestScript method

* Refactored setPreRequestScript method to writeOperationPreRequestScript method
RefactoreRefactored setTestScript method to writeOperationTestScript method

* Json Schema validation - handled unwanted minItems & maxItems with a work-around

* wip merge rest of portman config

* add writeCollectionPreRequestScripts

* replaceVariables -> overwriteKeyValues

* bad rebase

* move remaining portman methods and restructure directories

* rough update of examples

* one config down

* move oas and postman into lib

* cleaning house

* move and rename TestSuiteService

* add collection writer

* simplify overwriteCollectionValues unit

* adds testSuite units

* extend units

Co-authored-by: Tim <>
Co-authored-by: nick_lloyd <[email protected]>
* Added fix for unwanted minItems in the JSON schema validation

* Used safe nav
thim81 and others added 22 commits June 15, 2021 11:10
* WIP - updated readme
1) introductie + list features
2) cli configuration
3) Portman settings briefly explained with references to the examples (if available)

* Added documentation on how to get a Postman API key
Added the Portman configuration options for assignPmVariables / overwrites

* Refactored assignPmVariables to assignVariables

* Updated portman-config.example.json

* Added all test properties to the readme

* Added the globals section (WIP)

* Updated the portman-config.example.json

* Updated the portman-config.example.json

* Referenced the images absolute

* Updated the portman-config.example & readme.

* Updated the portman-config.example & readme.

* Updated the install procedures

* Added links to the examples

* Typo corrections

* Added new intro

* Typo corrections

* Typo corrections

* Typo corrections

* Typo corrections

* Renamed responseBodyTest to responseBodyTests

* Added portman-globals example

* Added portman-globals pre-request example

* Added portman-globals pre-request example
* Refactored responseTest to contractTest
* Documentation writing

* Updated readme

* Updated cli-options example

* Updated globals example

* Updated assign variables example

* Updated assign variables example

* Updated content tests example

* Updated examples

* Updated examples

* Updated examples

* Updated examples

* Updated examples

* Updated examples

* Updated readme

* README suggestions (#47)

* Updated examples

Co-authored-by: Gertjan De Wilde <[email protected]>
* Added "excludeForOperations" for contract tests

* Added "excludeForOperations" for content tests

* Added "excludeForOperations" for extended tests

* id is optional as we might not have it from spec

Co-authored-by: nick_lloyd <[email protected]>
* Moved extendedTests in from the "root" level to the "tests" level

* Moved extendedTests in from the "root" level to the "tests" level

* Moved extendedTests in from the "root" level to the "tests" level

* 1.0.0 exclude for operations (#48)

* Added "excludeForOperations" for contract tests

* Added "excludeForOperations" for content tests

* Added "excludeForOperations" for extended tests

* id is optional as we might not have it from spec

Co-authored-by: nick_lloyd <[email protected]>

* make extendTests prop on testsuite

* 1.0.0 exclude for operations (#48)

* Added "excludeForOperations" for contract tests

* Added "excludeForOperations" for content tests

* Added "excludeForOperations" for extended tests

* id is optional as we might not have it from spec

Co-authored-by: nick_lloyd <[email protected]>

* Moved extendedTests in from the "root" level to the "tests" level

* Moved extendedTests in from the "root" level to the "tests" level

* update extendTests in variations

* update snaps

* bad merge

Co-authored-by: nick_lloyd <[email protected]>
* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* use type for default config

* Added the option to trigger an init command to help with the setup of Portman

* always use titlecase on types

* Added the option to trigger an init command to help with the setup of Portman

* tweak credits in readme

* bad merge

* tweak prompts

* tweak prompts

* Portman branding :p

* Readme tweaks

* prompt tweaks

* Removal unwanted commit files

* Readme tweaks

* rename responseBodyTests to contentTests in readme

Co-authored-by: nick_lloyd <[email protected]>
Updated readme & Updated examples
@thim81 thim81 mentioned this pull request Jun 18, 2021
@nicklloyd nicklloyd merged commit 2eab7ff into main Jun 18, 2021
@Gdewilde
Copy link
Contributor

Gdewilde commented Jun 18, 2021 via email

@thim81 thim81 deleted the 1.0.0-release branch November 6, 2022 13:24
clement-hvt pushed a commit to clement-hvt/portman that referenced this pull request Apr 19, 2023
* start on Portman OAS Parser

* extend MappedOperation helpers

* add safenav in tests

* add simple unit for MappingOperation

* use specOperation for unit

* extend coverage

* adds PostmanParser for working with collection and requests

* updatesnapshots

* pull coverage thresholds for now

* Load Parsed postman for manipulation

* 1.0.0 alpha testsuite (apideck-libraries#31)

* WIP - Simple response check

* WIP - Simple response check

* WIP - Full flow

* Minor

* WIP - flatten postman test scripts

* init test suite as service

* update snaps

* remove snaps

* let parser convert json to Collection

* slight change in adding a test

* Corrected typo in the testSuite key

* Added checkForSuccessStatus
Added checkForResponseTime
Added checkForResponseContentType

* Added json schema check
Added json body check

* fix typing issues

* don't redefine responseChecks

* add Portman class

* link collection in testsuite

* extend parser find methods

* extend parser find methods for oas

* Corrected incorrect headers property

* Added response headers check

* Corrected incorrect headers property

* Renamed statusSuccess to CheckResponseStatusSuccess

* cleanup file and method naming

* add units to testsuite generation

* add basic unit for TestSuiteService

* add unit for skip501s

* add unit for injectEnvVariables

* Added overwrite request body option

* Added overwrite request headers & query params option

* Added overwrite request path variables option for defined Operation ID's

* Added overwrite request path variables option for defined Operation ID's

* allow hasOwnValue

* add types for TestSuiteConfig

* refactor overwrite requests

* cleanup testsuite

* Added overwrite request path variables option

* simplify path overwrites for now

* type fix

* adds unit for overwriteRequestPath

* remove remove config from path params

* add unit for overwriteRequestQueryParams

* setByPath should handle array overwrites

* add remove to overwrites for headers and params

* add unit for overwriteRequestBody

* refactor test-suite-config

* add overwriteRequestPathIdVariables to overwrites

* Added content tests for the response body

* use postman collection _before_ portman for fixtures

* Added unit tests for content tests for the response body

* Added assign postman variables from Portman for request body value, response body value, response header value, fixed value

* Added jest snapshots

* Fixed invalid generated postman test for checkForResponse

* Path matching improvement to handle both OpenApi path as Postman path definitions

* Fixed an issue with the generated assignFromResponseHeader postman script + aligned messages

* Fixed assignVarFromRequestBody unit tests

* Added extended tests configuration option

* Removed skip501s in favour of using it through "extendTests" functionality

* Refactored append method to setTestScript method
Added setPreRequestScript method

* Refactored setPreRequestScript method to writeOperationPreRequestScript method
RefactoreRefactored setTestScript method to writeOperationTestScript method

* Json Schema validation - handled unwanted minItems & maxItems with a work-around

* wip merge rest of portman config

* add writeCollectionPreRequestScripts

* replaceVariables -> overwriteKeyValues

* bad rebase

* move remaining portman methods and restructure directories

* rough update of examples

* one config down

* move oas and postman into lib

* cleaning house

* move and rename TestSuiteService

* add collection writer

* simplify overwriteCollectionValues unit

* adds testSuite units

* extend units

Co-authored-by: Tim <>
Co-authored-by: nick_lloyd <[email protected]>

* update TS

* painful lesson in commonjs

* extreme wip

* orderCollectionRequests skipped for now

* return if no collectionVariables

* Added fix for unwanted minItems in the JSON schema validation

* Updated assign-variables example

* Updated response-test example

* Refactored assignPmVariables to assignVariables

* clear events on clone

* Small correction of the generated jsonBody test (apideck-libraries#36)

* Refactored assignPmVariables to assignVariables (apideck-libraries#34)

* 1.0.0 alpha minItem fix (apideck-libraries#35)

* Added fix for unwanted minItems in the JSON schema validation

* Used safe nav

* ensure we clone responses, inject overwrites

* update fixture

* adds assignCollectionVariables to variations

* adds extendTests

* fix writeCollectionPreRequestScripts

* fix writeCollectionPreRequestScripts

* 1.0.0 alpha readme (apideck-libraries#33)

* WIP - updated readme
1) introductie + list features
2) cli configuration
3) Portman settings briefly explained with references to the examples (if available)

* Added documentation on how to get a Postman API key
Added the Portman configuration options for assignPmVariables / overwrites

* Refactored assignPmVariables to assignVariables

* Updated portman-config.example.json

* Added all test properties to the readme

* Added the globals section (WIP)

* Updated the portman-config.example.json

* Updated the portman-config.example.json

* Referenced the images absolute

* Updated the portman-config.example & readme.

* Updated the portman-config.example & readme.

* Updated the install procedures

* Added links to the examples

* Typo corrections

* Added new intro

* Typo corrections

* Typo corrections

* Typo corrections

* Typo corrections

* Renamed responseBodyTest to responseBodyTests

* Added portman-globals example

* Added portman-globals pre-request example

* Added portman-globals pre-request example

* test for status code (apideck-libraries#39)

* extend testSuite units add units for variation write

* Refactored responseTest to contractTest (apideck-libraries#45)

* Refactored responseTest to contractTest

* Added default portman-config & postman-config to facilitate getting started (apideck-libraries#40)

* Improved raw Postman body handling to support variation testing + unit tests

* Added missing } to the console log output

* Fixed omitByPath to support to remove a item from an array, instead of returning "null"

* Unit tests for omitByPath

* 1.0.0 docs (apideck-libraries#46)

* Documentation writing

* Updated readme

* Updated cli-options example

* Updated globals example

* Updated assign variables example

* Updated assign variables example

* Updated content tests example

* Updated examples

* Updated examples

* Updated examples

* Updated examples

* Updated examples

* Updated examples

* Updated readme

* README suggestions (apideck-libraries#47)

* Updated examples

Co-authored-by: Gertjan De Wilde <[email protected]>

* 1.0.0 exclude for operations (apideck-libraries#48)

* Added "excludeForOperations" for contract tests

* Added "excludeForOperations" for content tests

* Added "excludeForOperations" for extended tests

* id is optional as we might not have it from spec

Co-authored-by: nick_lloyd <[email protected]>

* Moved extendedTests in from the "root" level to the "tests" level (apideck-libraries#49)

* Moved extendedTests in from the "root" level to the "tests" level

* Moved extendedTests in from the "root" level to the "tests" level

* Moved extendedTests in from the "root" level to the "tests" level

* 1.0.0 exclude for operations (apideck-libraries#48)

* Added "excludeForOperations" for contract tests

* Added "excludeForOperations" for content tests

* Added "excludeForOperations" for extended tests

* id is optional as we might not have it from spec

Co-authored-by: nick_lloyd <[email protected]>

* make extendTests prop on testsuite

* 1.0.0 exclude for operations (apideck-libraries#48)

* Added "excludeForOperations" for contract tests

* Added "excludeForOperations" for content tests

* Added "excludeForOperations" for extended tests

* id is optional as we might not have it from spec

Co-authored-by: nick_lloyd <[email protected]>

* Moved extendedTests in from the "root" level to the "tests" level

* Moved extendedTests in from the "root" level to the "tests" level

* update extendTests in variations

* update snaps

* bad merge

Co-authored-by: nick_lloyd <[email protected]>

* 1.0.0 portman init prompt (apideck-libraries#51)

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* Added the option to trigger an init command to help with the setup of Portman

* use type for default config

* Added the option to trigger an init command to help with the setup of Portman

* always use titlecase on types

* Added the option to trigger an init command to help with the setup of Portman

* tweak credits in readme

* bad merge

* tweak prompts

* tweak prompts

* Portman branding :p

* Readme tweaks

* prompt tweaks

* Removal unwanted commit files

* Readme tweaks

* rename responseBodyTests to contentTests in readme

Co-authored-by: nick_lloyd <[email protected]>

* extend TestSuite to be callable from variation writer

* remove unused args

* remove more unused args

* cleanup operation query for contract tests

* extend contract tests to allow for redirects

* fix exclusion

* 1.0.0 tweaks (apideck-libraries#52)

Updated readme & Updated examples

* allow either format when path matching

* adds missing overwriteCollectionKeyValues test

* remove console.log

Co-authored-by: Tim <>
Co-authored-by: thim81 <[email protected]>
Co-authored-by: Gertjan De Wilde <[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.

None yet

3 participants