Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration test refine #2897

Merged
merged 29 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
81f82f7
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Nov 7, 2023
eab82bb
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Nov 10, 2023
0259cdd
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Nov 21, 2023
b1a2679
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Nov 27, 2023
45223bd
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Nov 28, 2023
a82b5cd
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Dec 1, 2023
3b08821
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Dec 5, 2023
bfd1f49
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Dec 5, 2023
5d0a7cc
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Dec 13, 2023
7b9d4c1
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Dec 14, 2023
37e14e4
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Dec 28, 2023
dc68be9
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Jan 9, 2024
f259810
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Jan 16, 2024
6fdda51
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Feb 6, 2024
298b413
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Feb 12, 2024
06af53b
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Feb 14, 2024
e4853cf
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Feb 16, 2024
fc2e2b0
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Feb 20, 2024
a64564e
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Feb 21, 2024
ae561ab
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Feb 22, 2024
0a2974b
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Feb 29, 2024
708d150
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Mar 1, 2024
e018e9e
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Mar 8, 2024
4523ffb
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Mar 19, 2024
3c386ad
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Mar 26, 2024
dffb59c
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Apr 5, 2024
40056e3
test: updating tests to be compatible running with secret-key
hui-an-yang Apr 5, 2024
86e8250
ci: updated weeklynet ci script
hui-an-yang Apr 5, 2024
c1f5969
Merge branch 'master' of https://github.com/ecadlabs/taquito into int…
hui-an-yang Apr 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/mondaynet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
working-directory: ./integration-tests
env:
MONDAYNET: true
run: npm run test:originate-known-contracts
run: npm run originate-known-contracts
-
if: always()
id: integration-tests-mondaynet
Expand All @@ -58,7 +58,7 @@ jobs:
TEZOS_MONDAYNET_TZIP1216CONTRACT_ADDRESS: ${{ steps.originate-contracts-mondaynet.outputs.knownTzip12BigMapOffChainContractAddress }}
TEZOS_MONDAYNET_SAPLINGCONTRACT_ADDRESS: ${{ steps.originate-contracts-mondaynet.outputs.knownSaplingContractAddress }}
TEZOS_MONDAYNET_ON_CHAIN_VIEW_CONTRACT: ${{ steps.originate-contracts-mondaynet.outputs.knownOnChainViewContractAddress }}
run: npm run test:mondaynet -- --maxWorkers=2
run: npm run test:weeklynet -- --maxWorkers=2
-
name: Slack Notification
if: always()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ CONFIGS().forEach(({ rpc }) => {
beforeAll(async () => {
if(rpc.includes('oxfordnet')){
Tezos = new TezosToolkit('https://rpc.tzkt.io/oxfordnet');
}
if(rpc.includes('ghostnet')){
} else if(rpc.includes('ghostnet')){
Tezos = new TezosToolkit('https://rpc.tzkt.io/ghostnet');
} else {
Tezos = new TezosToolkit(rpc);
}
Tezos.setSignerProvider(new InMemorySigner(aliceSKey));
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
import { TezosToolkit } from '@taquito/taquito';
import { CONFIGS } from '../../../config';

CONFIGS().forEach(({ lib, rpc, setup, createAddress }) => {

const Tezos = lib;

describe(`Test Update Consensus Key using: ${rpc}`, () => {
let pk: string;
let consensusPk: string;
let delegateAccount: TezosToolkit;
beforeAll(async () => {
await setup(true);

try {
const account = await createAddress();
pk = await account.signer.publicKey();
const pkh = await account.signer.publicKeyHash();
delegateAccount = await createAddress();

const fund = await Tezos.contract.transfer({ amount: 5, to: pkh });
const consensusAccount = await createAddress();
consensusPk = await consensusAccount.signer.publicKey();

const fund = await Tezos.contract.batch()
.withTransfer({ amount: 2, to: await delegateAccount.signer.publicKeyHash() })
.withTransfer({ amount: 2, to: await consensusAccount.signer.publicKeyHash()})
.send();
await fund.confirmation();

const register = await Tezos.contract.registerDelegate({});
const register = await delegateAccount.contract.registerDelegate({});
await register.confirmation();

} catch (e) {
Expand All @@ -27,7 +33,7 @@ CONFIGS().forEach(({ lib, rpc, setup, createAddress }) => {
});

it('should be able to inject update_consensus_key operation', async () => {
const op = await Tezos.contract.updateConsensusKey({ pk });
const op = await delegateAccount.contract.updateConsensusKey({ pk: consensusPk });
await op.confirmation();

expect(op.status).toBe('applied');
Expand Down
5 changes: 3 additions & 2 deletions integration-tests/__tests__/wallet/failing-noop.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ CONFIGS().forEach(({ rpc }) => {
beforeAll(async () => {
if(rpc.includes('oxfordnet')){
Tezos = new TezosToolkit('https://rpc.tzkt.io/oxfordnet');
}
if(rpc.includes('ghostnet')){
} else if(rpc.includes('ghostnet')){
Tezos = new TezosToolkit('https://rpc.tzkt.io/ghostnet');
} else {
Tezos = new TezosToolkit(rpc);
}
Tezos.setSignerProvider(new InMemorySigner(aliceSKey));
});
Expand Down
6 changes: 3 additions & 3 deletions integration-tests/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const oxfordnetEphemeral: Config =
const oxfordnetSecretKey: Config =
{ ...oxfordnetEphemeral, ...{ signerConfig: defaultSecretKey }, ...{ defaultRpc: 'http://ecad-oxfordnet-full:8732' } };

const nairobinetSecretKey: Config =
const nairobinetSecretKey: Config =
defaultConfig({
networkName: 'NAIROBINET',
protocol: Protocols.PtNairobi,
Expand All @@ -154,13 +154,13 @@ const ghostnetEphemeral: Config =
defaultConfig({
networkName: 'GHOSTNET',
protocol: Protocols.ProxfordY,
defaultRpc: 'http://ecad-ghostnet-rolling:8732',
defaultRpc: 'http://ecad-ghostnet-rolling-2.i.tez.ie:8732',
knownContracts: knownContractsPtGhostnet,
signerConfig: defaultEphemeralConfig('https://keygen.ecadinfra.com/ghostnet')
});

const ghostnetSecretKey: Config =
{ ...ghostnetEphemeral, ...{ signerConfig: defaultSecretKey }, ...{ defaultRpc: 'http://ecad-ghostnet-rolling:8732' } };
{ ...ghostnetEphemeral, ...{ signerConfig: defaultSecretKey }, ...{ defaultRpc: 'http://ecad-ghostnet-rolling-2.i.tez.ie:8732' } };

const weeklynetEphemeral: Config =
defaultConfig({
Expand Down
Loading