Skip to content

Commit

Permalink
latest updates
Browse files Browse the repository at this point in the history
  • Loading branch information
codybum committed Aug 4, 2024
1 parent b314c42 commit bc4c9be
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/main/java/example/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public class Launcher {
public static void main(String[] args) throws Exception {

String host = "localhost";
//String host = "128.163.202.50";
int port = 8282;
String service_key = "a6f7f889-2500-46d3-9484-5b6499186456";

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/example/stunnel/SingleNodeTunnelTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public String deploySingleNodeSTunnel(String pipelineName) throws InterruptedExc
}

//Location of latest stunnel
String uri = "https://github.com/CrescoEdge/stunnel/releases/download/1.1-SNAPSHOT/stunnel-1.1-SNAPSHOT.jar";
String uri = "https://github.com/CrescoEdge/stunnel/releases/download/1.1-SNAPSHOT/stunnel-1.2-SNAPSHOT.jar";

//Local save file
String pluginSavePath = uri.substring(uri.lastIndexOf('/') + 1);
Expand All @@ -56,7 +56,7 @@ public String deploySingleNodeSTunnel(String pipelineName) throws InterruptedExc
getPlugin(uri, pluginSavePath);
}

//String pluginSavePath = "/Users/cody/IdeaProjects/stunnel/target/stunnel-1.1-SNAPSHOT.jar";
//String pluginSavePath = "/Users/cody/IdeaProjects/stunnel/target/stunnel-1.2-SNAPSHOT.jar";

//Upload plugin to repo
Map<String, String> sTunnelMap = client.globalcontroller.upload_plugin_global(pluginSavePath);
Expand Down
11 changes: 9 additions & 2 deletions src/main/java/example/stunnel/TunnelTesting.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,20 @@ public String deploySingleNodeSTunnel(String pipelineName) throws InterruptedExc
client.globalcontroller.remove_pipeline(pipelineId);
}


//Location of latest stunnel
String uri = "https://github.com/CrescoEdge/stunnel/releases/download/1.1-SNAPSHOT/stunnel-1.1-SNAPSHOT.jar";
String uri = "https://github.com/CrescoEdge/stunnel/releases/download/1.2-SNAPSHOT/stunnel-1.2-SNAPSHOT.jar";

//Local save file

String pluginSavePath = uri.substring(uri.lastIndexOf('/') + 1);

if(!(new File(pluginSavePath).isFile())) {
//pull plugin down from github
getPlugin(uri, pluginSavePath);
}

//String pluginSavePath = "/Users/cody/IdeaProjects/stunnel/target/stunnel-1.1-SNAPSHOT.jar";
//String pluginSavePath = "/Users/cody/IdeaProjects/stunnel/target/stunnel-1.2-SNAPSHOT.jar";

//Upload plugin to repo
Map<String, String> sTunnelMap = client.globalcontroller.upload_plugin_global(pluginSavePath);
Expand Down Expand Up @@ -206,6 +208,7 @@ public String deployMultiNodeSTunnel(String pipelineName, String clientRegion, S
client.globalcontroller.remove_pipeline(pipelineId);
}

/*
//Location of latest stunnel
String uri = "https://github.com/CrescoEdge/stunnel/releases/download/1.2-SNAPSHOT/stunnel-1.2-SNAPSHOT.jar";
//String uri = "https://github.com/CrescoEdge/stunnel/releases/download/1.1-SNAPSHOT/stunnel-1.1-SNAPSHOT.jar";
Expand All @@ -220,6 +223,10 @@ public String deployMultiNodeSTunnel(String pipelineName, String clientRegion, S
//pluginSavePath = "/Users/cody/IdeaProjects/stunnel/target/stunnel-1.2-SNAPSHOT.jar";
*/
String pluginSavePath = "/Users/cody/IdeaProjects/stunnel/target/stunnel-1.2-SNAPSHOT.jar";


if(clientRegion == null) {
String globalRegion = client.api.getGlobalRegion();
List<Map<String, String>> regionList = client.globalcontroller.get_region_list().get("regions");
Expand Down

0 comments on commit bc4c9be

Please sign in to comment.