From 0c2667eb2ceef8dbbb9b2ec42ce638b570e949df Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Mon, 13 Jul 2020 15:43:08 -0700 Subject: [PATCH] fix(free tier): Adding integration tests for free tier --- package.json | 1 + test/integration/test-free-tier.sh | 2 +- test/integration/testnet/test-free-tier.sh | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 test/integration/testnet/test-free-tier.sh diff --git a/package.json b/package.json index 79a49a8..0716313 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "test:integration:local": "RESTURL=http://localhost:3000/v3/ mocha --timeout 30000 test/integration", "test:integration:testnet:local": "RESTURL=http://localhost:4000/v3/ mocha --timeout 30000 test/integration/testnet", "test:integration:free": "bash test/integration/test-free-tier.sh", + "test:integration:free:testnet": "bash test/integration/testnet/test-free-tier.sh", "test:temp": "nyc mocha --timeout 30000 test/unit/ipfs.js", "test:integration:api": "RESTURL=https://api.fullstack.cash/v3/ mocha --timeout 30000 test/integration", "coverage": "nyc report --reporter=text-lcov | coveralls", diff --git a/test/integration/test-free-tier.sh b/test/integration/test-free-tier.sh index 397e5ac..fa2aea2 100755 --- a/test/integration/test-free-tier.sh +++ b/test/integration/test-free-tier.sh @@ -1,6 +1,6 @@ #!/bin/bash -export RESTURL=https://free-api.fullstack.cash/v3/ +export RESTURL=https://free-main.fullstack.cash/v3/ #export RESTURL=http://localhost:3000/v3/ cd test/integration/ diff --git a/test/integration/testnet/test-free-tier.sh b/test/integration/testnet/test-free-tier.sh new file mode 100755 index 0000000..2658fbf --- /dev/null +++ b/test/integration/testnet/test-free-tier.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +export RESTURL=https://free-test.fullstack.cash/v3/ +export NETWORK=testnet +#export RESTURL=http://localhost:3000/v3/ + +cd test/integration/testnet/ +mocha --timeout 30000 blockchain.js control.js electrumx.js openbazaar.js rawtransaction.js slp.js util.js