Mailinglist Archive: opensuse-buildservice (50 mails)

< Previous Next >
API test tool
  • From: Cornelius Schumacher <cschum@xxxxxxx>
  • Date: Tue, 21 Mar 2006 10:51:44 +0100
  • Message-id: <200603211051.44211.cschum@xxxxxxx>
I have checked in a tool for testing that the API conforms to the
specification. It's called rest_test and it's in trunk/buildservice/docs/api.
Instructions how to use it are in
trunk/buildservice/docs/api/README.rest_test. For testing the openSUSE API
you call it with "rest_test api.txt". You have to provide a file
"api.txt.test.config" with some login information (details are in the
README), otherwise all tests will fail with a 401.

The currently deployed API doesn't pass all tests, mainly because the response
to PUT operations doesn't adhere to the specified schema. This is fixed in
SVN and will become active with the next deploy of the frontend. If you parse
the XML returned as result of the PUT requests you probably will have to
adapt the client to the correct schema.

--
Cornelius Schumacher <cschum@xxxxxxx>

< Previous Next >
This Thread
  • No further messages