File tree Expand file tree Collapse file tree 11 files changed +29
-40
lines changed Expand file tree Collapse file tree 11 files changed +29
-40
lines changed Original file line number Diff line number Diff line change 42
42
# - cron: '*/15 * * * *'
43
43
44
44
jobs :
45
- env :
46
- BUNDLE_WITHOUT : " coverage development pcap"
47
-
48
45
ldap :
49
46
runs-on : ${{ matrix.os }}
50
47
timeout-minutes : 40
59
56
60
57
env :
61
58
RAILS_ENV : test
59
+ BUNDLE_WITHOUT : " coverage development pcap"
62
60
63
61
name : LDAP Acceptance - ${{ matrix.os }} - Ruby ${{ matrix.ruby }}
64
62
steps :
Original file line number Diff line number Diff line change 42
42
# - cron: '*/15 * * * *'
43
43
44
44
jobs :
45
- env :
46
- BUNDLE_WITHOUT : " coverage development pcap"
47
-
48
45
mssql :
49
46
runs-on : ${{ matrix.os }}
50
47
timeout-minutes : 40
75
72
76
73
env :
77
74
RAILS_ENV : test
75
+ BUNDLE_WITHOUT : " coverage development pcap"
76
+
78
77
79
78
name : ${{ matrix.docker_image }} - ${{ matrix.os }} - Ruby ${{ matrix.ruby }}
80
79
steps :
Original file line number Diff line number Diff line change 42
42
# - cron: '*/15 * * * *'
43
43
44
44
jobs :
45
- env :
46
- BUNDLE_WITHOUT : " coverage development pcap"
47
-
48
45
mysql :
49
46
runs-on : ${{ matrix.os }}
50
47
timeout-minutes : 40
@@ -69,12 +66,11 @@ jobs:
69
66
- ubuntu-latest
70
67
target :
71
68
- { version: "mariadb:latest", health_cmd: "mariadb -uroot -ppassword -e 'SELECT version()'" }
72
- - { version: "mariadb:5.5.42", health_cmd: "mysql -uroot -ppassword -e 'SELECT version()'" }
73
69
- { version: "mysql:latest", health_cmd: "mysql -uroot -ppassword -e 'SELECT version()'" }
74
- - { version: "mysql:5.5.42", health_cmd: "mysql -uroot -ppassword -e 'SELECT version()'" }
75
70
76
71
env :
77
72
RAILS_ENV : test
73
+ BUNDLE_WITHOUT : " coverage development pcap"
78
74
79
75
name : ${{ matrix.target.version }} - ${{ matrix.os }} - Ruby ${{ matrix.ruby }}
80
76
steps :
Original file line number Diff line number Diff line change 42
42
# - cron: '*/15 * * * *'
43
43
44
44
jobs :
45
- env :
46
- BUNDLE_WITHOUT : " coverage development pcap"
47
-
48
45
postgres :
49
46
runs-on : ${{ matrix.os }}
50
47
timeout-minutes : 40
75
72
76
73
env :
77
74
RAILS_ENV : test
75
+ BUNDLE_WITHOUT : " coverage development pcap"
78
76
79
77
name : ${{ matrix.docker_image }} - ${{ matrix.os }} - Ruby ${{ matrix.ruby }}
80
78
steps :
Original file line number Diff line number Diff line change 42
42
# - cron: '*/15 * * * *'
43
43
44
44
jobs :
45
- env :
46
- BUNDLE_WITHOUT : " coverage development pcap"
47
-
48
45
smb :
49
46
runs-on : ${{ matrix.os }}
50
47
timeout-minutes : 40
61
58
RAILS_ENV : test
62
59
SMB_USERNAME : acceptance_tests_user
63
60
SMB_PASSWORD : acceptance_tests_password
61
+ BUNDLE_WITHOUT : " coverage development pcap"
64
62
65
63
name : SMB Acceptance - ${{ matrix.os }} - Ruby ${{ matrix.ruby }}
66
64
steps :
Original file line number Diff line number Diff line change 5
5
6
6
RHOST_REGEX = /\d +\. \d +\. \d +\. \d +:\d +/
7
7
8
- TESTS = {
8
+ tests = {
9
9
ldap : {
10
10
target : {
11
11
session_module : 'auxiliary/scanner/ldap/ldap_login' ,
119
119
}
120
120
}
121
121
122
- TEST_ENVIRONMENT = AllureRspec . configuration . environment_properties
122
+ allure_test_environment = AllureRspec . configuration . environment_properties
123
123
124
124
let_it_be ( :current_platform ) { Acceptance ::Meterpreter . current_platform }
125
125
@@ -283,7 +283,7 @@ def with_test_harness(module_test)
283
283
raise console_reset_error if console_reset_error
284
284
end
285
285
286
- TESTS . each do |runtime_name , test_config |
286
+ tests . each do |runtime_name , test_config |
287
287
runtime_name = "#{ runtime_name } #{ ENV . fetch ( 'RUNTIME_VERSION' , '' ) } "
288
288
289
289
describe "#{ Acceptance ::Meterpreter . current_platform } /#{ runtime_name } " , focus : test_config [ :focus ] do
@@ -299,7 +299,7 @@ def with_test_harness(module_test)
299
299
{ }
300
300
end
301
301
302
- let ( :test_environment ) { TEST_ENVIRONMENT }
302
+ let ( :test_environment ) { allure_test_environment }
303
303
304
304
let ( :default_module_datastore ) do
305
305
{
Original file line number Diff line number Diff line change 14
14
}
15
15
)
16
16
17
- TEST_ENVIRONMENT = AllureRspec . configuration . environment_properties
17
+ allure_test_environment = AllureRspec . configuration . environment_properties
18
18
19
19
let_it_be ( :current_platform ) { Acceptance ::Meterpreter ::current_platform }
20
20
@@ -92,7 +92,7 @@ def initialize(path)
92
92
}
93
93
end
94
94
95
- let ( :test_environment ) { TEST_ENVIRONMENT }
95
+ let ( :test_environment ) { allure_test_environment }
96
96
97
97
let ( :default_module_datastore ) do
98
98
{
@@ -342,7 +342,7 @@ def get_file_attachment_contents(path)
342
342
Acceptance ::Meterpreter . supported_platform? ( payload_config ) &&
343
343
Acceptance ::Meterpreter . supported_platform? ( module_test ) &&
344
344
# Skip tests that are explicitly skipped, or won't pass in the current environment
345
- !Acceptance ::Meterpreter . skipped_module_test? ( module_test , TEST_ENVIRONMENT )
345
+ !Acceptance ::Meterpreter . skipped_module_test? ( module_test , allure_test_environment )
346
346
) ,
347
347
# test metadata - will appear in allure report
348
348
module_test : module_test [ :name ]
Original file line number Diff line number Diff line change 3
3
RSpec . describe 'MSSQL sessions and MSSQL modules' do
4
4
include_context 'wait_for_expect'
5
5
6
- TESTS = {
6
+ tests = {
7
7
mssql : {
8
8
target : {
9
9
session_module : "auxiliary/scanner/mssql/mssql_login" ,
106
106
}
107
107
}
108
108
109
- TEST_ENVIRONMENT = AllureRspec . configuration . environment_properties
109
+ allure_test_environment = AllureRspec . configuration . environment_properties
110
110
111
111
let_it_be ( :current_platform ) { Acceptance ::Meterpreter ::current_platform }
112
112
@@ -269,7 +269,7 @@ def with_test_harness(module_test)
269
269
raise console_reset_error if console_reset_error
270
270
end
271
271
272
- TESTS . each do |runtime_name , test_config |
272
+ tests . each do |runtime_name , test_config |
273
273
runtime_name = "#{ runtime_name } #{ ENV . fetch ( 'RUNTIME_VERSION' , '' ) } "
274
274
275
275
describe "#{ Acceptance ::Meterpreter . current_platform } /#{ runtime_name } " , focus : test_config [ :focus ] do
@@ -287,7 +287,7 @@ def with_test_harness(module_test)
287
287
}
288
288
end
289
289
290
- let ( :test_environment ) { TEST_ENVIRONMENT }
290
+ let ( :test_environment ) { allure_test_environment }
291
291
292
292
let ( :default_module_datastore ) do
293
293
{
Original file line number Diff line number Diff line change 5
5
6
6
RHOST_REGEX = /\d +\. \d +\. \d +\. \d +:\d +/
7
7
8
- TESTS = {
8
+ tests = {
9
9
mysql : {
10
10
target : {
11
11
session_module : "auxiliary/scanner/mysql/mysql_login" ,
84
84
}
85
85
}
86
86
87
- TEST_ENVIRONMENT = AllureRspec . configuration . environment_properties
87
+ allure_test_environment = AllureRspec . configuration . environment_properties
88
88
89
89
let_it_be ( :current_platform ) { Acceptance ::Meterpreter ::current_platform }
90
90
@@ -247,7 +247,7 @@ def with_test_harness(module_test)
247
247
raise console_reset_error if console_reset_error
248
248
end
249
249
250
- TESTS . each do |runtime_name , test_config |
250
+ tests . each do |runtime_name , test_config |
251
251
runtime_name = "#{ runtime_name } #{ ENV . fetch ( 'RUNTIME_VERSION' , '' ) } "
252
252
253
253
describe "#{ Acceptance ::Meterpreter . current_platform } /#{ runtime_name } " , focus : test_config [ :focus ] do
@@ -265,7 +265,7 @@ def with_test_harness(module_test)
265
265
}
266
266
end
267
267
268
- let ( :test_environment ) { TEST_ENVIRONMENT }
268
+ let ( :test_environment ) { allure_test_environment }
269
269
270
270
let ( :default_module_datastore ) do
271
271
{
Original file line number Diff line number Diff line change 3
3
RSpec . describe 'Postgres sessions and postgres modules' do
4
4
include_context 'wait_for_expect'
5
5
6
- TESTS = {
6
+ tests = {
7
7
postgres : {
8
8
target : {
9
9
session_module : "auxiliary/scanner/postgres/postgres_login" ,
90
90
}
91
91
}
92
92
93
- TEST_ENVIRONMENT = AllureRspec . configuration . environment_properties
93
+ allure_test_environment = AllureRspec . configuration . environment_properties
94
94
95
95
let_it_be ( :current_platform ) { Acceptance ::Meterpreter ::current_platform }
96
96
@@ -253,7 +253,7 @@ def with_test_harness(module_test)
253
253
raise console_reset_error if console_reset_error
254
254
end
255
255
256
- TESTS . each do |runtime_name , test_config |
256
+ tests . each do |runtime_name , test_config |
257
257
runtime_name = "#{ runtime_name } #{ ENV . fetch ( 'RUNTIME_VERSION' , '' ) } "
258
258
259
259
describe "#{ Acceptance ::Meterpreter . current_platform } /#{ runtime_name } " , focus : test_config [ :focus ] do
@@ -271,7 +271,7 @@ def with_test_harness(module_test)
271
271
}
272
272
end
273
273
274
- let ( :test_environment ) { TEST_ENVIRONMENT }
274
+ let ( :test_environment ) { allure_test_environment }
275
275
276
276
let ( :default_module_datastore ) do
277
277
{
You can’t perform that action at this time.
0 commit comments