diff options
author | Christian Segundo | 2024-04-07 10:45:05 +0200 |
---|---|---|
committer | Christian Segundo | 2024-04-07 18:19:48 +0200 |
commit | 8206fecdb86f05d353ef25c9596cebca5c1d28fb (patch) | |
tree | 169f50213c94e8a558bf1c235871c764045f4338 /tests | |
parent | 3891426ce8deba513c5bcf1594987bdcfc837304 (diff) | |
download | jenkins-agent-docker-cli-8206fecdb86f05d353ef25c9596cebca5c1d28fb.tar.gz |
install buildx
Diffstat (limited to 'tests')
-rw-r--r-- | tests/command.yaml | 20 | ||||
-rw-r--r-- | tests/package.yaml | 8 | ||||
-rw-r--r-- | tests/user.yaml | 8 |
3 files changed, 36 insertions, 0 deletions
diff --git a/tests/command.yaml b/tests/command.yaml new file mode 100644 index 0000000..5356c90 --- /dev/null +++ b/tests/command.yaml @@ -0,0 +1,20 @@ +--- +command: + 'curl --version': + exit-status: 0 + stderr: [] + stdout: + - curl + + 'docker version': + # It's ok, the error is because there's no docker.sock mounted during tests + exit-status: 1 + stderr: [] + stdout: + - Docker + + 'docker buildx version': + exit-status: 0 + stderr: [] + stdout: + - buildx diff --git a/tests/package.yaml b/tests/package.yaml new file mode 100644 index 0000000..5ca2369 --- /dev/null +++ b/tests/package.yaml @@ -0,0 +1,8 @@ +--- +package: + curl: + installed: true + docker-ce-cli: + installed: true + docker-buildx-plugin: + installed: true diff --git a/tests/user.yaml b/tests/user.yaml new file mode 100644 index 0000000..4027cea --- /dev/null +++ b/tests/user.yaml @@ -0,0 +1,8 @@ +--- +user: + jenkins: + exists: true + groups: + - jenkins + home: /home/jenkins + shell: /bin/sh |