Fix lint issues

Signed-off-by: guillaume <guillaume.derouville@gmail.com>
This commit is contained in:
guillaume 2021-10-28 17:20:25 +02:00
parent 40f132b77b
commit 8f6b3e95a8
4 changed files with 31 additions and 36 deletions

View File

@ -18,8 +18,8 @@ _No input._
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*response.body* | `string` |- | |*statusCode* | `string` |- |
|*response.statusCode* | `_\|_` |- | |*body* | `string` |- |
## http.#Do ## http.#Do
@ -31,8 +31,8 @@ _No input._
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*response.body* | `string` |- | |*statusCode* | `string` |- |
|*response.statusCode* | `_\|_` |- | |*body* | `string` |- |
## http.#Get ## http.#Get
@ -44,8 +44,8 @@ _No input._
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*response.body* | `string` |- | |*statusCode* | `string` |- |
|*response.statusCode* | `_\|_` |- | |*body* | `string` |- |
## http.#Post ## http.#Post
@ -57,8 +57,8 @@ _No input._
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*response.body* | `string` |- | |*statusCode* | `string` |- |
|*response.statusCode* | `_\|_` |- | |*body* | `string` |- |
## http.#Put ## http.#Put
@ -70,5 +70,5 @@ _No input._
| Name | Type | Description | | Name | Type | Description |
| ------------- |:-------------: |:-------------: | | ------------- |:-------------: |:-------------: |
|*response.body* | `string` |- | |*statusCode* | `string` |- |
|*response.statusCode* | `_\|_` |- | |*body* | `string` |- |

View File

@ -32,7 +32,6 @@ import (
shell: path: "/bin/bash" shell: path: "/bin/bash"
always: true always: true
env: { env: {
METHOD: method METHOD: method
HEADERS: json.Marshal(request.header) HEADERS: json.Marshal(request.header)

View File

@ -8,9 +8,7 @@ import (
TestRequest: { TestRequest: {
req: #Get & { req: #Get & {
url: "https://api.github.com/" url: "https://api.github.com/"
request: header: { request: header: Accept: "application/json"
Accept: "application/json"
}
} }
testRaw: os.#Container & { testRaw: os.#Container & {
@ -23,9 +21,7 @@ TestRequest: {
content: req.response.body content: req.response.body
mode: 0o500 mode: 0o500
} }
shell: { shell: args: ["--noprofile", "--norc", "-eo", "pipefail", "-c"]
args: ["--noprofile", "--norc", "-eo", "pipefail", "-c"]
}
command: #Command command: #Command
} }
} }