-
Notifications
You must be signed in to change notification settings - Fork 41
Resurrect the webnode #1778
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
Merged
Merged
Resurrect the webnode #1778
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
05e0b1c
Update tooling, dependencies, and RUSTFLAGS to support latest nightlies
iostat b7e9942
include latest devnet circuit-blobs in build
iostat b74e7de
include .cargo/config.toml when building wasm for docker, fix wasm bu…
iostat bcf7428
enable injecting bootnode urls via env vars when in docker
iostat 78900ff
add changelog entry
iostat 9189f8b
fix paths that webnode wasm is loaded from
iostat c1f689d
add --web-node-secrets flag to `mina misc mina-key-pair` to simplify …
iostat 960bb94
handle more sets of circuit-blobs
iostat 7367e58
Website: Add documentation for Dockerized webnode
iostat 4976a01
Add some documentation on the exposed WASM API and WebRTC peer addres…
iostat 81f1420
cli: document mina misc mina-key-pair --web-node-secrets
iostat 8e91415
CI: add tests for mina misc mina-key-pair command
iostat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| # Test the mina misc mina-key-pair command | ||
|
|
||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)" | ||
| cd "$REPO_ROOT" | ||
|
|
||
| MINA_BIN="${MINA_BIN:-./target/release/mina}" | ||
|
|
||
| echo "Testing: mina misc mina-key-pair" | ||
| echo "" | ||
|
|
||
| # Test 1: Basic mina-key-pair command | ||
| echo "Test 1: mina misc mina-key-pair (basic)" | ||
| if "$MINA_BIN" misc mina-key-pair > /dev/null 2>&1; then | ||
| echo "✓ Command executed successfully" | ||
| else | ||
| echo "✗ Test failed: Command failed to execute" | ||
| exit 1 | ||
| fi | ||
| echo "" | ||
|
|
||
| # Test 2: mina-key-pair with --web-node-secrets flag | ||
| echo "Test 2: mina misc mina-key-pair --web-node-secrets" | ||
| OUTPUT=$("$MINA_BIN" misc mina-key-pair --web-node-secrets) | ||
| EXIT_STATUS=$? | ||
|
|
||
| # Verify command executed successfully | ||
| if [ $EXIT_STATUS -ne 0 ]; then | ||
| echo "✗ Test failed: Command failed to execute" | ||
| exit 1 | ||
| fi | ||
| echo "✓ Command executed successfully" | ||
|
|
||
| # Verify output is valid JSON | ||
| if ! echo "$OUTPUT" | jq empty 2>/dev/null; then | ||
| echo "✗ Test failed: Output is not valid JSON" | ||
| echo "Output was: $OUTPUT" | ||
| exit 1 | ||
| fi | ||
| echo "✓ Output is valid JSON" | ||
|
|
||
| # Verify JSON contains "publicKey" field with a string value | ||
| PUBLIC_KEY=$(echo "$OUTPUT" | jq -r '.publicKey' 2>/dev/null) | ||
| if [ -z "$PUBLIC_KEY" ] || [ "$PUBLIC_KEY" = "null" ]; then | ||
| echo "✗ Test failed: JSON does not contain 'publicKey' field with a string value" | ||
| echo "Output was: $OUTPUT" | ||
| exit 1 | ||
| fi | ||
| echo "✓ JSON contains 'publicKey' field with value: $PUBLIC_KEY" | ||
|
|
||
| # Verify JSON contains "privateKey" field with a string value | ||
| PRIVATE_KEY=$(echo "$OUTPUT" | jq -r '.privateKey' 2>/dev/null) | ||
| if [ -z "$PRIVATE_KEY" ] || [ "$PRIVATE_KEY" = "null" ]; then | ||
| echo "✗ Test failed: JSON does not contain 'privateKey' field with a string value" | ||
| echo "Output was: $OUTPUT" | ||
| exit 1 | ||
| fi | ||
| echo "✓ JSON contains 'privateKey' field with value: [REDACTED]" | ||
|
|
||
| echo "" | ||
| echo "✓ All tests passed!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.