Skip to content

Commit 917f129

Browse files
Move secure store tests
1 parent 8b21b94 commit 917f129

File tree

3 files changed

+19
-37
lines changed

3 files changed

+19
-37
lines changed

cmd/crates/soroban-test/tests/it/integration/keys.rs

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -89,38 +89,4 @@ async fn overwrite_identity() {
8989
.success();
9090

9191
assert_ne!(initial_pubkey, pubkey_for_identity(sandbox, "test2"));
92-
}
93-
94-
#[tokio::test]
95-
async fn secret_with_secure_store_key() {
96-
let sandbox = &TestEnv::new();
97-
sandbox
98-
.new_assert_cmd("keys")
99-
.args(["generate", "test2", "--secure-store"])
100-
.assert()
101-
.success();
102-
sandbox
103-
.new_assert_cmd("keys")
104-
.arg("secret")
105-
.arg("test2")
106-
.assert()
107-
.stderr(predicate::str::contains("does not reveal secret key"))
108-
.failure();
109-
}
110-
111-
#[tokio::test]
112-
async fn public_key_with_secure_store_key() {
113-
let sandbox = &TestEnv::new();
114-
sandbox
115-
.new_assert_cmd("keys")
116-
.args(["generate", "test2", "--secure-store"])
117-
.assert()
118-
.success();
119-
sandbox
120-
.new_assert_cmd("keys")
121-
.arg("public-key")
122-
.arg("test2")
123-
.assert()
124-
.stdout(predicate::str::contains("G"))
125-
.success();
126-
}
92+
}

cmd/crates/soroban-test/tests/it/integration/tx.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use soroban_test::{AssertExt, TestEnv};
55
use crate::integration::util::{deploy_contract, DeployKind, DeployOptions, HELLO_WORLD};
66

77
pub mod operations;
8-
pub mod secure_store;
98

109
#[tokio::test]
1110
async fn simulate() {

cmd/crates/soroban-test/tests/it/secure_store.rs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,21 @@ async fn get_secret_key() {
119119
.assert()
120120
.stderr(predicate::str::contains("does not reveal secret key"))
121121
.failure();
122-
}
122+
}
123+
124+
#[tokio::test]
125+
async fn public_key_with_secure_store() {
126+
let sandbox = &TestEnv::new();
127+
sandbox
128+
.new_assert_cmd("keys")
129+
.args(["generate", "test2", "--secure-store"])
130+
.assert()
131+
.success();
132+
sandbox
133+
.new_assert_cmd("keys")
134+
.arg("public-key")
135+
.arg("test2")
136+
.assert()
137+
.stdout(predicate::str::contains("G"))
138+
.success();
139+
}

0 commit comments

Comments
 (0)