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

@@ -8,29 +8,25 @@ import (
TestRequest: {
req: #Get & {
url: "https://api.github.com/"
request: header: {
Accept: "application/json"
}
request: header: Accept: "application/json"
}
testRaw: os.#Container & {
image: alpine.#Image & {
package: jq: "~=1.6"
package: bash: true
package: jq: "~=1.6"
package: bash: true
}
env: STATUS: "\(req.response.statusCode)"
files: "/content.json": {
content: req.response.body
mode: 0o500
}
shell: {
args: ["--noprofile", "--norc", "-eo", "pipefail", "-c"]
}
shell: args: ["--noprofile", "--norc", "-eo", "pipefail", "-c"]
command: #Command
}
}
#Command: #"""
test "$(cat /content.json | jq -r .current_user_url)" = 'https://api.github.com/user'
test "$STATUS" = "200"
"""#
test "$(cat /content.json | jq -r .current_user_url)" = 'https://api.github.com/user'
test "$STATUS" = "200"
"""#