()
| 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 | } |
nothing calls this directly
no test coverage detected