Skip to content

Commit 4c345f5

Browse files
committed
Add missing test file
An example test script, that Jenkins will trigger, as a pipeline test action.
1 parent f704e18 commit 4c345f5

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Binary file not shown.

test/jenkins_sample_test.rb

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env ruby
2+
3+
require 'net/http'
4+
require 'minitest/autorun'
5+
require 'socket'
6+
7+
class JenkinsSampleTest < MiniTest::Unit::TestCase
8+
def setup
9+
@webpage = Net::HTTP.get(URI("http://#{ENV['TEST_IP_ADDRESS']}:8000/index.html"))
10+
end
11+
12+
def test_congratulations
13+
assert(@webpage =~ /Congratulations!/)
14+
end
15+
end

0 commit comments

Comments
 (0)