Retab unattended_spec to avoid conflicts
parent
5bab85fcda
commit
120cca8bb3
|
@ -15,36 +15,36 @@ comb = REXML::Document.new('<unattend xmlns="urn:schemas-microsoft-com:unattend"
|
|||
|
||||
describe Rex::Parser::Unattend do
|
||||
|
||||
context "#parse" do
|
||||
it "returns passwords for b64" do
|
||||
results = described_class.parse(b64)
|
||||
results.length.should eq(2)
|
||||
results[0]['password'].should eq(Rex::Text.to_unicode('Temp123'))
|
||||
end
|
||||
context "#parse" do
|
||||
it "returns passwords for b64" do
|
||||
results = described_class.parse(b64)
|
||||
results.length.should eq(2)
|
||||
results[0]['password'].should eq(Rex::Text.to_unicode('Temp123'))
|
||||
end
|
||||
|
||||
it "returns passwords for domain join" do
|
||||
results = described_class.parse(dj)
|
||||
results.length.should eq(1)
|
||||
results[0]['password'].should eq('Password1')
|
||||
end
|
||||
it "returns passwords for domain join" do
|
||||
results = described_class.parse(dj)
|
||||
results.length.should eq(1)
|
||||
results[0]['password'].should eq('Password1')
|
||||
end
|
||||
|
||||
pos_xmls = [dj, b64, comb, std, lng]
|
||||
pos_xmls = [dj, b64, comb, std, lng]
|
||||
|
||||
neg_xmls = [unsecure]
|
||||
neg_xmls = [unsecure]
|
||||
|
||||
it "returns results for all positive examples" do
|
||||
pos_xmls.each do |xml|
|
||||
results = described_class.parse(xml)
|
||||
results.should_not be_empty
|
||||
end
|
||||
end
|
||||
it "returns results for all positive examples" do
|
||||
pos_xmls.each do |xml|
|
||||
results = described_class.parse(xml)
|
||||
results.should_not be_empty
|
||||
end
|
||||
end
|
||||
|
||||
it "returns no results for negative examples" do
|
||||
neg_xmls.each do |xml|
|
||||
results = described_class.parse(xml)
|
||||
results.should be_empty
|
||||
end
|
||||
end
|
||||
end
|
||||
it "returns no results for negative examples" do
|
||||
neg_xmls.each do |xml|
|
||||
results = described_class.parse(xml)
|
||||
results.should be_empty
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue