Skip to content

Commit

Permalink
Merge pull request #52 from etherspot/PRO-2349
Browse files Browse the repository at this point in the history
Added deplay in the smoke test cases and remove mumbai and goerli tes…
  • Loading branch information
Jineshdarjee authored May 15, 2024
2 parents c14b70f + 4a6841a commit 4ba6728
Show file tree
Hide file tree
Showing 43 changed files with 171 additions and 24,363 deletions.
13 changes: 1 addition & 12 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,8 @@ INVALID_API_KEY=invalid_api_key
BUNDLER_API_KEY=bundler_api_key
DATA_API_KEY=data_api_key

## Private Key for Testing
PRIVATE_KEY1=private_key1
PRIVATE_KEY2=private_key2
PRIVATE_KEY3=private_key3
PRIVATE_KEY4=private_key4
PRIVATE_KEY5=private_key5

## Database Details
DB_HOST=db_host
DB_USER=db_user
DB_PASSWORD=db_password
DB_DATABASE=bd_database

## Path
SKANDHA_CSV_PATH=skandha_path
ARKA_CSV_PATH=arka_path
DB_DATABASE=bd_database
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,26 @@
"test-mainnet-getaddresses-optimism": "mocha --timeout 600000 --spec test/specs/mainnet/version/version.spec.js --spec test/specs/mainnet/getAddresses/optimism.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-mainnet-getaddresses-xdai": "mocha --timeout 600000 --spec test/specs/mainnet/version/version.spec.js --spec test/specs/mainnet/getAddresses/xdai.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-mainnet-getaddresses": "mocha --timeout 600000 --spec test/specs/mainnet/version/version.spec.js --spec test/specs/mainnet/getAddresses/*.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-mainnet-connext-arbitrum": "mocha --timeout 600000 --spec test/specs/mainnet/version/version.spec.js --spec test/specs/mainnet/connext/arbitrum.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-mainnet-connext-matic": "mocha --timeout 600000 --spec test/specs/mainnet/version/version.spec.js --spec test/specs/mainnet/connext/matic.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-mainnet-connext-optimism": "mocha --timeout 600000 --spec test/specs/mainnet/version/version.spec.js --spec test/specs/mainnet/connext/optimism.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-mainnet-connext-xdai": "mocha --timeout 600000 --spec test/specs/mainnet/version/version.spec.js --spec test/specs/mainnet/connext/xdai.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-mainnet-connext": "mocha --timeout 600000 --spec test/specs/mainnet/version/version.spec.js --spec test/specs/mainnet/connext/*.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/*/sepolia.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-transfertoken-mumbai": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/transferringFunds/mumbai.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-transfertoken-goerli": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/transferringFunds/goerli.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-transfertoken-sepolia": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/transferringFunds/sepolia.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-transfertoken": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/transferringFunds/*.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-transactionhistory-mumbai": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/transactionHistory/mumbai.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-transactionhistory-goerli": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/transactionHistory/goerli.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-transactionhistory-sepolia": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/transactionHistory/sepolia.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-transactionhistory": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/transactionHistory/*.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-swap-mumbai": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/swap/mumbai.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-swap-goerli": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/swap/goerli.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-swap-sepolia": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/swap/sepolia.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-swap": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/swap/*.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-paymaster-mumbai": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/paymaster/mumbai.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-paymaster-goerli": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/paymaster/goerli.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-paymaster-sepolia": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/paymaster/sepolia.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-paymaster": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/paymaster/*.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-listandrates-mumbai": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/listAndRates/mumbai.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-listandrates-goerli": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/listAndRates/goerli.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-listandrates-sepolia": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/listAndRates/sepolia.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-listandrates": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/listAndRates/*.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-getaddresses-mumbai": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/getAddresses/mumbai.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-getaddresses-goerli": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/getAddresses/goerli.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-getaddresses-sepolia": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/getAddresses/sepolia.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-getaddresses": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/getAddresses/*.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-connext-sepolia": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/connext/sepolia.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-testnet-connext": "mocha --timeout 600000 --spec test/specs/testnet/version/version.spec.js --spec test/specs/testnet/connext/*.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-arka-mumbai": "mocha --timeout 600000 --spec test/specs/loadAndPerformance/arka/mumbai.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-arka-goerli": "mocha --timeout 600000 --spec test/specs/loadAndPerformance/arka/goerli.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
"test-arka": "mocha --timeout 600000 --spec test/specs/loadAndPerformance/arka/mumbai.spec.js --spec test/specs/loadAndPerformance/arka/goerli.spec.js --reporter mochawesome --reporter-options charts=true,code=false,showHooks=always",
Expand Down
10 changes: 5 additions & 5 deletions test/specs/mainnet/connext/arbitrum.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('The PrimeSDK, Validate the connext endpoints with arbitrum network on

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down Expand Up @@ -132,7 +132,7 @@ describe('The PrimeSDK, Validate the connext endpoints with arbitrum network on
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

try {
allSupportedAssets =
Expand Down Expand Up @@ -210,7 +210,7 @@ describe('The PrimeSDK, Validate the connext endpoints with arbitrum network on
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

try {
supportedAssets =
Expand Down Expand Up @@ -292,7 +292,7 @@ describe('The PrimeSDK, Validate the connext endpoints with arbitrum network on
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

try {
quotes = await arbitrumDataService.getQuotes({
Expand Down Expand Up @@ -355,7 +355,7 @@ describe('The PrimeSDK, Validate the connext endpoints with arbitrum network on
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// clear the transaction batch
try {
Expand Down
10 changes: 5 additions & 5 deletions test/specs/mainnet/connext/matic.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('The PrimeSDK, Validate the connext endpoints with matic network on the

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down Expand Up @@ -132,7 +132,7 @@ describe('The PrimeSDK, Validate the connext endpoints with matic network on the
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

try {
allSupportedAssets =
Expand Down Expand Up @@ -210,7 +210,7 @@ describe('The PrimeSDK, Validate the connext endpoints with matic network on the
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

try {
supportedAssets =
Expand Down Expand Up @@ -292,7 +292,7 @@ describe('The PrimeSDK, Validate the connext endpoints with matic network on the
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

try {
quotes = await maticDataService.getQuotes({
Expand Down Expand Up @@ -355,7 +355,7 @@ describe('The PrimeSDK, Validate the connext endpoints with matic network on the
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// clear the transaction batch
try {
Expand Down
10 changes: 5 additions & 5 deletions test/specs/mainnet/connext/optimism.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('The PrimeSDK, Validate the connext endpoints with optimism network on

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down Expand Up @@ -132,7 +132,7 @@ describe('The PrimeSDK, Validate the connext endpoints with optimism network on
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

try {
allSupportedAssets =
Expand Down Expand Up @@ -210,7 +210,7 @@ describe('The PrimeSDK, Validate the connext endpoints with optimism network on
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

try {
supportedAssets =
Expand Down Expand Up @@ -292,7 +292,7 @@ describe('The PrimeSDK, Validate the connext endpoints with optimism network on
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

try {
quotes = await optimismDataService.getQuotes({
Expand Down Expand Up @@ -355,7 +355,7 @@ describe('The PrimeSDK, Validate the connext endpoints with optimism network on
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// clear the transaction batch
try {
Expand Down
10 changes: 5 additions & 5 deletions test/specs/mainnet/connext/xdai.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('The PrimeSDK, Validate the connext endpoints with xdai network on the

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down Expand Up @@ -132,7 +132,7 @@ describe('The PrimeSDK, Validate the connext endpoints with xdai network on the
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

try {
allSupportedAssets =
Expand Down Expand Up @@ -210,7 +210,7 @@ describe('The PrimeSDK, Validate the connext endpoints with xdai network on the
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

try {
supportedAssets =
Expand Down Expand Up @@ -292,7 +292,7 @@ describe('The PrimeSDK, Validate the connext endpoints with xdai network on the
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

try {
quotes = await xdaiDataService.getQuotes({
Expand Down Expand Up @@ -355,7 +355,7 @@ describe('The PrimeSDK, Validate the connext endpoints with xdai network on the
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// clear the transaction batch
try {
Expand Down
6 changes: 3 additions & 3 deletions test/specs/mainnet/getAddresses/arbitrum.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('The PrimeSDK, when get the ZeroDev address and SimpleAccount address d

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down Expand Up @@ -80,7 +80,7 @@ describe('The PrimeSDK, when get the ZeroDev address and SimpleAccount address d

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down Expand Up @@ -140,7 +140,7 @@ describe('The PrimeSDK, when get the ZeroDev address and SimpleAccount address d

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down
6 changes: 3 additions & 3 deletions test/specs/mainnet/getAddresses/matic.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('The PrimeSDK, when get the ZeroDev address and SimpleAccount address d

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down Expand Up @@ -80,7 +80,7 @@ describe('The PrimeSDK, when get the ZeroDev address and SimpleAccount address d

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down Expand Up @@ -140,7 +140,7 @@ describe('The PrimeSDK, when get the ZeroDev address and SimpleAccount address d

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down
6 changes: 3 additions & 3 deletions test/specs/mainnet/getAddresses/optimism.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('The PrimeSDK, when get the ZeroDev address and SimpleAccount address d

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down Expand Up @@ -80,7 +80,7 @@ describe('The PrimeSDK, when get the ZeroDev address and SimpleAccount address d

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down Expand Up @@ -140,7 +140,7 @@ describe('The PrimeSDK, when get the ZeroDev address and SimpleAccount address d

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down
6 changes: 3 additions & 3 deletions test/specs/mainnet/getAddresses/xdai.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('The PrimeSDK, when get the ZeroDev address and SimpleAccount address d

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down Expand Up @@ -80,7 +80,7 @@ describe('The PrimeSDK, when get the ZeroDev address and SimpleAccount address d

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down Expand Up @@ -140,7 +140,7 @@ describe('The PrimeSDK, when get the ZeroDev address and SimpleAccount address d

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down
8 changes: 4 additions & 4 deletions test/specs/mainnet/listAndRates/arbitrum.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('The PrimeSDK, when get the NFT List, Token List and Exchange Rates det

await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

// initializating sdk
try {
Expand Down Expand Up @@ -129,7 +129,7 @@ describe('The PrimeSDK, when get the NFT List, Token List and Exchange Rates det
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

let nfts;
try {
Expand Down Expand Up @@ -239,7 +239,7 @@ describe('The PrimeSDK, when get the NFT List, Token List and Exchange Rates det
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

let tokenLists;
let tokenListTokens;
Expand Down Expand Up @@ -455,7 +455,7 @@ describe('The PrimeSDK, when get the NFT List, Token List and Exchange Rates det
if (runTest) {
await customRetryAsync(async function () {

helper.wait(data.mediumTimeout);
helper.wait(data.longTimeout);

let TOKEN_LIST;
let rates;
Expand Down
Loading

0 comments on commit 4ba6728

Please sign in to comment.