Skip to content

Commit

Permalink
add testnet to sui-cluster-test (#4667)
Browse files Browse the repository at this point in the history
  • Loading branch information
tharbert authored Sep 15, 2022
1 parent 5de312c commit 72738d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
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

0 comments on commit 72738d5

Please sign in to comment.