e2e tests for Gov2 (#2944)

* Fellowship e2e tests

* fixes

* fixe wrong result

* Update parachains/integration-tests/e2e/collectives/README.md

* Apply suggestions from code review

Co-authored-by: Squirrel <gilescope@gmail.com>

* fixes

---------

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
Co-authored-by: Squirrel <gilescope@gmail.com>
This commit is contained in:
Muharem Ismailov
2023-08-01 11:17:47 +02:00
committed by GitHub
parent 082d9e1d6e
commit a15f573e7d
10 changed files with 798 additions and 11 deletions
@@ -104,6 +104,7 @@ tests:
- name: sudo.Sudid
result: { sudoResult: Ok }
- name: xcmPallet.Sent
result: { origin: { parents: 0, interior: Here }, destination: { parents: 0, interior: { X1: { Parachain: *coll_para_id }}}}
- name: alliance.MembersInitialized
chain: *collectives_parachain
- name: dmpQueue.ExecutedDownward
@@ -154,6 +155,7 @@ tests:
- name: sudo.Sudid
result: { sudoResult: Ok }
- name: xcmPallet.Sent
result: { origin: { parents: 0, interior: Here }, destination: { parents: 0, interior: { X1: { Parachain: *coll_para_id }}}}
- name: dmpQueue.ExecutedDownward
chain: *collectives_parachain
threshold: *weight_threshold
@@ -198,6 +200,7 @@ tests:
- name: sudo.Sudid
result: { sudoResult: Ok }
- name: xcmPallet.Sent
result: { origin: { parents: 0, interior: Here }, destination: { parents: 0, interior: { X1: { Parachain: *coll_para_id }}}}
- name: alliance.AllianceDisbanded
chain: *collectives_parachain
result: { fellowMembers: 6, allyMembers: 1, unreserved: 0 }
@@ -244,6 +247,7 @@ tests:
- name: sudo.Sudid
result: { sudoResult: Ok }
- name: xcmPallet.Sent
result: { origin: { parents: 0, interior: Here }, destination: { parents: 0, interior: { X1: { Parachain: *coll_para_id }}}}
- name: alliance.MembersInitialized
chain: *collectives_parachain
- name: dmpQueue.ExecutedDownward
@@ -43,10 +43,12 @@ tests:
events:
- name: xcmPallet.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '3,000,000,000', proofSize: 0 }}]
result: {
outcome: { Complete: { refTime: '3,000,000,000', proofSize: 0 }}
}
- name: balances.Deposit
chain: *collectives_parachain
result: { who: *acc_alice_ss58 }
result: { who: *acc_alice_ss58 }
- name: dmpQueue.ExecutedDownward
chain: *collectives_parachain
threshold: *weight_threshold
@@ -78,9 +80,9 @@ tests:
events:
- name: balances.Reserved
chain: *collectives_parachain
result: { who: *acc_alice_ss58, amount: '10,000,000,000,000' }
result: { who: *acc_alice_ss58, amount: 10000000000000 }
- name: alliance.NewAllyJoined
result: { ally: *acc_alice_ss58 }
result: {ally: *acc_alice_ss58, reserved: 10000000000000 }
- queries:
balance_cp_alice_after:
chain: *collectives_parachain
@@ -139,15 +141,18 @@ tests:
- name: sudo.Sudid
result: { sudoResult: Ok }
- name: xcmPallet.Sent
result: { origin: { parents: 0, interior: Here }, destination: { parents: 0, interior: { X1: { Parachain: *cp_id }}}}
- name: alliance.MemberKicked
chain: *collectives_parachain
result: { member: *acc_alice_ss58 }
result: { member: *acc_alice_ss58, slashed: 10000000000000 }
- name: dmpQueue.ExecutedDownward
chain: *collectives_parachain
threshold: *weight_threshold
result: {
outcome: { Complete: { refTime: '4,000,000,000', proofSize: '1,000,000' }}
}
- name: messageQueue.Processed
result: { origin: { Ump: { Para: *cp_id }}, success: true }
- queries:
balance_rc_treasury_after: