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

chore: e2e tests ah between current spiritnet runtime #668

Merged
merged 22 commits into from
Jul 23, 2024

Conversation

Ad96el
Copy link
Member

@Ad96el Ad96el commented Jul 12, 2024

fixes #3507

Checks possible interaction between AH and Spiritnet. In the emulated tests, it is checked that messages with the Transact instruction are filtered out. Currently, there are only tests for extrinsics which require sudo rights. If it is wished, I can add a test for that too.

@Ad96el Ad96el changed the title Ag ah integration tests chore: e2e tests ah between current spiritnet runtime Jul 12, 2024
@Ad96el Ad96el requested a review from ntn-x2 July 15, 2024 07:52
@ntn-x2 ntn-x2 requested review from ntn-x2 and removed request for ntn-x2 July 17, 2024 14:22
Copy link
Member

@ntn-x2 ntn-x2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments. These tests definitely need a overhaul, and am happy to see some work has gone into that already.

integration-tests/chopsticks/src/network/assetHub.ts Outdated Show resolved Hide resolved
@@ -26,6 +26,14 @@ export function setGovernance(addr: string[]) {
}
}

export function setSafeXcmVersion3() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only returns something, right? It does not set anything, as far as I can see.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, not the best naming. I renamed in: 3c3d182

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go with getSafeXcmVersion3StorageEntry, and make it unambiguous.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or XcmPalletSafeVersion3StorageEntry.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess TS practice is to start the name lowercase 😇

@ntn-x2 ntn-x2 force-pushed the ag_ah_integration_tests branch from 2140bc7 to 9e3487e Compare July 19, 2024 14:32
Copy link
Member

@ntn-x2 ntn-x2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor thing still open, otherwise looks good! We can go ahead with the new channel opening proposal.

Copy link
Member

@ntn-x2 ntn-x2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually let's try to fix the CI as well.

@Ad96el
Copy link
Member Author

Ad96el commented Jul 23, 2024

Updated snapshots in: 5f11861

Copy link
Member

@ntn-x2 ntn-x2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep ignoring the broken integration tests 😎😎😎

@ntn-x2 ntn-x2 merged commit 4ffb104 into develop Jul 23, 2024
1 of 2 checks passed
@ntn-x2 ntn-x2 deleted the ag_ah_integration_tests branch July 23, 2024 10:41
Ad96el added a commit that referenced this pull request Aug 20, 2024
## fixes [#3507](KILTprotocol/ticket#3507)
Checks possible interaction between AH and Spiritnet. In the emulated
tests, it is checked that messages with the `Transact` instruction are
filtered out. Currently, there are only tests for extrinsics which
require sudo rights. If it is wished, I can add a test for that too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants