Mount registry-cli repo for running tests
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 35s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m57s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m27s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 9m12s
Smoke Test / Run basic test suite (pull_request) Successful in 4m40s

This commit is contained in:
neeraj 2024-04-04 10:42:30 +05:30 committed by Prathamesh Musale
parent 71b6868f68
commit f2f9d5749a
3 changed files with 3 additions and 6 deletions

View File

@ -28,6 +28,7 @@ services:
image: cerc/laconic-registry-cli:local image: cerc/laconic-registry-cli:local
volumes: volumes:
- ../config/fixturenet-laconicd/registry-cli-config-template.yml:/registry-cli-config-template.yml - ../config/fixturenet-laconicd/registry-cli-config-template.yml:/registry-cli-config-template.yml
- ${BASE_DIR}/laconic-registry-cli:/laconic-registry-cli
volumes: volumes:
laconicd-data: laconicd-data:

View File

@ -52,10 +52,6 @@ RUN npm config set @cerc-io:registry ${CERC_NPM_REGISTRY_URL} \
# Globally install the cli package # Globally install the cli package
RUN yarn global add @cerc-io/laconic-registry-cli RUN yarn global add @cerc-io/laconic-registry-cli
# Clone the repo for running CLI tests inside the container
RUN git clone https://git.vdb.to/cerc-io/laconic-registry-cli.git \
&& cd laconic-registry-cli && yarn
# Add scripts # Add scripts
RUN mkdir /scripts RUN mkdir /scripts
RUN mkdir /scripts/demo-records RUN mkdir /scripts/demo-records

View File

@ -12,7 +12,7 @@ cat /etc/hosts
TEST_TARGET_SO=$( ls -t1 ./package/laconic-so* | head -1 ) TEST_TARGET_SO=$( ls -t1 ./package/laconic-so* | head -1 )
echo "$(date +"%Y-%m-%d %T"): Starting stack" echo "$(date +"%Y-%m-%d %T"): Starting stack"
TEST_AUCTION_ENABLED=true $TEST_TARGET_SO --stack fixturenet-laconicd deploy --cluster laconicd up TEST_AUCTION_ENABLED=true BASE_DIR=~/cerc $TEST_TARGET_SO --stack fixturenet-laconicd deploy --cluster laconicd up
echo "$(date +"%Y-%m-%d %T"): Stack started" echo "$(date +"%Y-%m-%d %T"): Stack started"
# Verify that the fixturenet is up and running # Verify that the fixturenet is up and running
@ -30,7 +30,7 @@ docker exec laconicd-laconicd-1 sh -c "curl --retry 10 --retry-delay 3 --retry-c
# Run the tests # Run the tests
echo "Running the tests" echo "Running the tests"
docker exec -e TEST_ACCOUNT=$laconicd_account_address laconicd-cli-1 sh -c 'cd laconic-registry-cli && yarn test' docker exec -e TEST_ACCOUNT=$laconicd_account_address laconicd-cli-1 sh -c 'cd laconic-registry-cli && yarn && yarn test'
# Clean up # Clean up
$TEST_TARGET_SO --stack fixturenet-laconicd deploy --cluster laconicd down --delete-volumes $TEST_TARGET_SO --stack fixturenet-laconicd deploy --cluster laconicd down --delete-volumes