Add docker.#Command tests

Tests :
- docker version with ssh
- docker version with ssh and key passphrase
- docker version with ass and wrong key passphrase

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2021-06-11 09:53:14 +02:00
parent e540bd2716
commit 8a2fc9aa72
11 changed files with 190 additions and 5 deletions

View File

@@ -41,20 +41,26 @@ import (
// Mount content from other artifacts
mount: {
[string]: {
from: dagger.#Artifact
from: dagger.#Artifact
} | {
secret: dagger.#Secret
} @dagger(input)
}
// Mount persistent cache directories
cache: [string]: true @dagger(input)
cache: {
[string]: true @dagger(input)
}
// Mount temporary directories
tmpfs: [string]: true @dagger(input)
tmpfs: {
[string]: true @dagger(input)
}
// Additional packages to install
package: [string]: true | false | string @dagger(input)
package: {
[string]: true | false | string @dagger(input)
}
// Setup docker client and then execute the user command
#code: #"""
@@ -175,4 +181,4 @@ import (
}
},
]
}
}