swagger-api / swagger-api/swagger-codegen

[Java][Spring-Cloud] Tests for Find Pets by Status/Tag failed

Open
#3,512 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: Java Issue: Bug
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

Tests for findPetsByStatus/Tag failed with the following error messages:

Results :

Tests in error: 
  PetApiTest.testFindPetsByStatus:67 » Decode Could not read document: Can not c...
  PetApiTest.testFindPetsByTags:95 » Decode Could not read document: Can not con...

Tests run: 16, Failures: 0, Errors: 2, Skipped: 1

(Ref: https://s3.amazonaws.com/archive.travis-ci.org/jobs/149416986/log.txt)

Currently these 2 tests cases have been ignored and we want to fix the issue so that we can re-enable these 2 test cases.

Swagger-codegen version

Latest master

Swagger declaration file content or url

modules/swagger-codegen/src/test/resources/2_0/petstore.yaml

Command line used for generation

./bin/spring-cloud-feign-petstore.sh

Steps to reproduce
cd samples/client/petstore/spring-cloud
mvn test

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run mvn test from samples/client/petstore/spring-cloud and inspect the failures in PetApiTest.testFindPetsByStatus and PetApiTest.testFindPetsByTags. Use the generated client from ./bin/spring-cloud-feign-petstore.sh and the petstore.yaml test declaration as context. Done means both tests pass and are no longer ignored.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.