This commit is contained in:
41
tests/v1.0/karate.yaml.test.feature
Normal file
41
tests/v1.0/karate.yaml.test.feature
Normal file
@@ -0,0 +1,41 @@
|
||||
|
||||
Feature: Basic
|
||||
|
||||
# The secrects can be used in the payload with the following syntax #(mysecretname)
|
||||
Background:
|
||||
* def export-xlsxSecret = karate.properties['export-xlsxSecret']
|
||||
|
||||
|
||||
Scenario: get request
|
||||
|
||||
Given url karate.properties['testURL']
|
||||
|
||||
And path '/'
|
||||
And header Direktiv-ActionID = 'development'
|
||||
And header Direktiv-TempDir = '/tmp'
|
||||
And request
|
||||
"""
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "ls -la",
|
||||
"silent": true,
|
||||
"print": false,
|
||||
}
|
||||
]
|
||||
}
|
||||
"""
|
||||
When method POST
|
||||
Then status 200
|
||||
And match $ ==
|
||||
"""
|
||||
{
|
||||
"export-xlsx": [
|
||||
{
|
||||
"result": "#notnull",
|
||||
"success": true
|
||||
}
|
||||
]
|
||||
}
|
||||
"""
|
||||
|
Reference in New Issue
Block a user