Also test for nonmatching passwords
parent
1410477fe9
commit
63c3832d7d
|
@ -141,6 +141,7 @@ describe Msf::Ui::Console::CommandDispatcher::Db do
|
|||
end
|
||||
end
|
||||
context "when the credential is absent" do
|
||||
context "due to a nonmatching username" do
|
||||
it "should return a blank set" do
|
||||
db.cmd_creds("-u", nomatch_username)
|
||||
@output.should =~ [
|
||||
|
@ -152,6 +153,19 @@ describe Msf::Ui::Console::CommandDispatcher::Db do
|
|||
]
|
||||
end
|
||||
end
|
||||
context "due to a nonmatching password" do
|
||||
it "should return a blank set" do
|
||||
db.cmd_creds("-P", nomatch_password)
|
||||
@output.should =~ [
|
||||
"===========",
|
||||
"Credentials",
|
||||
"",
|
||||
"---- ------- ------ ------- ----- ------------",
|
||||
"host service public private realm private_type"
|
||||
]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe "add-password" do
|
||||
|
|
Loading…
Reference in New Issue