From: Cornelius Schumacher
---
docs/api/api.txt.test | 2 +-
docs/api/rest_test.rb | 6 ++++++
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/docs/api/api.txt.test b/docs/api/api.txt.test
index 0bba397..09b8fb5 100644
--- a/docs/api/api.txt.test
+++ b/docs/api/api.txt.test
@@ -4,7 +4,7 @@
@arg_platform="sl10.0"
@arg_arch="i586"
@arg_userid="Admin"
-@arg_rpmname="plutimikation.rpm"
+@arg_rpmname="plutimikation-0.1-25.1.i586.rpm"
request "GET /about"
request "GET /source/"
diff --git a/docs/api/rest_test.rb b/docs/api/rest_test.rb
index 11aca68..c551fd8 100644
--- a/docs/api/rest_test.rb
+++ b/docs/api/rest_test.rb
@@ -116,6 +116,12 @@ class TestContext
http.request( req )
end
end
+ elsif( request.verb == "POST" )
+ req = Net::HTTP::Post.new( path )
+ req.basic_auth( @user, @password )
+ response = Net::HTTP.start( host ) do |http|
+ http.request( req, "" )
+ end
else
STDERR.puts " Test of method '#{request.verb}' not supported yet."
unsupported
--
1.7.7
--
To unsubscribe, e-mail: obs-commits+unsubscribe@opensuse.org
To contact the owner, e-mail: obs-commits+owner@opensuse.org