Skip to content

Commit

Permalink
fix: use kubernetes-client 5.7.2 to fix fabric8io/kubernetes-client#3189
Browse files Browse the repository at this point in the history


Signed-off-by: Andre Dietisheim <[email protected]>
  • Loading branch information
adietish committed Sep 9, 2021
1 parent 77e3504 commit e427b3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ runIdeForUiTests {
}

dependencies {
compile 'io.fabric8:openshift-client:5.0.2'
compile 'io.fabric8:tekton-client:5.0.2'
compile 'io.fabric8:openshift-client:5.7.2'
compile 'io.fabric8:tekton-client:5.7.2'
compile 'com.redhat.devtools.intellij:intellij-common:1.2.3-SNAPSHOT'
compile 'com.redhat.devtools.alizer:alizer-api:0.1.0-SNAPSHOT'
testCompile 'org.mockito:mockito-inline:3.8.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void verifyCreatePipelineAndPipelineRunAndDeleteAll() throws IOException,
List<String> pipelines = tkn.getPipelines(NAMESPACE).stream().map(pp -> pp.getMetadata().getName()).collect(Collectors.toList());;
assertTrue(pipelines.contains(PIPELINE_NAME));
// verify pipelinerun has been created
tkn.getClient(TektonClient.class).v1beta1().pipelineRuns().inNamespace(NAMESPACE)
tkn.getClient(TektonClient.class).v1beta1().pipelineRuns().inNamespace(NAMESPACE).withName(PIPELINE_NAME)
.waitUntilCondition(pipelineRun -> pipelineRun.getMetadata().getName() != null && pipelineRun.getMetadata().getName().equals(PIPELINE_RUN_NAME), 10, TimeUnit.MINUTES);
tkn.cancelPipelineRun(NAMESPACE, PIPELINE_RUN_NAME);
// clean up and verify cleaning succeed
Expand All @@ -93,7 +93,7 @@ public void verifyCreatePipelineAndPipelineRunAndDeleteAll() throws IOException,
}

@Test
public void verifyStartPipelineCreateRuns() throws IOException, InterruptedException {
public void verifyStartPipelineCreateRuns() throws IOException {
String TASK_NAME = "add-task";
String PIPELINE_NAME = "sum-three-pipeline";
String taskConfig = TestUtils.load("start/add-task.yaml");
Expand All @@ -113,9 +113,9 @@ public void verifyStartPipelineCreateRuns() throws IOException, InterruptedExcep
params.put("second", new Input("name2", "string", Input.Kind.PARAMETER, "value2", Optional.empty(), Optional.empty()));
params.put("third", new Input("name3", "string", Input.Kind.PARAMETER, "value3", Optional.empty(), Optional.empty()));
tkn.startPipeline(NAMESPACE, PIPELINE_NAME, params, Collections.emptyMap(), "", Collections.emptyMap(), Collections.emptyMap(), "");
io.fabric8.tekton.pipeline.v1beta1.PipelineRun pRun = tkn.getClient(TektonClient.class).v1beta1().pipelineRuns().inNamespace(NAMESPACE)
io.fabric8.tekton.pipeline.v1beta1.PipelineRun pRun = tkn.getClient(TektonClient.class).v1beta1().pipelineRuns().inNamespace(NAMESPACE).withName(PIPELINE_NAME)
.waitUntilCondition(pipelineRun -> pipelineRun.getMetadata().getName() != null && pipelineRun.getMetadata().getName().startsWith(PIPELINE_NAME), 10, TimeUnit.MINUTES);
tkn.getClient(TektonClient.class).v1beta1().taskRuns().inNamespace(NAMESPACE)
tkn.getClient(TektonClient.class).v1beta1().taskRuns().inNamespace(NAMESPACE).withName(PIPELINE_NAME)
.waitUntilCondition(taskRun -> taskRun.getMetadata().getName() != null && taskRun.getMetadata().getName().startsWith(PIPELINE_NAME), 10, TimeUnit.MINUTES);
tkn.cancelPipelineRun(NAMESPACE, pRun.getMetadata().getName());
// clean up
Expand Down

0 comments on commit e427b3a

Please sign in to comment.