Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #14921
Closed
Open
Issue created Mar 10, 2023 by Marc0@hidden-primary-net4 of 6 checklist items completed4/6 checklist items

[BUG][Perl] Tests are failing

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

The perl tests in samples/client/petstore/perl fail for a trivial reason, e.g.

$ prove -l t/AdditionalPropertiesClassTest.t
t/AdditionalPropertiesClassTest.t .. 1/2 # Looks like you planned 2 tests but ran 1.
t/AdditionalPropertiesClassTest.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/2 subtests 

Test Summary Report
-------------------
t/AdditionalPropertiesClassTest.t (Wstat: 65280 Tests: 1 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 2 tests but ran 1.
Files=1, Tests=1,  0 wallclock secs ( 0.01 usr  0.00 sys +  0.13 cusr  0.01 csys =  0.15 CPU)
Result: FAIL
openapi-generator version

I can reproduce it with the current HEAD 140d941d.

OpenAPI declaration file content or url
Generation Details

No generation steps need to be taken, only the repo needs to be cloned.

Steps to reproduce
cd samples/client/petstore/perl && prove -l
Related issues/PRs

n/a

Suggest a fix

I'd be happy to take care for this issue and submit a small template fix to make the tests pass.

Assignee
Assign to
Time tracking