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

add testnet to sui-cluster-test #4667

Merged
merged 1 commit into from
Sep 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions crates/sui-cluster-test/src/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ use tracing::info;
const DEVNET_FAUCET_ADDR: &str = "https://faucet.devnet.sui.io:443";
const STAGING_FAUCET_ADDR: &str = "https://faucet.staging.sui.io:443";
const CONTINUOUS_FAUCET_ADDR: &str = "https://faucet.ci.sui.io:443";
const TESTNET_FAUCET_ADDR: &str = "https://faucet.testnet.sui.io:443";
const DEVNET_GATEWAY_ADDR: &str = "https://gateway.devnet.sui.io:443";
const STAGING_GATEWAY_ADDR: &str = "https://gateway.staging.sui.io:443";
const CONTINUOUS_GATEWAY_ADDR: &str = "https://gateway.ci.sui.io:443";
const TESTNET_GATEWAY_ADDR: &str = "https://gateway.testnet.sui.io:443";
const DEVNET_FULLNODE_ADDR: &str = "https://fullnode.devnet.sui.io:443";
const STAGING_FULLNODE_ADDR: &str = "https://fullnode.staging.sui.io:443";
const CONTINUOUS_FULLNODE_ADDR: &str = "https://fullnode.ci.sui.io:443";
const TESTNET_FULLNODE_ADDR: &str = "https://fullnode.testnet.sui.io:443";

pub struct ClusterFactory;

Expand Down Expand Up @@ -88,6 +91,11 @@ impl Cluster for RemoteRunningCluster {
String::from(CONTINUOUS_FAUCET_ADDR),
String::from(CONTINUOUS_FULLNODE_ADDR),
),
Env::Testnet => (
String::from(TESTNET_GATEWAY_ADDR),
String::from(TESTNET_FAUCET_ADDR),
String::from(TESTNET_FULLNODE_ADDR),
),
Env::CustomRemote => (
options
.gateway_address
Expand Down
1 change: 1 addition & 0 deletions crates/sui-cluster-test/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pub enum Env {
DevNet,
Staging,
Continuous,
Testnet,
CustomRemote,
NewLocal,
}
Expand Down