Compare commits

..
Author SHA1 Message Date
Michael Shaw fdfe6ca285 new json util test, turning off codecov fails CI, and gitignore for test artifacts 2023-01-30 16:08:31 -05:00
Michael Shaw a1ad1e1d35 Cleanup for whitespace and require.NoError in test 2023-01-27 15:22:34 -05:00
Michael Shaw ff74a447fe turn codecov back to fail on error true to avoid invisible failure. 2023-01-27 13:31:30 -05:00
Michael Shaw 0e13bf7702 disable fail_ci on codecov error... it is unstable 2023-01-27 13:13:50 -05:00
Michael Shaw f8889d0225 sleep and docker logs... appears endpoint is not coming up maybe? 2023-01-27 11:06:55 -05:00
Michael Shaw c80f690c5d revert ListenAndServe 2023-01-27 10:48:00 -05:00
Michael Shaw 9719b51a12 manual service check in laconicd container for diagnostic 2023-01-27 10:10:05 -05:00
Michael Shaw fa948ec9c2 host mode breaks name resolution of containers 2023-01-26 18:44:32 -05:00
Michael Shaw fb29cc26b2 try host mode network 2023-01-26 17:58:01 -05:00
Michael Shaw 07435d0597 trying localhost 2023-01-26 16:59:27 -05:00
Michael Shaw ec4f8d386d listen on 0.0.0.0 specfically 2023-01-26 16:35:42 -05:00
Michael Shaw 87e873dc18 docker network inspect for diagnostic missing arg 2023-01-26 15:09:36 -05:00
Michael Shaw 4867f2a362 docker network inspect for diagnostic 2023-01-26 14:38:18 -05:00
Michael Shaw 2be800f0bb checkout is done from inside of container, rather than copied in from filesystem. checking out dev branch for now 2023-01-26 12:38:26 -05:00
Michael Shaw 6ac975e213 use feature branch for laconic-sdk... UNDO THIS LATER 2023-01-26 10:41:54 -05:00
Michael Shaw 8973a0fbf3 missing curl for health check 2023-01-25 18:19:48 -05:00
Michael Shaw 357f5e8af2 try curl (retval 0) instead of wget (retval 8) for 404 that is returned 2023-01-25 17:35:14 -05:00
Michael Shaw 25d1577ce4 utils/json test for comparing known, but deprecated method to new implementation 2023-01-25 16:52:45 -05:00
Michael Shaw cac9fe327c golang linting is really picky 2023-01-25 16:52:45 -05:00
Michael Shaw 9261699745 unchecked error complaint from linter 2023-01-25 16:52:45 -05:00
Michael Shaw 15db2d3849 missing unmarshalling of content bytes before encoding and generation of CID 2023-01-25 16:52:45 -05:00
Michael Shaw 6c597101ea start built containers 2023-01-24 13:48:55 -05:00
Michael Shaw 90943bf1e6 ./ missing 2023-01-24 13:27:11 -05:00
Michael Shaw 512136400d checkout not preserved between actions 2023-01-24 12:37:28 -05:00
Michael Shaw c0662cb5f1 diagnostic env step does not support cwd 2023-01-24 12:32:54 -05:00
Michael Shaw c73dc0d92a diagnostic env step 2023-01-24 12:24:34 -05:00
Michael Shaw 8f20f25e43 diagnostic env step 2023-01-24 12:17:25 -05:00
Michael Shaw 08e369aa64 - -> _ 2023-01-24 11:56:53 -05:00
Michael Shaw 40a78c66bf first pass use tests/sdk-tests/run-tests.sh in github action 2023-01-24 10:38:38 -05:00
4 changed files with 2 additions and 23 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ jobs:
run: docker compose up -d
- name: run-tests.sh
working-directory: tests/sdk_tests
run: ./run-all-tests.sh
run: ./run-tests.sh
# integration_tests:
+1 -1
View File
@@ -47,7 +47,7 @@ WORKDIR /app
RUN \
git clone https://github.com/cerc-io/laconic-sdk.git \
&& cd laconic-sdk \
&& git checkout auction_nameservice_tests \
&& git checkout jest_timeout \
&& yarn install
WORKDIR /app/laconic-sdk
-3
View File
@@ -2,9 +2,6 @@ services:
laconicd:
restart: unless-stopped
image: cerc-io/laconicd:local-test
environment:
- TEST_AUCTION_ENABLED=true
- TEST_REGISTRY_EXPIRY=true
command: ["sh", "/docker-entrypoint-scripts.d/create-fixturenet.sh"]
volumes:
- ../../init.sh:/docker-entrypoint-scripts.d/create-fixturenet.sh
-18
View File
@@ -1,18 +0,0 @@
#!/usr/bin/env bash
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
set -x
fi
# Get the key from laconicd
laconicd_key=$( docker compose exec laconicd echo y | docker compose exec laconicd laconicd keys export mykey --unarmored-hex --unsafe )
# Set parameters for the test suite
cosmos_chain_id=laconic_9000-1
laconicd_rest_endpoint=http://laconicd:1317
laconicd_gql_endpoint=http://laconicd:9473/api
# Run tests
docker network inspect sdk_tests_default
sleep 30s
docker compose exec sdk-test-runner sh -c "COSMOS_CHAIN_ID=${cosmos_chain_id} LACONICD_REST_ENDPOINT=${laconicd_rest_endpoint} LACONICD_GQL_ENDPOINT=${laconicd_gql_endpoint} PRIVATE_KEY=${laconicd_key} yarn test"
docker compose exec sdk-test-runner sh -c "COSMOS_CHAIN_ID=${cosmos_chain_id} LACONICD_REST_ENDPOINT=${laconicd_rest_endpoint} LACONICD_GQL_ENDPOINT=${laconicd_gql_endpoint} PRIVATE_KEY=${laconicd_key} yarn test:auctions"
docker compose exec sdk-test-runner sh -c "COSMOS_CHAIN_ID=${cosmos_chain_id} LACONICD_REST_ENDPOINT=${laconicd_rest_endpoint} LACONICD_GQL_ENDPOINT=${laconicd_gql_endpoint} PRIVATE_KEY=${laconicd_key} yarn test:nameservice-expiry"
docker logs sdk_tests-laconicd-1