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

inital implementation of native provider #66

Merged
merged 4 commits into from
Jan 17, 2022
Merged

Conversation

pepoviola
Copy link
Collaborator

@pepoviola pepoviola commented Jan 17, 2022

  • Add initial support for native provider.

From command line with -p native flag

node ./dist/cli.js -p native test tests/0006-logs.feature

Or

node ./dist/cli.js -p native spawn tests/0006-logs.toml

NOTE: For native provider network config the image configuration isn't used but you can set the binary to use directly in the default_command / command keys for relay-chain and command for collator.
Both relative and full path are accepted.

E.g:

[settings]
timeout = 1000

[relaychain]
default_image = "{{ZOMBIENET_INTEGRATION_TEST_IMAGE}}"
chain = "rococo-local"
default_command = "../polkadot/target/release/polkadot"

  [[relaychain.nodes]]
  name = "alice"
  extra_args = [ "--alice" ]

  [[relaychain.nodes]]
  name = "bob"
  extra_args = [ "--bob" ]

[[parachains]]
id = 100
addToGenesis = true

  [parachains.collator]
  name = "collator01"
  image = "{{COL_IMAGE}}"
  command = "../polkadot/target/testnet/adder-collator"

Another possibility is to create a symlink to the binaries and make them available in your path so you don't need to change the network config to use between providers.

closes #65

@pepoviola pepoviola merged commit 92f2a68 into main Jan 17, 2022
@pepoviola pepoviola deleted the feat-native-provider branch January 17, 2022 11:32
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.

[feat] add native provider
1 participant