Search in sources :

Example 1 with AssertSlice

use of com.artipie.http.hm.AssertSlice in project artipie by artipie.

the class DockerRoutingSliceTest method revertsDockerRequest.

@Test
void revertsDockerRequest() throws Exception {
    final String path = "/v2/one/two";
    verify(new DockerRoutingSlice(new Settings.Fake(), new DockerRoutingSlice.Reverted(new AssertSlice(new RqLineHasUri(new RqLineHasUri.HasPath(path))))), path);
}
Also used : AssertSlice(com.artipie.http.hm.AssertSlice) RqLineHasUri(com.artipie.http.hm.RqLineHasUri) Test(org.junit.jupiter.api.Test)

Example 2 with AssertSlice

use of com.artipie.http.hm.AssertSlice in project artipie by artipie.

the class DockerRoutingSliceTest method ignoresNonDockerRequests.

@Test
void ignoresNonDockerRequests() throws Exception {
    final String path = "/repo/name";
    verify(new DockerRoutingSlice(new Settings.Fake(), new AssertSlice(new RqLineHasUri(new RqLineHasUri.HasPath(path)))), path);
}
Also used : AssertSlice(com.artipie.http.hm.AssertSlice) RqLineHasUri(com.artipie.http.hm.RqLineHasUri) Test(org.junit.jupiter.api.Test)

Aggregations

AssertSlice (com.artipie.http.hm.AssertSlice)2 RqLineHasUri (com.artipie.http.hm.RqLineHasUri)2 Test (org.junit.jupiter.api.Test)2