MCPcopy Create free account
hub / github.com/PacoVK/tapir / getDownloadUrl

Method getDownloadUrl

src/test/java/api/ModulesTest.java:58–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 }
57
58 @Test
59 void getDownloadUrl() throws StorageException {
60 String fakeUrl = String.format("/%s/%s/%s/%s/download",
61 fakeModule.getNamespace(),
62 fakeModule.getName(),
63 fakeModule.getProvider(),
64 fakeModule.getCurrentVersion()
65 );
66 when(storageService.getDownloadUrlForArtifact(any())).thenReturn("https://fakeurl");
67 given().
68 when().get(fakeUrl)
69 .then()
70 .statusCode(204)
71 .header("X-Terraform-Get","https://fakeurl");
72 }
73}

Callers

nothing calls this directly

Calls 5

getProviderMethod · 0.65
getNamespaceMethod · 0.45
getNameMethod · 0.45
getCurrentVersionMethod · 0.45

Tested by

no test coverage detected