Skip to content
Open
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
9 changes: 6 additions & 3 deletions src/test/java/net/continuumsecurity/steps/SSLyzeSteps.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import net.continuumsecurity.jsslyze.JSSLyze;

import java.io.IOException;
import java.net.URL;
import java.util.List;

import static org.hamcrest.MatcherAssert.assertThat;
Expand All @@ -18,12 +19,14 @@
*/
public class SSLyzeSteps {
final static String OUTFILENAME = "sslyze.output";
static String host=null;

@When("^the SSLyze command is run against the host (.*) on port (\\d+)$")
public void runSSLTestsOnSecureBaseUrl(String host, int port) throws IOException {
@When("^the SSLyze command is run against the application on port (\\d+)$")
public void runSSLTestsOnSecureBaseUrl(int port) throws IOException {
if (!World.getInstance().isSslRunCompleted()) {
host= new URL(Config.getInstance().getBaseUrl()).getHost();
JSSLyze jSSLLyze = new JSSLyze(Config.getInstance().getSSLyzePath(), OUTFILENAME);
jSSLLyze.execute(Config.getInstance().getSSLyzeOption(),host,port);
jSSLLyze.execute(Config.getInstance().getSSLyzeOption(), host, port);
World.getInstance().setjSSLyze(jSSLLyze);
World.getInstance().setSslRunCompleted(true);
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/features/ssl.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Feature: SSL
Ensure that the SSL configuration of the service is robust

Background: Run the SSLyze command only once for all features
When the SSLyze command is run against the host www.continuumsecurity.net on port 443
When the SSLyze command is run against the application on port 443

@ssl_crime
Scenario: Disable SSL deflate compression in order to mitigate the risk of the CRIME attack
Expand Down