forked from pool/perl-Test-LWP-UserAgent
Compare commits
14 Commits
2b3a9ff98f
...
8c8864ab67
Author | SHA256 | Date | |
---|---|---|---|
8c8864ab67 | |||
00bcd7a32c | |||
b9ea2eaba1 | |||
a8a964a84c | |||
02aa4a1e8e | |||
30172f40d8 | |||
d7cee7046a | |||
|
e2e2a4fe2f | ||
15a5a17b14 | |||
|
c2a7814d24 | ||
94760ac532 | |||
|
3b27d98ec5 | ||
d6785c4ac3 | |||
|
93675c6312 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c5e8ef8cf12b5812df7b03359cc1d7418073f088695fcb9106bbc6d1ad62d237
|
||||
size 46874
|
3
Test-LWP-UserAgent-0.036.tar.gz
Normal file
3
Test-LWP-UserAgent-0.036.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:05327530d346b80a61a6e943fbd749986bdca89211a4eb301c08c2d179314e11
|
||||
size 50654
|
@@ -1,3 +1,52 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 23 20:38:59 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Normalize CPAN version
|
||||
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 17 03:08:40 UTC 2022 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 0.036
|
||||
see /usr/share/doc/packages/perl-Test-LWP-UserAgent/Changes
|
||||
|
||||
0.036 2022-01-16 04:11:38Z
|
||||
- use http rather than https URIs in network tests
|
||||
|
||||
0.035 2022-01-15 03:45:06Z
|
||||
- fix network test that failed due to a broken redirect service
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 7 03:12:24 UTC 2020 - <timueller+perl@suse.de>
|
||||
|
||||
- updated to 0.034
|
||||
see /usr/share/doc/packages/perl-Test-LWP-UserAgent/Changes
|
||||
|
||||
0.034 2020-03-06 04:22:25Z
|
||||
- fix t/10-request-args-network.t under EXTENDED_TESTING=1 where the
|
||||
test URL was returning random content for each request and
|
||||
therefore failing a comparison check
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 18 06:48:29 UTC 2017 - coolo@suse.com
|
||||
|
||||
- updated to 0.033
|
||||
see /usr/share/doc/packages/perl-Test-LWP-UserAgent/Changes
|
||||
|
||||
0.033 2017-05-18 00:46:41Z
|
||||
- fix network tests that failed from 0.032, due to inadequate author
|
||||
testing before release
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 4 06:48:41 UTC 2017 - coolo@suse.com
|
||||
|
||||
- updated to 0.032
|
||||
see /usr/share/doc/packages/perl-Test-LWP-UserAgent/Changes
|
||||
|
||||
0.032 2017-05-03 22:57:18Z
|
||||
- convert network tests to using httpbin.org, to not rely on
|
||||
iana.org not changing their content
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 2 07:17:00 UTC 2016 - coolo@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Test-LWP-UserAgent
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,32 +12,31 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Test-LWP-UserAgent
|
||||
Version: 0.031
|
||||
Release: 0
|
||||
#Upstream: Artistic-1.0 or GPL-1.0+
|
||||
%define cpan_name Test-LWP-UserAgent
|
||||
Name: perl-Test-LWP-UserAgent
|
||||
Version: 0.36.0
|
||||
Release: 0
|
||||
# 0.036 -> normalize -> 0.36.0
|
||||
%define cpan_version 0.036
|
||||
#Upstream: Artistic-1.0 or GPL-1.0-or-later
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: LWP::UserAgent suitable for simulating and testing network calls
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Test-LWP-UserAgent/
|
||||
Source0: http://www.cpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.120620
|
||||
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.121
|
||||
BuildRequires: perl(HTTP::Date)
|
||||
BuildRequires: perl(HTTP::Request)
|
||||
BuildRequires: perl(HTTP::Request::Common)
|
||||
BuildRequires: perl(HTTP::Response)
|
||||
BuildRequires: perl(HTTP::Status)
|
||||
BuildRequires: perl(IO::Socket::IP) >= 0.31
|
||||
BuildRequires: perl(LWP::UserAgent)
|
||||
BuildRequires: perl(Module::Metadata)
|
||||
BuildRequires: perl(Path::Tiny)
|
||||
@@ -47,29 +46,30 @@ BuildRequires: perl(Test::Fatal)
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
BuildRequires: perl(Test::Needs)
|
||||
BuildRequires: perl(Test::RequiresInternet)
|
||||
BuildRequires: perl(Test::Warnings) >= 0.009
|
||||
BuildRequires: perl(Test::Warnings) >= 0.9
|
||||
BuildRequires: perl(Try::Tiny)
|
||||
BuildRequires: perl(URI) >= 1.62
|
||||
BuildRequires: perl(namespace::clean) >= 0.19
|
||||
BuildRequires: perl(URI) >= 1.620
|
||||
BuildRequires: perl(namespace::clean) >= 0.190
|
||||
BuildRequires: perl(parent)
|
||||
Requires: perl(HTTP::Date)
|
||||
Requires: perl(HTTP::Request)
|
||||
Requires: perl(HTTP::Response)
|
||||
Requires: perl(HTTP::Status)
|
||||
Requires: perl(IO::Socket::IP) >= 0.31
|
||||
Requires: perl(LWP::UserAgent)
|
||||
Requires: perl(Safe::Isa)
|
||||
Requires: perl(Try::Tiny)
|
||||
Requires: perl(URI) >= 1.62
|
||||
Requires: perl(namespace::clean) >= 0.19
|
||||
Requires: perl(URI) >= 1.620
|
||||
Requires: perl(namespace::clean) >= 0.190
|
||||
Requires: perl(parent)
|
||||
Provides: perl(Test::LWP::UserAgent) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
This module is a subclass of LWP::UserAgent which overrides a few key
|
||||
low-level methods that are concerned with actually sending your request
|
||||
over the network, allowing an interception of that request and simulating a
|
||||
particular response. This greatly facilitates testing of client networking
|
||||
particular response. This greatly facilitates testing of networking client
|
||||
code where the server follows a known protocol.
|
||||
|
||||
The synopsis describes a typical case where you want to test how your
|
||||
@@ -84,7 +84,7 @@ hook into this module; see the documentation for the individual interface
|
||||
methods.
|
||||
|
||||
You can use a PSGI app to handle the requests - see _examples/call_psgi.t_
|
||||
in this dist, and also register_psgi below.
|
||||
in this distribution, and also register_psgi below.
|
||||
|
||||
OR, you can route some or all requests through the network as normal, but
|
||||
still gain the hooks provided by this class to test what was sent and
|
||||
@@ -115,14 +115,14 @@ or:
|
||||
);
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
@@ -130,7 +130,7 @@ or:
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes CONTRIBUTING docs examples LICENCE README
|
||||
%doc Changes CONTRIBUTING docs examples README
|
||||
%license LICENCE
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user