Skip to content

Commit 0ab3645

Browse files
committed
Add another header spec
1 parent a8e3ff0 commit 0ab3645

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/lib/metasploit/framework/login_scanner/glassfish_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,11 @@
315315
it { is_expected.to start_with("3") }
316316
end
317317

318+
context 'with non-open-source header' do
319+
let(:server_header) { "Oracle GlassFish Server 3.1.2.3" }
320+
it { is_expected.to start_with("3") }
321+
end
322+
318323
context 'with 2.1 header' do
319324
let(:server_header) { "Sun GlassFish Enterprise Server v2.1" }
320325
it { is_expected.to start_with("2") }

0 commit comments

Comments
 (0)