From 27195fc97793cb55c65d863a107de73fcb09a535 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Tue, 24 Jan 2023 08:19:24 -0700 Subject: [PATCH] Add stack tests Former-commit-id: c80ed2b2455602a86c3fb6a5e291622f6ad74ef9 --- app/data/stacks/test/stack.yml | 2 ++ app/data/version.txt | 2 +- tests/smoke-test/run-smoke-test.sh | 14 ++++++++------ 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/data/stacks/test/stack.yml b/app/data/stacks/test/stack.yml index 2903fbd1..44ac8604 100644 --- a/app/data/stacks/test/stack.yml +++ b/app/data/stacks/test/stack.yml @@ -1,6 +1,8 @@ version: "1.0" name: test description: "A test stack" +repos: + - cerc-io/laconicd containers: - cerc/test-container pods: diff --git a/app/data/version.txt b/app/data/version.txt index 031aa7e6..fcbc57cf 100644 --- a/app/data/version.txt +++ b/app/data/version.txt @@ -1,2 +1,2 @@ # This file should be re-generated running: scripts/update-version-file.sh script -v1.0.12-alpha-6ae86db +v1.0.12-alpha-3cef5eb diff --git a/tests/smoke-test/run-smoke-test.sh b/tests/smoke-test/run-smoke-test.sh index 4ee2fddc..b4006f01 100755 --- a/tests/smoke-test/run-smoke-test.sh +++ b/tests/smoke-test/run-smoke-test.sh @@ -13,13 +13,15 @@ rm -rf $CERC_REPO_BASE_DIR mkdir -p $CERC_REPO_BASE_DIR # Pull an example small public repo to test we can pull a repo $TEST_TARGET_SO setup-repositories --include cerc-io/laconic-sdk -# TODO: test building the repo into a container -# Build two example containers -# TODO: -$TEST_TARGET_SO build-containers --include cerc/builder-js,cerc/test-container +# Test pulling a stack +$TEST_TARGET_SO --stack test setup-repositories +# Test building the a stack container +$TEST_TARGET_SO --stack test build-containers +# Build one example containers +$TEST_TARGET_SO build-containers --include cerc/builder-js # Deploy the test container -$TEST_TARGET_SO deploy-system --include test up +$TEST_TARGET_SO --stack test deploy-system up # TODO: test that we can use the deployed container somehow # Clean up -$TEST_TARGET_SO deploy-system --include test down +$TEST_TARGET_SO --stack test deploy-system down echo "Test passed"