Merge pull request #602 from shykes/universe-devenv
Move universe tests to universe dir
This commit is contained in:
commit
91eed48dd1
9
Makefile
9
Makefile
@ -40,12 +40,19 @@ check-buildkit-version:
|
|||||||
|| { echo buildkit version mismatch go.mod != util/buildkitd/buildkitd.go ; exit 1; }
|
|| { echo buildkit version mismatch go.mod != util/buildkitd/buildkitd.go ; exit 1; }
|
||||||
|
|
||||||
.PHONY: integration
|
.PHONY: integration
|
||||||
integration: dagger-debug
|
integration: dagger-debug universe-test
|
||||||
$(shell command -v sops > /dev/null || { echo "You need sops. On macOS: brew install sops"; exit 1; })
|
$(shell command -v sops > /dev/null || { echo "You need sops. On macOS: brew install sops"; exit 1; })
|
||||||
$(shell command -v parallel > /dev/null || { echo "You need gnu parallel. On macOS: brew install parallel"; exit 1; })
|
$(shell command -v parallel > /dev/null || { echo "You need gnu parallel. On macOS: brew install parallel"; exit 1; })
|
||||||
yarn --cwd "./tests" install
|
yarn --cwd "./tests" install
|
||||||
DAGGER_BINARY="../cmd/dagger/dagger-debug" yarn --cwd "./tests" test
|
DAGGER_BINARY="../cmd/dagger/dagger-debug" yarn --cwd "./tests" test
|
||||||
|
|
||||||
|
.PHONY: universe-test
|
||||||
|
universe-test: dagger-debug
|
||||||
|
$(shell command -v sops > /dev/null || { echo "You need sops. On macOS: brew install sops"; exit 1; })
|
||||||
|
$(shell command -v parallel > /dev/null || { echo "You need gnu parallel. On macOS: brew install parallel"; exit 1; })
|
||||||
|
yarn --cwd "./universe" install
|
||||||
|
DAGGER_BINARY="../cmd/dagger/dagger-debug" yarn --cwd "./universe" test
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: dagger
|
install: dagger
|
||||||
go install ./cmd/dagger
|
go install ./cmd/dagger
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name: default
|
name: aws-ecr
|
||||||
inputs:
|
inputs:
|
||||||
TestConfig.awsConfig.accessKey:
|
TestConfig.awsConfig.accessKey:
|
||||||
secret: ENC[AES256_GCM,data:iu6LfQNgGZUVnHVeMRYPrcBtlZk=,iv:U5PLxDKXwJnUDdk1ayFGvvJfWdVqh1PK5ujb20YYPP0=,tag:QyqIJRiR6nE16ZDV0CP7Pw==,type:str]
|
secret: ENC[AES256_GCM,data:iu6LfQNgGZUVnHVeMRYPrcBtlZk=,iv:U5PLxDKXwJnUDdk1ayFGvvJfWdVqh1PK5ujb20YYPP0=,tag:QyqIJRiR6nE16ZDV0CP7Pw==,type:str]
|
||||||
@ -19,8 +19,8 @@ sops:
|
|||||||
aXlvVWJVSGNTSkVyYmpZbi9nUVJZdmMK6csXZ2RMxFw5DB+Hb2TyhyoZT8c2/z7Y
|
aXlvVWJVSGNTSkVyYmpZbi9nUVJZdmMK6csXZ2RMxFw5DB+Hb2TyhyoZT8c2/z7Y
|
||||||
Lc9Pe8gb8aUq5Ha+wCybYvY6JWEM5A9XYJKbE7f4borTfGKS72d6pw==
|
Lc9Pe8gb8aUq5Ha+wCybYvY6JWEM5A9XYJKbE7f4borTfGKS72d6pw==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2021-05-27T00:53:54Z"
|
lastmodified: "2021-06-09T18:52:22Z"
|
||||||
mac: ENC[AES256_GCM,data:ho/e/xUzRdwwe3VRCz9p8UNHgxdhAxkNtWUJLS5fEXBGnw28hjwNBbPYN78bX0k9SQ/5bgvXT2O/Z+zmOSWfrCYD2eojh9mDR4aCV5m/liVh5Dxha65u6zPl9VVcSunYg3wqe9Zl+pMG8BJXvczQS7S5QEGEaWojfaA/o7HM1BE=,iv:o/cVw6GBCCdgIqIZGDzqSCiBHUmrhAoIRcyGS9P83j0=,tag:WSQO0C0lPH2vOzl07rmRGg==,type:str]
|
mac: ENC[AES256_GCM,data:p0lsZ+NEE5lvUef2uMIWlkoHOx+ur6YKwPdR8vI5vrjp+zRRGPQXfeOtfbScmMvOJj6OM1v1Gitlq+UVPWekOiuPaIoG1lWdNCZoq8+5Jf9sCFFUK0Fl8C2dAUIp6/84odwHhMB/jWR58rsqdvM4VilFMM6xnSENvXZn7fxzOng=,iv:jP2OXQYAYmb+rOpclUPpPX3phwSmpNJF3x1xDZdZOCI=,tag:/ZMA7kCCF9cRPSsh8u8iqw==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
encrypted_suffix: secret
|
encrypted_suffix: secret
|
||||||
version: 3.7.1
|
version: 3.7.1
|
@ -1,4 +1,4 @@
|
|||||||
name: default
|
name: aws-s3
|
||||||
inputs:
|
inputs:
|
||||||
TestConfig.awsConfig.accessKey:
|
TestConfig.awsConfig.accessKey:
|
||||||
secret: ENC[AES256_GCM,data:iu6LfQNgGZUVnHVeMRYPrcBtlZk=,iv:U5PLxDKXwJnUDdk1ayFGvvJfWdVqh1PK5ujb20YYPP0=,tag:QyqIJRiR6nE16ZDV0CP7Pw==,type:str]
|
secret: ENC[AES256_GCM,data:iu6LfQNgGZUVnHVeMRYPrcBtlZk=,iv:U5PLxDKXwJnUDdk1ayFGvvJfWdVqh1PK5ujb20YYPP0=,tag:QyqIJRiR6nE16ZDV0CP7Pw==,type:str]
|
||||||
@ -6,8 +6,7 @@ inputs:
|
|||||||
secret: ENC[AES256_GCM,data:Q/W+KH3NEouGt6C5S+KiC43837soYi2Mjb/z5K8rD9gtaNaBjjkJHg==,iv:8nGEzLXd91rF5YBZ/EdQoMN27yrpc0sgm26DEvIuSHM=,tag:/oyKl/vj5MJAm+jZMOOAuQ==,type:str]
|
secret: ENC[AES256_GCM,data:Q/W+KH3NEouGt6C5S+KiC43837soYi2Mjb/z5K8rD9gtaNaBjjkJHg==,iv:8nGEzLXd91rF5YBZ/EdQoMN27yrpc0sgm26DEvIuSHM=,tag:/oyKl/vj5MJAm+jZMOOAuQ==,type:str]
|
||||||
TestDirectory:
|
TestDirectory:
|
||||||
dir:
|
dir:
|
||||||
path: ./testdata
|
path: ./aws/s3/testdata
|
||||||
include: []
|
|
||||||
sops:
|
sops:
|
||||||
kms: []
|
kms: []
|
||||||
gcp_kms: []
|
gcp_kms: []
|
||||||
@ -23,8 +22,8 @@ sops:
|
|||||||
aXlvVWJVSGNTSkVyYmpZbi9nUVJZdmMK6csXZ2RMxFw5DB+Hb2TyhyoZT8c2/z7Y
|
aXlvVWJVSGNTSkVyYmpZbi9nUVJZdmMK6csXZ2RMxFw5DB+Hb2TyhyoZT8c2/z7Y
|
||||||
Lc9Pe8gb8aUq5Ha+wCybYvY6JWEM5A9XYJKbE7f4borTfGKS72d6pw==
|
Lc9Pe8gb8aUq5Ha+wCybYvY6JWEM5A9XYJKbE7f4borTfGKS72d6pw==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2021-05-27T00:13:13Z"
|
lastmodified: "2021-06-09T19:30:57Z"
|
||||||
mac: ENC[AES256_GCM,data:uqGhc0e6mQp5kdKvJTFz+yjcc5WUtLBcsqkzh0NeJhP9nztpX1TJfqBeyGfd7pwltL6b9YXLdJx/myCMxvJ6O8bS726AxE4ogcRgUGP6d5Q5aXw9i7VkLgVKY+gJZCbT+r80RiMqm23x3CPAPNjEsPh5nfgdNsN5ltJmq7IUGj0=,iv:Mw56hEghRGw6tLP6rhe78yD/blqgX2roeQRDiJ6+kAI=,tag:qE2LtSZPxDhITtdnsvrYfA==,type:str]
|
mac: ENC[AES256_GCM,data:kIT54J5QImmFYIgQvj6kDkWLa+7kWNN5yhN+A+2qwofJsLdbIrPrihd59mi+RPlRgO0gzePEqEsGfoNpQBMvfXZDAPDiHAv0xKiGLnkQLX1N9PxoSNvORzqk3SAHJPlfVIbVAmGEp4Oy09I0Qi43xvvISsYXtlsiMp0Zm/QfYFY=,iv:l902awO6UvpJIPogIKeOfsMgGL2Ivp4KFQ/1jef/+kU=,tag:yP0oPIwfReNU4gCIeUTwaQ==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
encrypted_suffix: secret
|
encrypted_suffix: secret
|
||||||
version: 3.7.1
|
version: 3.7.1
|
15
stdlib/.dagger/env/docker-run-local/plan/local.cue
vendored
Normal file
15
stdlib/.dagger/env/docker-run-local/plan/local.cue
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"dagger.io/docker"
|
||||||
|
"dagger.io/random"
|
||||||
|
)
|
||||||
|
|
||||||
|
suffix: random.#String & {
|
||||||
|
seed: ""
|
||||||
|
}
|
||||||
|
|
||||||
|
run: docker.#Run & {
|
||||||
|
name: "daggerci-test-local-\(suffix.out)"
|
||||||
|
ref: "hello-world"
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
name: default
|
name: docker-run-local
|
||||||
sops:
|
sops:
|
||||||
kms: []
|
kms: []
|
||||||
gcp_kms: []
|
gcp_kms: []
|
||||||
@ -14,8 +14,8 @@ sops:
|
|||||||
cnh2eHU5TzFjVkNvTzUyczFBL0pwTDQK60+wrLmTaD3Ws5ZAXdqBkMjaVP7Iz69k
|
cnh2eHU5TzFjVkNvTzUyczFBL0pwTDQK60+wrLmTaD3Ws5ZAXdqBkMjaVP7Iz69k
|
||||||
UrkqkMbaUlvvSKK7dB5MuTGEEN6A1viAGal9ZjDHlSobkNPuE24QEA==
|
UrkqkMbaUlvvSKK7dB5MuTGEEN6A1viAGal9ZjDHlSobkNPuE24QEA==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2021-06-04T23:50:06Z"
|
lastmodified: "2021-06-09T19:32:39Z"
|
||||||
mac: ENC[AES256_GCM,data:GTsG9ekL5O04qwUSBb4hqRgQIiXL7keLXLt0gWpwLe0KUTu/JojAt0ALTiU8m5QWGy2q/avKIql8xR3SWWuBahOsKeObFbnx6PbVpU5QvZZKA8c72m2C+fDE82eKT3qZoTbwBEY3A/7v9BsFSCgkg3Hb91zVnBlXjiD949YAgP4=,iv:sYDEUDjyYJCoJFRP7EG19PTZgPaGa98gASs2B4fMAtE=,tag:CL5hhRG16EvuLwhPq5bdKQ==,type:str]
|
mac: ENC[AES256_GCM,data:Sm+KP6fL5SVpYxQ03978TAnMI4yqNHQomt2uQA23q+3YN+K7okVS7CM+By/K8Xn2Z3y26A4hFnRvMJTV/qpGQ4hz9+qWU5AOuQvJqtNvRgkf6yfFhF6nWS3vNIHbKdHHD8cBXWGvU+A/j/3YsjJL2GlLd1Tcee9WbmKKBKEDSpg=,iv:0pmOoiyZybpS4kdmjQaTueU5wrMMuDh1qMQrcI4yeXI=,tag:p3y0cMY0h1b/p35snTZ6rg==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
encrypted_suffix: secret
|
encrypted_suffix: secret
|
||||||
version: 3.7.1
|
version: 3.7.1
|
@ -1,4 +1,4 @@
|
|||||||
name: default
|
name: docker-run-ssh-passphrase
|
||||||
inputs:
|
inputs:
|
||||||
TestConfig.host:
|
TestConfig.host:
|
||||||
text: 143.198.64.230
|
text: 143.198.64.230
|
||||||
@ -23,8 +23,8 @@ sops:
|
|||||||
ZXAwa1h2aEhGRGpwVTJzKy9EZGhQb0kKSYnRAiRh7b2LViajHk46ct94PVLHDajC
|
ZXAwa1h2aEhGRGpwVTJzKy9EZGhQb0kKSYnRAiRh7b2LViajHk46ct94PVLHDajC
|
||||||
oaUPwzy4bIMI9UXGobkstC5ObmY3ba+jcPRy6c9moniL+iigZ8YglA==
|
oaUPwzy4bIMI9UXGobkstC5ObmY3ba+jcPRy6c9moniL+iigZ8YglA==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2021-06-07T21:46:15Z"
|
lastmodified: "2021-06-09T20:14:54Z"
|
||||||
mac: ENC[AES256_GCM,data:d+ZtEtXXoemDIuKPR1cVKjLHi4iKyfVz3hwwbvsCiAEqcbjVk19KMZIaxIM+LOL3Jm4O4Ud7Q+JKSLm1FBmUqrb+Q+hiYw67TPGZ7oS0nwUlJ5+JK/PMxWaYGCs4AdJ7wQjHguXX9Nx7td7oH4T47j+UpEKZluLrt8gZNwi8Qyo=,iv:qaTD/Q+cA+dVSsBcClkbWeNJo/3d+OumwKMLxFyQJAw=,tag:dcZ9RE+JUh04N8gMPdK3ZQ==,type:str]
|
mac: ENC[AES256_GCM,data:ujrtYlsNtf58NNFjixESyUaqG4sM0Li6LjCCc16xhRMtepo7pdc85f8zqAU2II97EXW/DG0Cf9SKOejbRw7u+ZwtlssjFN//1BmbZzKTYE78KUNDfZjRAr1KQHjabug8iGpjmBpRs3UZ3gozQPoHPjRw7CZDzr+tV3mQ3N0qhUA=,iv:lJHb4UYnEc2T9jR24dRnCJ9/nmT5OY8jhrsc9LkhyNg=,tag:7F65O5IovHEaaFfomcS/6g==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
encrypted_suffix: secret
|
encrypted_suffix: secret
|
||||||
version: 3.7.1
|
version: 3.7.1
|
@ -1,4 +1,4 @@
|
|||||||
name: default
|
name: docker-run-ssh-wrong-passphrase
|
||||||
inputs:
|
inputs:
|
||||||
TestConfig,passphrase:
|
TestConfig,passphrase:
|
||||||
secret: ENC[AES256_GCM,data:HdlbbaOogb6G,iv:Q0D3w/bEtijvaEK2ac9zmj817x7xZM2OspTmPDVBJDg=,tag:i0iGhuqMng2spumFWve18Q==,type:str]
|
secret: ENC[AES256_GCM,data:HdlbbaOogb6G,iv:Q0D3w/bEtijvaEK2ac9zmj817x7xZM2OspTmPDVBJDg=,tag:i0iGhuqMng2spumFWve18Q==,type:str]
|
||||||
@ -23,8 +23,8 @@ sops:
|
|||||||
cm02K1NEenRnL25zc3RtaXd6SlA0UXcKFq38uYqZWvSlTOaisnhnQ+Mhbcv+ZifE
|
cm02K1NEenRnL25zc3RtaXd6SlA0UXcKFq38uYqZWvSlTOaisnhnQ+Mhbcv+ZifE
|
||||||
Mdxhq5w+Cdj+XhwbZ8UnnRInckD3UKovxAHV3kTSdXf54/QKn5TLVw==
|
Mdxhq5w+Cdj+XhwbZ8UnnRInckD3UKovxAHV3kTSdXf54/QKn5TLVw==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2021-06-07T21:46:27Z"
|
lastmodified: "2021-06-09T20:15:05Z"
|
||||||
mac: ENC[AES256_GCM,data:ok+QLvbyYtznT2dqUdMQDq1mSsLA5UdMfo04lZRFcn5NYnqUejwP5VZBA7aqR9QRbWg9h5S6VfSHskBEJklcQ2pKdi1Rd8nGWnmqULfnfB6riJ+oAdKo//+nwOIMEN/cyufjoi1Ptr21mXopnwsTOFlkgLYYYrDcIlvKlMxPrY8=,iv:YdN2OZbE/oMavwQlJig6mzZwGrKLMS/eJjFb743E1nM=,tag:dg4iA5azDhYeVNCCpK2Rsw==,type:str]
|
mac: ENC[AES256_GCM,data:+TLvTAkn2gMOxpcKhH0lvTBau/0xdgg/H9++2x0faYOA4CTLB6SzvUUvTGhrN0Z7Vut7suYPdOR4xHypfggJ6aiCmZ9PeXTwoO6F8ycAQ7TPFdBafHO61OV1fRb87X79hRU8SaKPIWrDF786lcHDGcMYkcoqyWsXDYloAEpL2t0=,iv:KYNpHruxv+l5LUqeYjXhF6cmblj70WSHlCZzlIRn7lo=,tag:ASxWqdkYtU9AyQ4aGyzL2w==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
encrypted_suffix: secret
|
encrypted_suffix: secret
|
||||||
version: 3.7.1
|
version: 3.7.1
|
@ -1,4 +1,4 @@
|
|||||||
name: default
|
name: docker-run-ssh
|
||||||
inputs:
|
inputs:
|
||||||
TestConfig.host:
|
TestConfig.host:
|
||||||
text: 143.198.64.230
|
text: 143.198.64.230
|
||||||
@ -21,8 +21,8 @@ sops:
|
|||||||
cnh2eHU5TzFjVkNvTzUyczFBL0pwTDQK60+wrLmTaD3Ws5ZAXdqBkMjaVP7Iz69k
|
cnh2eHU5TzFjVkNvTzUyczFBL0pwTDQK60+wrLmTaD3Ws5ZAXdqBkMjaVP7Iz69k
|
||||||
UrkqkMbaUlvvSKK7dB5MuTGEEN6A1viAGal9ZjDHlSobkNPuE24QEA==
|
UrkqkMbaUlvvSKK7dB5MuTGEEN6A1viAGal9ZjDHlSobkNPuE24QEA==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2021-06-07T21:46:00Z"
|
lastmodified: "2021-06-09T18:51:57Z"
|
||||||
mac: ENC[AES256_GCM,data:hmw4ffQL+8lcDdevuJFy0lWD4ItISg2XxFCxNqaYhEOBneEkWQLJmrzX35yp3PoMvgDGLCFNFWamKEgU7WkXe9v4h19UmtOBJLRvj2USDguRBNUBMIiEyijwUbp+Eur28U7V3yWfeltCuBMw+woui9waQeG3PbDkoKUyBztuhS8=,iv:9vno6+T8SHeCiGIN+z95a8lKFaFzV0jimrAbsPQSmrc=,tag:uaN4MGeksUSCasaMyitFJQ==,type:str]
|
mac: ENC[AES256_GCM,data:rhZJ4ZVvYJ/Btws52OrXHCZIRb9R3uRmX4+MFaro92PMJETJrCH07GL/UkPmqQPiQDDQC6sTW3/+U3d2KSrOtdBx5opqyl6oilj4DBmXiVVEGbYbUumbUaF4vFCY9iBhGUTIvt6Aw2ZDEm4lKWYor4/r34RU9Abymv4sMshHXBo=,iv:VwYk+kEtuhCzrwu8flV7Hb5l5dwZGtPuAFSgBw4UPb4=,tag:MZ6ovCv6WjgamPK1yCqxqQ==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
encrypted_suffix: secret
|
encrypted_suffix: secret
|
||||||
version: 3.7.1
|
version: 3.7.1
|
@ -1,4 +1,4 @@
|
|||||||
name: default
|
name: google-gcr
|
||||||
inputs:
|
inputs:
|
||||||
TestConfig.gcpConfig.project:
|
TestConfig.gcpConfig.project:
|
||||||
text: dagger-ci
|
text: dagger-ci
|
||||||
@ -21,8 +21,8 @@ sops:
|
|||||||
ZXd6Qmd1YUtxMnVTVkYybWgrV3pVK2MKowMeOZU3j3BxERT0DwhQYCGUDBK6gCdo
|
ZXd6Qmd1YUtxMnVTVkYybWgrV3pVK2MKowMeOZU3j3BxERT0DwhQYCGUDBK6gCdo
|
||||||
WByubiBATdsb7h7ytCC4HutWppynK4MpU+Ya9NP83AZuXo+Wa2u6aQ==
|
WByubiBATdsb7h7ytCC4HutWppynK4MpU+Ya9NP83AZuXo+Wa2u6aQ==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2021-05-28T02:07:09Z"
|
lastmodified: "2021-06-09T18:33:30Z"
|
||||||
mac: ENC[AES256_GCM,data:QqbgWep3l7dIfE4imJ3SKsMdexh7DgUvjtGwSgKbHHnT0p2MwIdFMY7pB0ZJvlc3ZwQyioT3wqF9xgn4U60a4piGtDYsyWjZn52tQAPy0p9c+sOHn+WlFVu1FJeljU4Q3mlEqdA6g993nsbJp9RnNShpc65rQXUMLkw2lXhOAak=,iv:1pp1D1fUFGI+Kn/H2efaqroJV+rzJRGmWo2ZTseTDis=,tag:ePCkD/G2KEbN7cxiMpy9fg==,type:str]
|
mac: ENC[AES256_GCM,data:u5StrL3GZimbfFDXhPeSCs+pvZqiM3CNSslySZY4MES2PldNSizJ7XU/75WhHJ+hBuNjVuIq37OPD3/N2KKuj8+R7FufPFIj/S2uwaAgWn3dfWBipRASubWGK8IC+Ab1tE53lUZYL+f55oUDG9Qoofpoo6d6bghU0bwIDI7qw8M=,iv:Zx+dBTW+ykbDYvQDMZEd6VWVqVGhRET2HAPSWW+bmTU=,tag:a6v5v0Vhv0Z//EThKJrktw==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
encrypted_suffix: secret
|
encrypted_suffix: secret
|
||||||
version: 3.7.1
|
version: 3.7.1
|
@ -1,4 +1,4 @@
|
|||||||
name: default
|
name: google-gke
|
||||||
inputs:
|
inputs:
|
||||||
TestConfig.gcpConfig.project:
|
TestConfig.gcpConfig.project:
|
||||||
text: dagger-ci
|
text: dagger-ci
|
||||||
@ -21,8 +21,8 @@ sops:
|
|||||||
ZXd6Qmd1YUtxMnVTVkYybWgrV3pVK2MKowMeOZU3j3BxERT0DwhQYCGUDBK6gCdo
|
ZXd6Qmd1YUtxMnVTVkYybWgrV3pVK2MKowMeOZU3j3BxERT0DwhQYCGUDBK6gCdo
|
||||||
WByubiBATdsb7h7ytCC4HutWppynK4MpU+Ya9NP83AZuXo+Wa2u6aQ==
|
WByubiBATdsb7h7ytCC4HutWppynK4MpU+Ya9NP83AZuXo+Wa2u6aQ==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2021-05-28T02:07:09Z"
|
lastmodified: "2021-06-09T18:53:49Z"
|
||||||
mac: ENC[AES256_GCM,data:QqbgWep3l7dIfE4imJ3SKsMdexh7DgUvjtGwSgKbHHnT0p2MwIdFMY7pB0ZJvlc3ZwQyioT3wqF9xgn4U60a4piGtDYsyWjZn52tQAPy0p9c+sOHn+WlFVu1FJeljU4Q3mlEqdA6g993nsbJp9RnNShpc65rQXUMLkw2lXhOAak=,iv:1pp1D1fUFGI+Kn/H2efaqroJV+rzJRGmWo2ZTseTDis=,tag:ePCkD/G2KEbN7cxiMpy9fg==,type:str]
|
mac: ENC[AES256_GCM,data:hKBqKd8ZoEPiU9+B3Ccjs0ionnPJYaJIKwtJnoQjE1YqxrpHFICyoHre80/PeEO3tXCZuyw0BpA3hICTua4o+VfawKUf3jjWJNog7HtTmUHFl4YZd0r3FoqjCiTF/Bf617DGTn6HozjpQbn3zS6JFGTa2vleZi9islyzxtqmjw8=,iv:b0BKP3UZ1hUSJvMKBpXhKR3lOj5sieTAy7QQzrkCSOU=,tag:so+0De5l6Quqp4f9Le+aPA==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
encrypted_suffix: secret
|
encrypted_suffix: secret
|
||||||
version: 3.7.1
|
version: 3.7.1
|
@ -1,4 +1,4 @@
|
|||||||
name: default
|
name: netlify
|
||||||
inputs:
|
inputs:
|
||||||
TestNetlify.deploy.account.name:
|
TestNetlify.deploy.account.name:
|
||||||
text: blocklayer
|
text: blocklayer
|
||||||
@ -19,8 +19,8 @@ sops:
|
|||||||
SEdUK2RsaUxuVWg2aXUwdVJ0eUtrWWMKWkQDBuL5e4QDx5Wy6+fHiD+J4fp7QdMm
|
SEdUK2RsaUxuVWg2aXUwdVJ0eUtrWWMKWkQDBuL5e4QDx5Wy6+fHiD+J4fp7QdMm
|
||||||
lsqgmxRvJMWgEvm1U+hDAo/Pkn8PFUFJf0KxEvkdF4qGuguQePgzFQ==
|
lsqgmxRvJMWgEvm1U+hDAo/Pkn8PFUFJf0KxEvkdF4qGuguQePgzFQ==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2021-05-28T20:40:41Z"
|
lastmodified: "2021-06-09T18:53:39Z"
|
||||||
mac: ENC[AES256_GCM,data:12suvaaHfmdt0jaldFmaixGvWUbl0RP/By3l1S9XiUGLbB4tNfV65qsWv9BnjfD//98iV21dYkpCbXPQAITjM0MOGcrkZ9u3lDrmD2dTybHgxgniYJVe/X7BA5Y8uw4a3g+k+HqV5Z8i/iMGCEBbqakt20rNXqzGAFiWJfRcPGo=,iv:6TdOLjFJxn1uDsCLRNGpyUSiLszKHctN0crywXB5PfQ=,tag:XGcPX6lGeJcigxvOuiqyyw==,type:str]
|
mac: ENC[AES256_GCM,data:m2TA71YjNpiGlBH1nEKcbKDCOBS8x8ia2d+g43+f+LprnhAqav2GlgYaU5XU4n/M6SGtxE9NskfaOZ6z8tcBH01UvFatRX2jvpiVdcUuy/ULyb5ygK1D0g4Ok60nxD+Wp1JIbbIktevv6C4jGA0+TC6g8JjSinD5yXx9uzSDrKY=,iv:081twRYPy26JoGZL0TlknF7ktcG5eNzIPtvNK6Mzt2E=,tag:npnDVRON2N6LlWCsf1vAxA==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
encrypted_suffix: secret
|
encrypted_suffix: secret
|
||||||
version: 3.7.1
|
version: 3.7.1
|
2
stdlib/.gitignore
vendored
Normal file
2
stdlib/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
report.xml
|
11
stdlib/package.json
Normal file
11
stdlib/package.json
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"scripts": {
|
||||||
|
"test": "bats --report-formatter junit --jobs 4 ."
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"bats": "https://github.com/bats-core/bats-core#master",
|
||||||
|
"bats-assert": "https://github.com/bats-core/bats-assert",
|
||||||
|
"bats-support": "https://github.com/bats-core/bats-support"
|
||||||
|
}
|
||||||
|
}
|
45
stdlib/universe.bats
Normal file
45
stdlib/universe.bats
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
|
||||||
|
setup() {
|
||||||
|
load 'node_modules/bats-assert/load'
|
||||||
|
}
|
||||||
|
|
||||||
|
function dagger() {
|
||||||
|
"${DAGGER_BINARY:-$(which dagger)}" "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "netlify" {
|
||||||
|
dagger -e netlify up
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "aws: ecr" {
|
||||||
|
dagger -e aws-ecr up
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "aws: s3" {
|
||||||
|
dagger -e aws-s3 up
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "docker run: local" {
|
||||||
|
dagger -e docker-run-local up
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "docker run: ssh" {
|
||||||
|
dagger -e docker-run-ssh up
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "docker run: ssh with passphrase" {
|
||||||
|
dagger -e docker-run-ssh-passphrase up
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "docker run: ssh with wrong passphrase" {
|
||||||
|
run dagger -e docker-run-ssh-wrong-passphrase up
|
||||||
|
assert_failure
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "google cloud: gcr" {
|
||||||
|
dagger -e google-gcr up
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "google cloud: gke" {
|
||||||
|
dagger -e google-gke up
|
||||||
|
}
|
15
stdlib/yarn.lock
Normal file
15
stdlib/yarn.lock
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||||
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
|
"bats-assert@https://github.com/bats-core/bats-assert":
|
||||||
|
version "2.0.0"
|
||||||
|
resolved "https://github.com/bats-core/bats-assert#e0de84e9c011223e7f88b7ccf1c929f4327097ba"
|
||||||
|
|
||||||
|
"bats-support@https://github.com/bats-core/bats-support":
|
||||||
|
version "0.3.0"
|
||||||
|
resolved "https://github.com/bats-core/bats-support#d140a65044b2d6810381935ae7f0c94c7023c8c3"
|
||||||
|
|
||||||
|
"bats@https://github.com/bats-core/bats-core#master":
|
||||||
|
version "1.3.0"
|
||||||
|
resolved "https://github.com/bats-core/bats-core#ce5ca2802fabe5dc38393240cd40e20f8928d3b0"
|
@ -20,10 +20,6 @@ setup() {
|
|||||||
"$DAGGER" compute "$TESTDIR"/stdlib/file
|
"$DAGGER" compute "$TESTDIR"/stdlib/file
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "stdlib: netlify" {
|
|
||||||
"$DAGGER" up -w "$TESTDIR"/stdlib/netlify/
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "stdlib: kubernetes" {
|
@test "stdlib: kubernetes" {
|
||||||
skip_unless_local_kube
|
skip_unless_local_kube
|
||||||
|
|
||||||
@ -59,26 +55,6 @@ setup() {
|
|||||||
assert_success
|
assert_success
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "stdlib: aws: s3" {
|
|
||||||
"$DAGGER" up -w "$TESTDIR"/stdlib/aws/s3
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "stdlib: aws: eks" {
|
|
||||||
"$DAGGER" up -w "$TESTDIR"/stdlib/aws/eks
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "stdlib: aws: ecr" {
|
|
||||||
"$DAGGER" up -w "$TESTDIR"/stdlib/aws/ecr
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "stdlib: gcp: gke" {
|
|
||||||
"$DAGGER" up -w "$TESTDIR"/stdlib/gcp/gke
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "stdlib: gcp: gcr" {
|
|
||||||
"$DAGGER" up -w "$TESTDIR"/stdlib/gcp/gcr
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "stdlib: docker: build" {
|
@test "stdlib: docker: build" {
|
||||||
"$DAGGER" compute "$TESTDIR"/stdlib/docker/build/ --input-dir source="$TESTDIR"/stdlib/docker/build
|
"$DAGGER" compute "$TESTDIR"/stdlib/docker/build/ --input-dir source="$TESTDIR"/stdlib/docker/build
|
||||||
}
|
}
|
||||||
@ -95,25 +71,6 @@ setup() {
|
|||||||
assert_success
|
assert_success
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "stdlib: docker: run" {
|
|
||||||
# FIXME: local run disabled
|
|
||||||
# Local run
|
|
||||||
# run "$DAGGER" up -w "$TESTDIR"/stdlib/docker/run/local/
|
|
||||||
# assert_success
|
|
||||||
|
|
||||||
# SSH key
|
|
||||||
run "$DAGGER" up -w "$TESTDIR"/stdlib/docker/run/ssh/
|
|
||||||
assert_success
|
|
||||||
|
|
||||||
# SSH passphrase
|
|
||||||
run "$DAGGER" up -w "$TESTDIR"/stdlib/docker/run/ssh-passphrase/
|
|
||||||
assert_success
|
|
||||||
|
|
||||||
# Wrong passphrase
|
|
||||||
run "$DAGGER" up -w "$TESTDIR"/stdlib/docker/run/ssh-wrong-passphrase/
|
|
||||||
assert_failure
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "stdlib: terraform" {
|
@test "stdlib: terraform" {
|
||||||
skip_unless_secrets_available "$TESTDIR"/stdlib/terraform/s3/inputs.yaml
|
skip_unless_secrets_available "$TESTDIR"/stdlib/terraform/s3/inputs.yaml
|
||||||
|
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"dagger.io/docker"
|
|
||||||
"dagger.io/dagger"
|
|
||||||
"dagger.io/random"
|
|
||||||
)
|
|
||||||
|
|
||||||
TestRun: {
|
|
||||||
suffix: random.#String & {
|
|
||||||
seed: ""
|
|
||||||
}
|
|
||||||
|
|
||||||
run: docker.#Run & {
|
|
||||||
name: "daggerci-test-local-\(suffix.out)"
|
|
||||||
ref: "hello-world"
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user