Merge remote-tracking branch 'origin/benvin/local-ansible' into benvin/virtual-ansible
This commit is contained in:
@@ -124,6 +124,10 @@ func TestAnsiblePublishAndServe(t *testing.T) {
|
||||
t.Fatalf("page 1 = %+v", page)
|
||||
}
|
||||
next := *page.Links.Next
|
||||
if !strings.HasPrefix(next, "/api/v1/local/"+repo+"/") {
|
||||
t.Fatalf("next = %q, want root-relative", next)
|
||||
}
|
||||
next = srv.URL + next
|
||||
page.Links.Next = nil
|
||||
getJSON(t, next, &page)
|
||||
if len(page.Data) != 1 || page.Data[0].Version != "1.0.0" || page.Links.Next != nil {
|
||||
|
||||
Reference in New Issue
Block a user