We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfb7916 commit 3d8c603Copy full SHA for 3d8c603
src/test/java/cd/go/contrib/elasticagent/executors/AgentStatusReportExecutorTest.java
@@ -22,7 +22,9 @@
22
23
import java.util.ArrayList;
24
import java.util.Arrays;
25
+import java.util.Collections;
26
27
+import static cd.go.contrib.elasticagent.Constants.JOB_IDENTIFIER_LABEL_KEY;
28
import static org.hamcrest.Matchers.is;
29
import static org.junit.Assert.assertThat;
30
import static org.mockito.ArgumentMatchers.any;
@@ -167,6 +169,7 @@ private Pod creatdDefaultPod() {
167
169
PodStatus status = new PodStatus();
168
170
status.setContainerStatuses(Arrays.asList(new ContainerStatus()));
171
pod.setStatus(status);
172
+ pod.getMetadata().setAnnotations(Collections.singletonMap(JOB_IDENTIFIER_LABEL_KEY, "{}"));
173
return pod;
174
}
175
0 commit comments