This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kusk generate ambassador -i <path to openapi definition> --service.name=petstore --service.port=8001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x-kusk: | |
cors: | |
origins: | |
- http://foo.example | |
methods: | |
- POST | |
- GET | |
- OPTIONS | |
path: | |
base: /petstore/api/v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.eviware.soapui.support.UISupport | |
project = workspace.createProject( "My Project", null ) | |
testSuite = project.addNewTestSuite( "TestSuite" ) | |
testCase = testSuite.addNewTestCase( "TestCase" ) | |
testCase.addTestStep( "httprequest", "HTTP Request" ) | |
UISupport.showDesktopPanel( testCase ) | |
testRunner = testCase.run( null, false ) | |
UISupport.showInfoMessage( "TestCase finished with status $testRunner.status" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add this in a custom RequestFilter.filterRequest handler | |
context.httpMethod.addHeader( "Some Header", "Some Value" ) |