Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import java.io.PrintStream;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import jenkins.tasks.SimpleBuildWrapper;
import org.junit.Rule;
Expand Down Expand Up @@ -43,7 +42,6 @@ public void testWithNonExistingPath() throws IOException, InterruptedException {
PrintStream logger = new PrintStream(baos);
SimpleBuildWrapper.Context context = null;
Run<?, ?> build = mock(Build.class);
when(build.getParent()).thenReturn(null);
EnvVars envVars = mock(EnvVars.class);
when(envVars.expand(path)).thenReturn(path);

Expand Down Expand Up @@ -75,7 +73,6 @@ private List<VaultSecret> standardSecrets(String path) {
private LogicalResponse getNotFoundResponse() {
LogicalResponse resp = mock(LogicalResponse.class);
RestResponse rest = mock(RestResponse.class);
when(resp.getData()).thenReturn(new HashMap<>());
when(resp.getRestResponse()).thenReturn(rest);
when(rest.getStatus()).thenReturn(404);
return resp;
Expand Down