Fix lint issues
Signed-off-by: guillaume <guillaume.derouville@gmail.com>
This commit is contained in:
parent
40f132b77b
commit
8f6b3e95a8
@ -16,10 +16,10 @@ _No input._
|
|||||||
|
|
||||||
### http.#Delete Outputs
|
### http.#Delete Outputs
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
| ------------- |:-------------: |:-------------: |
|
| ------------- |:-------------: |:-------------: |
|
||||||
|*response.body* | `string` |- |
|
|*statusCode* | `string` |- |
|
||||||
|*response.statusCode* | `_\|_` |- |
|
|*body* | `string` |- |
|
||||||
|
|
||||||
## http.#Do
|
## http.#Do
|
||||||
|
|
||||||
@ -29,10 +29,10 @@ _No input._
|
|||||||
|
|
||||||
### http.#Do Outputs
|
### http.#Do Outputs
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
| ------------- |:-------------: |:-------------: |
|
| ------------- |:-------------: |:-------------: |
|
||||||
|*response.body* | `string` |- |
|
|*statusCode* | `string` |- |
|
||||||
|*response.statusCode* | `_\|_` |- |
|
|*body* | `string` |- |
|
||||||
|
|
||||||
## http.#Get
|
## http.#Get
|
||||||
|
|
||||||
@ -42,10 +42,10 @@ _No input._
|
|||||||
|
|
||||||
### http.#Get Outputs
|
### http.#Get Outputs
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
| ------------- |:-------------: |:-------------: |
|
| ------------- |:-------------: |:-------------: |
|
||||||
|*response.body* | `string` |- |
|
|*statusCode* | `string` |- |
|
||||||
|*response.statusCode* | `_\|_` |- |
|
|*body* | `string` |- |
|
||||||
|
|
||||||
## http.#Post
|
## http.#Post
|
||||||
|
|
||||||
@ -55,10 +55,10 @@ _No input._
|
|||||||
|
|
||||||
### http.#Post Outputs
|
### http.#Post Outputs
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
| ------------- |:-------------: |:-------------: |
|
| ------------- |:-------------: |:-------------: |
|
||||||
|*response.body* | `string` |- |
|
|*statusCode* | `string` |- |
|
||||||
|*response.statusCode* | `_\|_` |- |
|
|*body* | `string` |- |
|
||||||
|
|
||||||
## http.#Put
|
## http.#Put
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ _No input._
|
|||||||
|
|
||||||
### http.#Put Outputs
|
### http.#Put Outputs
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
| ------------- |:-------------: |:-------------: |
|
| ------------- |:-------------: |:-------------: |
|
||||||
|*response.body* | `string` |- |
|
|*statusCode* | `string` |- |
|
||||||
|*response.statusCode* | `_\|_` |- |
|
|*body* | `string` |- |
|
||||||
|
@ -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)
|
||||||
@ -77,11 +76,11 @@ import (
|
|||||||
from: ctr
|
from: ctr
|
||||||
path: "/response"
|
path: "/response"
|
||||||
}
|
}
|
||||||
}.contents @dagger(output)
|
}.contents @dagger(output)
|
||||||
|
|
||||||
// Force os.#File exec before Atoi
|
// Force os.#File exec before Atoi
|
||||||
response: {
|
response: {
|
||||||
"body": body
|
"body": body
|
||||||
"statusCode": strconv.Atoi(statusCode)
|
"statusCode": strconv.Atoi(statusCode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,29 +8,25 @@ 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 & {
|
||||||
image: alpine.#Image & {
|
image: alpine.#Image & {
|
||||||
package: jq: "~=1.6"
|
package: jq: "~=1.6"
|
||||||
package: bash: true
|
package: bash: true
|
||||||
}
|
}
|
||||||
env: STATUS: "\(req.response.statusCode)"
|
env: STATUS: "\(req.response.statusCode)"
|
||||||
files: "/content.json": {
|
files: "/content.json": {
|
||||||
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#Command: #"""
|
#Command: #"""
|
||||||
test "$(cat /content.json | jq -r .current_user_url)" = 'https://api.github.com/user'
|
test "$(cat /content.json | jq -r .current_user_url)" = 'https://api.github.com/user'
|
||||||
test "$STATUS" = "200"
|
test "$STATUS" = "200"
|
||||||
"""#
|
"""#
|
||||||
|
@ -24,7 +24,7 @@ setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@test "http" {
|
@test "http" {
|
||||||
dagger -e http up
|
dagger -e http up
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "js/yarn" {
|
@test "js/yarn" {
|
||||||
|
Reference in New Issue
Block a user