SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Test-Rest rpm build for : openSUSE Tumbleweed. For other distributions click perl-Test-Rest.

Name : perl-Test-Rest
Version : 0.03 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : 6.66 Date : 2024-08-05 20:43:55
Group : Development/Libraries/Perl Source RPM : perl-Test-Rest-0.03-6.66.src.rpm
Size : 0.02 MB
Packager : (none)
Summary : Declarative test framework for RESTful web services
Description :
The idea here is to write tests against REST services in a data-driven,
declarative way.

Here is an example test description file:

< tests>
< get>user/login< /get>
< submit_form>
< with_fields>
< name>myname< /name>
< pass>mypass< /pass>
< /with_fields>
< /submit_form>
< is the=\"{response.code}\">200< /is>
< set name=\"random\" value=\"{test.random}\"/>
< set name=\"mail\" value=\"test+{random}AATTexample.com\"/>
< set name=\"pass\" value=\"{random}\"/>
< post to=\"rest/user\">
< Content>
< user>
< firstname>Testy< /firstname>
< lastname>McTester< /lastname>
< mail>{mail}< /mail>
< pass>{pass}< /pass>
< /user>
< /Content>
< /post>
< is the=\"{response.code}\">200< /is>
< set name=\"uid\" value=\"$(id)\"/>
< diag>Created {uid}< /diag>
< /tests>

Things to note:

* *

Each child of the top-level element represents a command or test, and
they are executed sequentially by Test::Rest.

* *

Methods like \'get\', \'post\', and \'submit_form\' map to the equivalent
methods of the WWW::Mechanize manpage or the LWP::UserAgent manpage -
they result in a request being made to the server.

* *

The default user agent is the WWW::Mechanize manpage. Cookies/sessions
are stored between requests, and are kept for current test file.

* *

The web service URLs given are relative paths and are automatically
prefixed by the \'base\' parameter given to new().

* *

Template::Toolkit is used to expand template variables. The template
stash (variable hash) persists until the end of the test file. The \'set\'
command can be used to add variables to the stash.

* *

The most recent the HTTP::Response manpage is stored in the stash via the
key \'response\'. If the response type is an XML document, the response
document is automatically parsed and available to future tests/commands
via XPath, and via the stash key \'document\'. The whole history of
responses and documents are available via the stash keys \'responses\' and
\'documents\' respectively.

* *

A jQuery/XPath-like template variable syntax is available for referencing
parts of the last received document. E.g. to see the href of the first
anchor tag, you would use $(a[1]/AATThref)

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/openSUSE_Tumbleweed/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Test-Rest-0.03-6.66.noarch.rpm
     

Provides :
perl(Test::Rest)
perl(Test::Rest::Commands)
perl(Test::Rest::Context)
perl-Test-Rest

Requires :
perl(:MODULE_COMPAT_5.40.0)
perl(Class::Accessor) >= 0.31
perl(LWP::UserAgent) >= 5.834
perl(String::Random) >= 0.22
perl(Template) >= 2.22
perl(URI) >= 1.40
perl(WWW::Mechanize) >= 1.60
perl(XML::LibXML) >= 1.70
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.40.0/Test
/usr/lib/perl5/vendor_perl/5.40.0/Test/Rest
/usr/lib/perl5/vendor_perl/5.40.0/Test/Rest.pm
/usr/lib/perl5/vendor_perl/5.40.0/Test/Rest/Commands.pm
/usr/lib/perl5/vendor_perl/5.40.0/Test/Rest/Context.pm
/usr/share/doc/packages/perl-Test-Rest
/usr/share/doc/packages/perl-Test-Rest/Changes
/usr/share/doc/packages/perl-Test-Rest/README
/usr/share/man/man3/Test::Rest.3pm.gz

 
ICM