mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
- development env: base on debian trixie with go1.24 - lint: run with default config - fix lint errors - fix unit tests - fix system test
19 lines
382 B
Go
19 lines
382 B
Go
package api
|
|
|
|
import (
|
|
. "gopkg.in/check.v1"
|
|
)
|
|
|
|
type PackagesSuite struct {
|
|
APISuite
|
|
}
|
|
|
|
var _ = Suite(&PackagesSuite{})
|
|
|
|
func (s *PackagesSuite) TestPackagesGetMaximumVersion(c *C) {
|
|
response, err := s.HTTPRequest("GET", "/api/repos/dummy/packages?maximumVersion=1", nil)
|
|
c.Assert(err, IsNil)
|
|
c.Check(response.Code, Equals, 200)
|
|
c.Check(response.Body.String(), Equals, "[]")
|
|
}
|