flute

Golang HTTP client testing framework

MIT License

Stars
19

Bot releases are visible (Hide)

flute - v2.0.0 Latest Release

Published by suzuki-shunsuke over 4 years ago

https://github.com/suzuki-shunsuke/flute/compare/v1.0.1...v2.0.0

#47 refactor: change pointer to struct
#48 feat: upgrade go module to v2

Breaking Changes

the signature of structs are changed

Migration

  • import path:
    • github.com/suzuki-shunsuke/flute -> github.com/suzuki-shunsuke/flute/v2
    • github.com/suzuki-shunsuke/flute/flute -> github.com/suzuki-shunsuke/flute/v2/flute
  • Route.Matcher: *Matcher -> Matcher
  • Route.Tester: *Tester -> Tester
  • Route.Response: *Response -> Response
  • Tester.Test: func(*testing.T, *http.Request, *Service, *Route) -> func(*testing.T, *http.Request, Service, Route)
  • &Transport -> Transport
flute - v2.0.0-0

Published by suzuki-shunsuke over 4 years ago

https://github.com/suzuki-shunsuke/flute/compare/v1.0.1...v2.0.0-0

#47 refactor: change pointer to struct
#48 feat: upgrade go module to v2

Breaking Changes

the signature of structs are changed

Migration

  • import path:
    • github.com/suzuki-shunsuke/flute -> github.com/suzuki-shunsuke/flute/v2
    • github.com/suzuki-shunsuke/flute/flute -> github.com/suzuki-shunsuke/flute/v2/flute
  • Route.Matcher: *Matcher -> Matcher
  • Route.Tester: *Tester -> Tester
  • Route.Response: *Response -> Response
  • Tester.Test: func(*testing.T, *http.Request, *Service, *Route) -> func(*testing.T, *http.Request, Service, Route)
  • &Transport -> Transport
flute - v1.0.1

Published by suzuki-shunsuke over 4 years ago

flute - v0.1.0

Published by suzuki-shunsuke over 4 years ago

flute - v0.6.1

Published by suzuki-shunsuke over 4 years ago

https://github.com/suzuki-shunsuke/flute/compare/v0.6.0...v0.6.1

Bug fixes

#29 fix: set the resnpose body to non-nil

flute - v1.0.0

Published by suzuki-shunsuke over 4 years ago

https://github.com/suzuki-shunsuke/flute/compare/v0.7.0...v1.0.0

  • Upgrade dependencies
  • Add linters and refactor: #44
flute - v0.7.0

Published by suzuki-shunsuke over 4 years ago

https://github.com/suzuki-shunsuke/flute/compare/v0.6.1...v0.7.0

Bug fixes

#30 fix: response's status code can't be set

Others

#31

flute - v0.5.1

Published by suzuki-shunsuke over 4 years ago

https://github.com/suzuki-shunsuke/flute/compare/v0.5.0...v0.5.1

Bug fixes

#16 fix: allow matcher and tester is nil

flute - v0.6.0

Published by suzuki-shunsuke over 4 years ago

flute - v0.5.0

Published by suzuki-shunsuke over 4 years ago

https://github.com/suzuki-shunsuke/flute/compare/v0.4.0...v0.5.0

Breaking Changes

#14 feat: change default behavior when no route matches

the default behavior when no route matches the request is changed.

AS-IS:

When no route matches the request and Transport.Transport is nil,
http.DefaultClient.Transport.RoundTrip or http.DefaultTransport.RoundTrip are called.

TO-BE:

When no route matches the request and Transport.Transport is nil,
the test fails and exit and the detail of the request parameters is outputted.

flute - v0.3.1

Published by suzuki-shunsuke over 4 years ago

https://github.com/suzuki-shunsuke/flute/compare/v0.3.0...v0.3.1

Bug fixes

#11 fix: don't call http.DefaultClient.Transport if it is nil

flute - v0.3.0

Published by suzuki-shunsuke over 4 years ago

https://github.com/suzuki-shunsuke/flute/compare/v0.2.0...v0.3.0

Features

#10 feat: support the request query parameters

  • Matcher
    • Query
  • Tester
    • Query
flute - v0.4.0

Published by suzuki-shunsuke over 4 years ago

https://github.com/suzuki-shunsuke/flute/compare/v0.3.1...v0.4.0

Features

#13 feat: add the condition about query and header

  • matcher
    • PartOfHeader
    • PartOfQuery
  • tester
    • PartOfHeader
    • PartOfQuery
flute - v0.2.0

Published by suzuki-shunsuke over 4 years ago

https://github.com/suzuki-shunsuke/flute/compare/v0.1.0...v0.2.0

#8 fix: fix the signature of Tester.Test and add tests

flute - v0.1.0-1

Published by suzuki-shunsuke over 4 years ago

flute - v0.1.0-0

Published by suzuki-shunsuke over 4 years ago