From 760143372989de018a967bb3d13169988c0f4d44 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Tue, 14 Dec 2021 14:30:32 -0700 Subject: [PATCH] cue fmt Signed-off-by: Richard Jones --- .../context/services/incomplete_service.cue | 28 +++++++++---------- .../plan/context/services/incomplete_unix.cue | 28 +++++++++---------- .../plan/context/services/invalid_schema.cue | 28 +++++++++---------- tests/plan/context/services/invalid_value.cue | 28 +++++++++---------- tests/plan/context/services/unix.cue | 28 +++++++++---------- 5 files changed, 65 insertions(+), 75 deletions(-) diff --git a/tests/plan/context/services/incomplete_service.cue b/tests/plan/context/services/incomplete_service.cue index d21d9b69..44bb7507 100644 --- a/tests/plan/context/services/incomplete_service.cue +++ b/tests/plan/context/services/incomplete_service.cue @@ -7,22 +7,20 @@ import ( ) engine.#Plan & { - // should fail + // should fail context: services: dockerSocket: {} - actions: { - test: #up: [ - op.#Load & { - from: alpine.#Image & { - package: "docker-cli": true - } - }, + actions: test: #up: [ + op.#Load & { + from: alpine.#Image & { + package: "docker-cli": true + } + }, - op.#Exec & { - always: true - mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service - args: ["docker", "info"] - } - ] - } + op.#Exec & { + always: true + mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service + args: ["docker", "info"] + }, + ] } diff --git a/tests/plan/context/services/incomplete_unix.cue b/tests/plan/context/services/incomplete_unix.cue index 02a6befa..3481f714 100644 --- a/tests/plan/context/services/incomplete_unix.cue +++ b/tests/plan/context/services/incomplete_unix.cue @@ -7,22 +7,20 @@ import ( ) engine.#Plan & { - // should succeed + // should succeed context: services: dockerSocket: unix: string - actions: { - test: #up: [ - op.#Load & { - from: alpine.#Image & { - package: "docker-cli": true - } - }, + actions: test: #up: [ + op.#Load & { + from: alpine.#Image & { + package: "docker-cli": true + } + }, - op.#Exec & { - always: true - mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service - args: ["docker", "info"] - } - ] - } + op.#Exec & { + always: true + mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service + args: ["docker", "info"] + }, + ] } diff --git a/tests/plan/context/services/invalid_schema.cue b/tests/plan/context/services/invalid_schema.cue index 3e9ce40a..1df44e38 100644 --- a/tests/plan/context/services/invalid_schema.cue +++ b/tests/plan/context/services/invalid_schema.cue @@ -7,22 +7,20 @@ import ( ) engine.#Plan & { - // should fail because of misspelled key + // should fail because of misspelled key context: services: dockerSocket: unx: "/var/run/docker.soc" - actions: { - test: #up: [ - op.#Load & { - from: alpine.#Image & { - package: "docker-cli": true - } - }, + actions: test: #up: [ + op.#Load & { + from: alpine.#Image & { + package: "docker-cli": true + } + }, - op.#Exec & { - always: true - mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service - args: ["docker", "info"] - } - ] - } + op.#Exec & { + always: true + mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service + args: ["docker", "info"] + }, + ] } diff --git a/tests/plan/context/services/invalid_value.cue b/tests/plan/context/services/invalid_value.cue index a3479c1c..b255408d 100644 --- a/tests/plan/context/services/invalid_value.cue +++ b/tests/plan/context/services/invalid_value.cue @@ -7,22 +7,20 @@ import ( ) engine.#Plan & { - // should fail because of misspelled value + // should fail because of misspelled value context: services: dockerSocket: unix: "/var/run/docker.soc" - actions: { - test: #up: [ - op.#Load & { - from: alpine.#Image & { - package: "docker-cli": true - } - }, + actions: test: #up: [ + op.#Load & { + from: alpine.#Image & { + package: "docker-cli": true + } + }, - op.#Exec & { - always: true - mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service - args: ["docker", "info"] - } - ] - } + op.#Exec & { + always: true + mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service + args: ["docker", "info"] + }, + ] } diff --git a/tests/plan/context/services/unix.cue b/tests/plan/context/services/unix.cue index b333536c..f6283ee3 100644 --- a/tests/plan/context/services/unix.cue +++ b/tests/plan/context/services/unix.cue @@ -7,22 +7,20 @@ import ( ) engine.#Plan & { - // should succeed + // should succeed context: services: dockerSocket: unix: "/var/run/docker.sock" - actions: { - test: #up: [ - op.#Load & { - from: alpine.#Image & { - package: "docker-cli": true - } - }, + actions: test: #up: [ + op.#Load & { + from: alpine.#Image & { + package: "docker-cli": true + } + }, - op.#Exec & { - always: true - mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service - args: ["docker", "info"] - } - ] - } + op.#Exec & { + always: true + mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service + args: ["docker", "info"] + }, + ] }