vm-hetznercloud's Issues
Spec: handle list of types correctly
Currently
Parameter | Type | Description |
---|---|---|
dns_ptr | string, null (required) | Hostname to set as a reverse DNS PTR entry, reset to original value if null |
is translated to
'dns_ptr' => { type => "ARRAY(0x5654e64ad998)" },
Failed tests
Hi, I am testing this module as part of my pullrequest.club assignment (Ubuntu 21.04, perl 5.32.0) :
$ dzil test
[DZ] building distribution under .build/psvYsJnepO for installation
[DZ] beginning to build VM-HetznerCloud
[DZ] guessing dist's main_module is lib/VM/HetznerCloud.pm
[VersionFromModule] dist version 0.01 (from lib/VM/HetznerCloud.pm)
[PodWeaver] can't invoke PodWeaver on bin/get_hcloud_info.pl: there is POD inside string literals
[PodWeaver] [@Default/Name] couldn't find abstract in lib/VM/HetznerCloud/API.pm
[PodWeaver] [@Default/Name] couldn't find abstract in lib/VM/HetznerCloud/Utils.pm
[@Filter/ExtraTests] rewriting author test xt/author/pod-coverage.t
[@Filter/ExtraTests] rewriting author test xt/author/pod-syntax.t
[DZ] writing VM-HetznerCloud in .build/psvYsJnepO
[MarkdownInRoot] overriding README.mkdn in root
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for VM::HetznerCloud
Writing MYMETA.yml and MYMETA.json
cp lib/VM/HetznerCloud/API/Certificates.pm blib/lib/VM/HetznerCloud/API/Certificates.pm
cp lib/VM/HetznerCloud/API/Pricing.pm blib/lib/VM/HetznerCloud/API/Pricing.pm
cp lib/VM/HetznerCloud/API/Images.pm blib/lib/VM/HetznerCloud/API/Images.pm
cp lib/VM/HetznerCloud/Utils.pm blib/lib/VM/HetznerCloud/Utils.pm
cp lib/VM/HetznerCloud/API/Locations.pm blib/lib/VM/HetznerCloud/API/Locations.pm
cp lib/VM/HetznerCloud/API/ServerTypes.pm blib/lib/VM/HetznerCloud/API/ServerTypes.pm
cp lib/VM/HetznerCloud/API/Volumes.pm blib/lib/VM/HetznerCloud/API/Volumes.pm
cp lib/VM/HetznerCloud/API/FloatingIps.pm blib/lib/VM/HetznerCloud/API/FloatingIps.pm
cp lib/VM/HetznerCloud/API/Datacenters.pm blib/lib/VM/HetznerCloud/API/Datacenters.pm
cp lib/VM/HetznerCloud/API/Servers.pm blib/lib/VM/HetznerCloud/API/Servers.pm
cp lib/VM/HetznerCloud/API/Isos.pm blib/lib/VM/HetznerCloud/API/Isos.pm
cp lib/VM/HetznerCloud/API/LoadBalancers.pm blib/lib/VM/HetznerCloud/API/LoadBalancers.pm
cp lib/VM/HetznerCloud/API/Actions.pm blib/lib/VM/HetznerCloud/API/Actions.pm
cp lib/VM/HetznerCloud/API/Networks.pm blib/lib/VM/HetznerCloud/API/Networks.pm
cp lib/VM/HetznerCloud/API/SshKeys.pm blib/lib/VM/HetznerCloud/API/SshKeys.pm
cp lib/VM/HetznerCloud/API/LoadBalancerTypes.pm blib/lib/VM/HetznerCloud/API/LoadBalancerTypes.pm
cp lib/VM/HetznerCloud/API.pm blib/lib/VM/HetznerCloud/API.pm
cp lib/VM/HetznerCloud.pm blib/lib/VM/HetznerCloud.pm
cp bin/get_hcloud_info.pl blib/script/get_hcloud_info.pl
"/home/hakon/perlbrew/perls/perl-5.32.0/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/get_hcloud_info.pl
PERL_DL_NONLAZY=1 "/home/hakon/perlbrew/perls/perl-5.32.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/base/*.t t/server/*.t
t/author-pod-coverage.t .. 1/18
# Failed test 'Pod coverage on VM::HetznerCloud'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud: Couldn't compile 'VM::HetznerCloud' to inspect: Bareword "Str" not allowed while "strict subs" in use at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud.pm line 22.
# Bareword "Str" not allowed while "strict subs" in use at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud.pm line 24.
# Compilation failed in require at (eval 10) line 1.
# Failed test 'Pod coverage on VM::HetznerCloud::API'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# Coverage for VM::HetznerCloud::API is 0.0%, with 1 naked subroutine:
# load_namespace
# Failed test 'Pod coverage on VM::HetznerCloud::API::LoadBalancerTypes'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud::API::LoadBalancerTypes: Couldn't compile 'VM::HetznerCloud::API::LoadBalancerTypes' to inspect: Attempt to reload VM/HetznerCloud.pm aborted.
# Compilation failed in require at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud/API/LoadBalancerTypes.pm line 15.
# Compilation failed in require at (eval 249) line 1.
# Failed test 'Pod coverage on VM::HetznerCloud::API::LoadBalancers'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud::API::LoadBalancers: Couldn't compile 'VM::HetznerCloud::API::LoadBalancers' to inspect: Attempt to reload VM/HetznerCloud.pm aborted.
# Compilation failed in require at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud/API/LoadBalancers.pm line 15.
# Compilation failed in require at (eval 258) line 1.
# Failed test 'Pod coverage on VM::HetznerCloud::API::Pricing'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud::API::Pricing: Couldn't compile 'VM::HetznerCloud::API::Pricing' to inspect: Attempt to reload VM/HetznerCloud.pm aborted.
# Compilation failed in require at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud/API/Pricing.pm line 15.
# Compilation failed in require at (eval 260) line 1.
# Failed test 'Pod coverage on VM::HetznerCloud::API::Images'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud::API::Images: Couldn't compile 'VM::HetznerCloud::API::Images' to inspect: Attempt to reload VM/HetznerCloud.pm aborted.
# Compilation failed in require at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud/API/Images.pm line 15.
# Compilation failed in require at (eval 262) line 1.
# Failed test 'Pod coverage on VM::HetznerCloud::API::Networks'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud::API::Networks: Couldn't compile 'VM::HetznerCloud::API::Networks' to inspect: Attempt to reload VM/HetznerCloud.pm aborted.
# Compilation failed in require at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud/API/Networks.pm line 15.
# Compilation failed in require at (eval 264) line 1.
# Failed test 'Pod coverage on VM::HetznerCloud::API::FloatingIps'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud::API::FloatingIps: Couldn't compile 'VM::HetznerCloud::API::FloatingIps' to inspect: Attempt to reload VM/HetznerCloud.pm aborted.
# Compilation failed in require at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud/API/FloatingIps.pm line 15.
# Compilation failed in require at (eval 266) line 1.
# Failed test 'Pod coverage on VM::HetznerCloud::API::SshKeys'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud::API::SshKeys: Couldn't compile 'VM::HetznerCloud::API::SshKeys' to inspect: Attempt to reload VM/HetznerCloud.pm aborted.
# Compilation failed in require at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud/API/SshKeys.pm line 15.
# Compilation failed in require at (eval 268) line 1.
# Failed test 'Pod coverage on VM::HetznerCloud::API::Locations'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud::API::Locations: Couldn't compile 'VM::HetznerCloud::API::Locations' to inspect: Attempt to reload VM/HetznerCloud.pm aborted.
# Compilation failed in require at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud/API/Locations.pm line 15.
# Compilation failed in require at (eval 270) line 1.
# Failed test 'Pod coverage on VM::HetznerCloud::API::Isos'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud::API::Isos: Couldn't compile 'VM::HetznerCloud::API::Isos' to inspect: Attempt to reload VM/HetznerCloud.pm aborted.
# Compilation failed in require at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud/API/Isos.pm line 15.
# Compilation failed in require at (eval 272) line 1.
# Failed test 'Pod coverage on VM::HetznerCloud::API::Servers'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud::API::Servers: Couldn't compile 'VM::HetznerCloud::API::Servers' to inspect: Attempt to reload VM/HetznerCloud.pm aborted.
# Compilation failed in require at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud/API/Servers.pm line 15.
# Compilation failed in require at (eval 274) line 1.
# Failed test 'Pod coverage on VM::HetznerCloud::API::ServerTypes'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud::API::ServerTypes: Couldn't compile 'VM::HetznerCloud::API::ServerTypes' to inspect: Attempt to reload VM/HetznerCloud.pm aborted.
# Compilation failed in require at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud/API/ServerTypes.pm line 15.
# Compilation failed in require at (eval 276) line 1.
# Failed test 'Pod coverage on VM::HetznerCloud::API::Certificates'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud::API::Certificates: Couldn't compile 'VM::HetznerCloud::API::Certificates' to inspect: Attempt to reload VM/HetznerCloud.pm aborted.
# Compilation failed in require at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud/API/Certificates.pm line 15.
# Compilation failed in require at (eval 278) line 1.
# Failed test 'Pod coverage on VM::HetznerCloud::API::Volumes'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud::API::Volumes: Couldn't compile 'VM::HetznerCloud::API::Volumes' to inspect: Attempt to reload VM/HetznerCloud.pm aborted.
# Compilation failed in require at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud/API/Volumes.pm line 15.
# Compilation failed in require at (eval 280) line 1.
# Failed test 'Pod coverage on VM::HetznerCloud::API::Actions'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud::API::Actions: Couldn't compile 'VM::HetznerCloud::API::Actions' to inspect: Attempt to reload VM/HetznerCloud.pm aborted.
# Compilation failed in require at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud/API/Actions.pm line 15.
# Compilation failed in require at (eval 282) line 1.
# Failed test 'Pod coverage on VM::HetznerCloud::API::Datacenters'
# at /home/hakon/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/Test/Pod/Coverage.pm line 133.
# VM::HetznerCloud::API::Datacenters: Couldn't compile 'VM::HetznerCloud::API::Datacenters' to inspect: Attempt to reload VM/HetznerCloud.pm aborted.
# Compilation failed in require at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud/API/Datacenters.pm line 15.
# Compilation failed in require at (eval 284) line 1.
# Looks like you failed 17 tests of 18.
t/author-pod-coverage.t .. Dubious, test returned 17 (wstat 4352, 0x1100)
Failed 17/18 subtests
t/author-pod-syntax.t .... ok
t/base/attrs.t ........... No subtests run
t/base/base.t ............ 1/?
# Failed test 'use VM::HetznerCloud;'
# at t/base/base.t line 8.
# Tried to use 'VM::HetznerCloud'.
# Error: Bareword "Str" not allowed while "strict subs" in use at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud.pm line 22.
# Bareword "Str" not allowed while "strict subs" in use at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud.pm line 24.
# Compilation failed in require at t/base/base.t line 8.
# BEGIN failed--compilation aborted at t/base/base.t line 8.
# Failed test 'VM::HetznerCloud->can(...)'
# at t/base/base.t line 15.
# VM::HetznerCloud->can('token') failed
# VM::HetznerCloud->can('base_uri') failed
# VM::HetznerCloud->can('host') failed
# VM::HetznerCloud->can('client') failed
Can't locate object method "client" via package "VM::HetznerCloud" at t/base/base.t line 17.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 3.
t/base/base.t ............ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/3 subtests
t/server/base.t .......... Bareword "Str" not allowed while "strict subs" in use at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud.pm line 22.
Bareword "Str" not allowed while "strict subs" in use at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud.pm line 24.
Compilation failed in require at t/server/base.t line 8.
BEGIN failed--compilation aborted at t/server/base.t line 8.
t/server/base.t .......... Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
t/server/get_server.t .... Bareword "Str" not allowed while "strict subs" in use at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud.pm line 22.
Bareword "Str" not allowed while "strict subs" in use at /home/hakon/test/VM-HetznerCloud/.build/psvYsJnepO/blib/lib/VM/HetznerCloud.pm line 24.
Compilation failed in require at t/server/get_server.t line 8.
BEGIN failed--compilation aborted at t/server/get_server.t line 8.
t/server/get_server.t .... Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
Test Summary Report
-------------------
t/author-pod-coverage.t (Wstat: 4352 Tests: 18 Failed: 17)
Failed tests: 1-2, 4-18
Non-zero exit status: 17
t/base/attrs.t (Wstat: 0 Tests: 0 Failed: 0)
Parse errors: No plan found in TAP output
t/base/base.t (Wstat: 65280 Tests: 3 Failed: 2)
Failed tests: 1, 3
Non-zero exit status: 255
Parse errors: No plan found in TAP output
t/server/base.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
t/server/get_server.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
Files=6, Tests=40, 2 wallclock secs ( 0.03 usr 0.00 sys + 1.05 cusr 0.13 csys = 1.21 CPU)
Result: FAIL
Failed 5/6 test programs. 19/40 subtests failed.
make: *** [Makefile:906: test_dynamic] Error 255
error running make test
Spec: Set values of "Choice: ..." for enums
Currently enums appear as
'sort' => { type => "enum[string]" },
while the documentation has a list of choices in the description column:
Parameter | Type | Description |
---|---|---|
sort | enum[string] (optional) | Can be used multiple times. Choices: id id:asc id:desc name name:asc name:desc created created:asc created:desc |
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.