-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into move-container-to-root
- Loading branch information
Showing
14 changed files
with
201 additions
and
57 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -8,3 +8,4 @@ test_snapshots | |
.vscode/settings.json | ||
.idea | ||
local.sh | ||
.stellar |
Large diffs are not rendered by default.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
cmd/crates/soroban-spec-typescript/fixtures/test_custom_types/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 3 additions & 2 deletions
5
cmd/crates/soroban-spec-typescript/fixtures/test_custom_types/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
9 changes: 5 additions & 4 deletions
9
cmd/crates/soroban-spec-typescript/ts-tests/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 was deleted.
Oops, something went wrong.
This file contains 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,76 @@ | ||
use predicates::prelude::predicate; | ||
use soroban_test::AssertExt; | ||
use soroban_test::TestEnv; | ||
|
||
fn pubkey_for_identity(sandbox: &TestEnv, name: &str) -> String { | ||
let output = sandbox | ||
.new_assert_cmd("keys") | ||
.arg("address") | ||
.arg(name) | ||
.assert() | ||
.stdout_as_str(); | ||
return output; | ||
} | ||
|
||
#[tokio::test] | ||
#[allow(clippy::too_many_lines)] | ||
async fn fund() { | ||
let sandbox = &TestEnv::new(); | ||
sandbox | ||
.new_assert_cmd("keys") | ||
.arg("generate") | ||
.arg("test2") | ||
.assert() | ||
.success(); | ||
sandbox | ||
.new_assert_cmd("keys") | ||
.arg("fund") | ||
.arg("test2") | ||
.assert() | ||
// Don't expect error if friendbot indicated that the account is | ||
// already fully funded to the starting balance, because the | ||
// user's goal is to get funded, and the account is funded | ||
// so it is success much the same. | ||
.success(); | ||
} | ||
|
||
#[tokio::test] | ||
#[allow(clippy::too_many_lines)] | ||
async fn overwrite_identity() { | ||
let sandbox = &TestEnv::new(); | ||
sandbox | ||
.new_assert_cmd("keys") | ||
.arg("generate") | ||
.arg("test2") | ||
.assert() | ||
.success(); | ||
|
||
let initial_pubkey = sandbox | ||
.new_assert_cmd("keys") | ||
.arg("address") | ||
.arg("test2") | ||
.assert() | ||
.stdout_as_str(); | ||
|
||
sandbox | ||
.new_assert_cmd("keys") | ||
.arg("generate") | ||
.arg("test2") | ||
.assert() | ||
.stderr(predicate::str::contains( | ||
"error: An identity with the name 'test2' already exists", | ||
)); | ||
|
||
assert_eq!(initial_pubkey, pubkey_for_identity(&sandbox, "test2")); | ||
|
||
sandbox | ||
.new_assert_cmd("keys") | ||
.arg("generate") | ||
.arg("test2") | ||
.arg("--overwrite") | ||
.assert() | ||
.stderr(predicate::str::contains("Overwriting identity 'test2'")) | ||
.success(); | ||
|
||
assert_ne!(initial_pubkey, pubkey_for_identity(&sandbox, "test2")); | ||
} |
This file contains 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 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 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 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