From 76fb911a55f3365503ecf0ebfd2dc00c8f54e511 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Tue, 20 Feb 2024 11:31:27 +0100 Subject: [PATCH 1/2] chore: IS_LOCAL env for tests --- CHANGELOG.md | 1 + default.nix | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50a17d73..80d5b369 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - translation of cost models from numerical IDs to strings, required for `cardano-db-sync 13.1.1.3` and newer [#130](https://github.com/blockfrost/blockfrost-backend-ryo/pull/130) - indices improving `/assets/{asset}` when querying CIP68 assets and `/txs/{tx_hash}` with redeemers +- IS_LOCAL env fro testing ### Changed diff --git a/default.nix b/default.nix index 5f34c531..3a63d662 100644 --- a/default.nix +++ b/default.nix @@ -91,7 +91,7 @@ in machine.wait_for_open_port(3000) machine.succeed("cp -r ${blockfrost-tests} /tmp/tests") machine.succeed( - "cd /tmp/tests && NIX_PATH=nixpkgs=${nixpkgs} nix-shell --run 'SERVER_URL=http://localhost:3000/ TEST_AUTH=false IS_CACHED=true yarn test:mainnet --run' >&2" + "cd /tmp/tests && NIX_PATH=nixpkgs=${nixpkgs} nix-shell --run 'SERVER_URL=http://localhost:3000/ IS_LOCAL=true TEST_AUTH=false IS_CACHED=true yarn test:mainnet --run' >&2" ) ''; }; @@ -127,7 +127,7 @@ in machine.wait_for_open_port(3000) machine.succeed("cp -r ${blockfrost-tests} /tmp/tests") machine.succeed( - "cd /tmp/tests && NIX_PATH=nixpkgs=${nixpkgs} nix-shell --run 'SERVER_URL=http://localhost:3000/ TEST_AUTH=false IS_CACHED=true yarn test:preview --run' >&2" + "cd /tmp/tests && NIX_PATH=nixpkgs=${nixpkgs} nix-shell --run 'SERVER_URL=http://localhost:3000/ IS_LOCAL=true TEST_AUTH=false IS_CACHED=true yarn test:preview --run' >&2" ) ''; }; @@ -163,7 +163,7 @@ in machine.wait_for_open_port(3000) machine.succeed("cp -r ${blockfrost-tests} /tmp/tests") machine.succeed( - "cd /tmp/tests && NIX_PATH=nixpkgs=${nixpkgs} nix-shell --run 'SERVER_URL=http://localhost:3000/ TEST_AUTH=false IS_CACHED=true yarn test:preprod --run' >&2" + "cd /tmp/tests && NIX_PATH=nixpkgs=${nixpkgs} nix-shell --run 'SERVER_URL=http://localhost:3000/ IS_LOCAL=true TEST_AUTH=false IS_CACHED=true yarn test:preprod --run' >&2" ) ''; }; From 048ce00e82dc7eaaa10c50bbb5ac08bbc981ff7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maro=C5=A1?= Date: Tue, 20 Feb 2024 11:36:53 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80d5b369..cee57563 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - translation of cost models from numerical IDs to strings, required for `cardano-db-sync 13.1.1.3` and newer [#130](https://github.com/blockfrost/blockfrost-backend-ryo/pull/130) - indices improving `/assets/{asset}` when querying CIP68 assets and `/txs/{tx_hash}` with redeemers -- IS_LOCAL env fro testing +- IS_LOCAL env for testing ### Changed