Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Eliminate redundant aruba step that would always pass anyways

  • Loading branch information...
commit 6851c7920010a5b1fd000a8251648ec162044805 1 parent 6986b0b
Mani Tadayon bowsersenior authored
5 features/attack.feature
@@ -31,7 +31,10 @@ Feature: Verify the attack behaviour is correct
31 31 \"\"\"
32 32 """
33 33 When I run `gauntlt attack --name nmap --attack-file nmap.attack`
34   - Then it should pass
  34 + Then it should pass with:
  35 + """
  36 + 4 steps (4 passed)
  37 + """
35 38
36 39 Scenario: Run attack with undefined steps
37 40 Given an attack "nmap" exists
3  features/attacks/cookies.feature
@@ -18,8 +18,7 @@ Feature: Cookies attack
18 18 | NID | false | {'HttpOnly': None} |
19 19 """
20 20 When I run `gauntlt attack --name cookies --attack-file cookies.attack`
21   - Then it should pass
22   - And the output should contain:
  21 + Then it should pass with:
23 22 """
24 23 4 steps (4 passed)
25 24 """
3  features/attacks/curl.feature
@@ -16,8 +16,7 @@ Feature: curl attack
16 16 Then the response code should be "301"
17 17 """
18 18 When I run `gauntlt attack --name curl --attack-file curl.attack`
19   - Then it should pass
20   - And the output should contain:
  19 + Then it should pass with:
21 20 """
22 21 4 steps (4 passed)
23 22 """
3  features/attacks/http_methods.feature
@@ -26,8 +26,7 @@ Feature: http_methods attack
26 26 | bogus | Error 405 (Method Not Allowed) |
27 27 """
28 28 When I run `gauntlt attack --name http_methods --attack-file http_methods.attack`
29   - Then it should pass
30   - And the output should contain:
  29 + Then it should pass with:
31 30 """
32 31 5 scenarios (5 passed)
33 32 """
12 features/attacks/nmap.feature
@@ -84,8 +84,7 @@ Feature: nmap attack
84 84
85 85 Scenario: Simple nmap attack
86 86 When I run `gauntlt attack --name nmap --attack-file simple_nmap.attack`
87   - Then it should pass
88   - And the output should contain:
  87 + Then it should pass with:
89 88 """
90 89 4 steps (4 passed)
91 90 """
@@ -93,24 +92,21 @@ Feature: nmap attack
93 92 @slow
94 93 Scenario: OS detection nmap attack
95 94 When I run `gauntlt attack -n nmap -a os_detection_nmap.attack`
96   - Then it should pass
97   - And the output should contain:
  95 + Then it should pass with:
98 96 """
99 97 4 steps (4 passed)
100 98 """
101 99
102 100 Scenario: Testing the tcp_ping_ports
103 101 When I run `gauntlt attack -n nmap -a tcp_ping_ports_nmap.attack`
104   - Then it should pass
105   - And the output should contain:
  102 + Then it should pass with:
106 103 """
107 104 5 steps (5 passed)
108 105 """
109 106
110 107 Scenario: Handle XML output file
111 108 When I run `gauntlt attack -n nmap -a xml_output_nmap.attack`
112   - Then it should pass
113   - And the output should contain:
  109 + Then it should pass with:
114 110 """
115 111 5 steps (5 passed)
116 112 """
3  features/attacks/sqlmap.feature
@@ -10,8 +10,7 @@ Feature: sqlmap attack
10 10 Given "sqlmap" is installed
11 11 """
12 12 When I run `gauntlt attack --name sqlmap --attack-file sqlmap.attack`
13   - Then it should pass
14   - And the output should contain:
  13 + Then it should pass with:
15 14 """
16 15 1 step (1 passed)
17 16 """
3  features/attacks/sslyze.feature
@@ -29,8 +29,7 @@ Feature: sslyze attack
29 29 # Then the key size should be at least 2048
30 30 """
31 31 When I run `gauntlt attack --name sslyze --attack-file sslyze.attack`
32   - Then it should pass
33   - And the output should contain:
  32 + Then it should pass with:
34 33 """
35 34 4 steps (4 passed)
36 35 """
3  features/step_definitions/aruba_extension_steps.rb
... ... @@ -1,3 +0,0 @@
1   -Then /^it should pass$/ do
2   - assert_success(true)
3   -end

0 comments on commit 6851c79

Please sign in to comment.
Something went wrong with that request. Please try again.