git.delta.rocks / unique-network / refs/commits / 70da175fb9fe

difftreelog

Merge branch 'develop' of https://github.com/usetech-llc/nft_private into develop

str-mv2021-08-12parents: #e961e84 #d49b9b4.patch.diff
in: master

2 files changed

modified.github/workflows/node_build_test.ymldiffbeforeafterboth
--- a/.github/workflows/node_build_test.yml
+++ b/.github/workflows/node_build_test.yml
@@ -31,11 +31,11 @@
           username: ${{ secrets.SERVER_USERNAME }}
           key: ${{ secrets.KEY }}
           port: ${{ secrets.SERVER_PORT }}
-          command_timeout: 240m
+          command_timeout: 300m
           script: |
             eval $(ssh-agent -s)
-            ssh-add /home/polkadot/.ssh/git_hub
-            git clone git@github.com:usetech-llc/nft_private.git
+            ssh-add /home/devops/.ssh/git_hub
+            git clone git@github.com:UniqueNetwork/nft_private.git
             cd nft_private
             git checkout develop
             # git pull --all
modifiedtests/src/pallet-presence.test.tsdiffbeforeafterboth
before · tests/src/pallet-presence.test.ts
1//2// This file is subject to the terms and conditions defined in3// file 'LICENSE', which is part of this source code package.4//56import { ApiPromise } from '@polkadot/api';7import { expect } from 'chai';8import usingApi from './substrate/substrate-api';910function getModuleNames(api: ApiPromise): string[] {11  return api.runtimeMetadata.asLatest.modules.map(m => m.name.toString().toLowerCase());12}1314// Pallets that must always be present15const requiredPallets = [16  'balances',17  'randomnesscollectiveflip',18  'timestamp',19  'transactionpayment',20  'treasury',21  'system',22  'vesting',23  'parachainsystem',24  'parachaininfo',25  'evm',26  'ethereum',27  'xcmpqueue',28  'polkadotxcm',29  'cumulusxcm',30  'dmpqueue',31  'inflation',32  'nft',33  'scheduler',34  'nftpayment',35  'charging',36];3738// Pallets that depend on consensus and governance configuration39const consensusPallets = [40  'sudo',41  'aura',42  'auraext',43];4445describe('Pallet presence', () => {46  it('Required pallets are present', async () => {47    await usingApi(async api => {48      for (let i=0; i<requiredPallets.length; i++) {49        expect(getModuleNames(api)).to.include(requiredPallets[i]);50      }51    });52  });53  it('Governance and consensus pallets are present', async () => {54    await usingApi(async api => {55      for (let i=0; i<consensusPallets.length; i++) {56        expect(getModuleNames(api)).to.include(consensusPallets[i]);57      }58    });59  });60  it('No extra pallets are included', async () => {61    await usingApi(async api => {62      expect(getModuleNames(api).length).to.be.equal(requiredPallets.length + consensusPallets.length);63    });64  });65});
after · tests/src/pallet-presence.test.ts
1//2// This file is subject to the terms and conditions defined in3// file 'LICENSE', which is part of this source code package.4//56import { ApiPromise } from '@polkadot/api';7import { expect } from 'chai';8import usingApi from './substrate/substrate-api';910function getModuleNames(api: ApiPromise): string[] {11  return api.runtimeMetadata.asLatest.modules.map(m => m.name.toString().toLowerCase());12}1314// Pallets that must always be present15const requiredPallets = [16  'balances',17  'randomnesscollectiveflip',18  'timestamp',19  'transactionpayment',20  'treasury',21  'system',22  'vesting',23  'parachainsystem',24  'parachaininfo',25  'evm',26  'evmcodersubstrate',27  'evmcontracthelpers',28  'evmtransactionpayment',29  'ethereum',30  'xcmpqueue',31  'polkadotxcm',32  'cumulusxcm',33  'dmpqueue',34  'inflation',35  'nft',36  'scheduler',37  'nftpayment',38  'charging',39];4041// Pallets that depend on consensus and governance configuration42const consensusPallets = [43  'sudo',44  'aura',45  'auraext',46];4748describe('Pallet presence', () => {49  it('Required pallets are present', async () => {50    await usingApi(async api => {51      for (let i=0; i<requiredPallets.length; i++) {52        expect(getModuleNames(api)).to.include(requiredPallets[i]);53      }54    });55  });56  it('Governance and consensus pallets are present', async () => {57    await usingApi(async api => {58      for (let i=0; i<consensusPallets.length; i++) {59        expect(getModuleNames(api)).to.include(consensusPallets[i]);60      }61    });62  });63  it('No extra pallets are included', async () => {64    await usingApi(async api => {65      expect(getModuleNames(api).sort()).to.be.deep.equal([...requiredPallets, ...consensusPallets].sort());66    });67  });68});