File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -115,4 +115,24 @@ Feature: `msfconsole` `database.yml`
115
115
When I run `msfconsole --environment test` interactively
116
116
And I wait for stdout to contain "Free Metasploit Pro trial: http://r-7.co/trymsp"
117
117
And I type "exit"
118
- Then the output should contain "user_metasploit_framework_test"
118
+ Then the output should contain "user_metasploit_framework_test"
119
+
120
+ Scenario : Without --yaml, MSF_DATABASE_CONFIG or ~/.msf4/database.yml, project "database.yml" wins
121
+ Given I unset the environment variables:
122
+ | variable |
123
+ | MSF_DATABASE_CONFIG |
124
+ And a directory named "home"
125
+ And I cd to "home"
126
+ And a mocked home directory
127
+ And I cd to "../.."
128
+ And the project "database.yml" exists with:
129
+ """
130
+ test:
131
+ adapter: postgresql
132
+ database: project_metasploit_framework_test
133
+ username: project_metasploit_framework_test
134
+ """
135
+ When I run `msfconsole --environment test` interactively
136
+ And I wait for stdout to contain "Free Metasploit Pro trial: http://r-7.co/trymsp"
137
+ And I type "exit"
138
+ Then the output should contain "project_metasploit_framework_test"
You can’t perform that action at this time.
0 commit comments