From 0e313816a4f362a903ede6675d928903740cb48b Mon Sep 17 00:00:00 2001 From: Sita Date: Sun, 28 Jul 2024 23:58:16 +0200 Subject: [PATCH] #86: Fix broken test --- .../tasks/createchild/CreateChildRepositoryTaskTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/test/java/place/sita/labelle/core/automation/tasks/createchild/CreateChildRepositoryTaskTest.java b/core/src/test/java/place/sita/labelle/core/automation/tasks/createchild/CreateChildRepositoryTaskTest.java index 13c5fc7..e07d9cc 100644 --- a/core/src/test/java/place/sita/labelle/core/automation/tasks/createchild/CreateChildRepositoryTaskTest.java +++ b/core/src/test/java/place/sita/labelle/core/automation/tasks/createchild/CreateChildRepositoryTaskTest.java @@ -71,7 +71,7 @@ public void shouldCreateChildRepository() { List repos = repositoryService.getRepositories(); assertThat(repos).hasSize(2); assertThat(repos.stream().map(Repository::name).toList()).contains("New repo name"); - var images = (inRepositoryService.images().images()).process().filterByRepository(results.result()).getAll(); + var images = inRepositoryService.images().images().process().filterByRepository(results.result()).getAll(); assertThat(images).hasSize(1); var tags = inRepositoryService.getTags(images.get(0).id()); assertThat(tags).hasSize(1); @@ -111,7 +111,7 @@ public void shouldCreateChildRepositoryWithTagsFromBothRepos() { List repos = repositoryService.getRepositories(); assertThat(repos).hasSize(3); assertThat(repos.stream().map(Repository::name).toList()).contains("New repo name"); - var images = (inRepositoryService.images().images()).process().filterByRepository(results.result()).getAll(); + var images = inRepositoryService.images().images().process().filterByRepository(results.result()).getAll(); assertThat(images).hasSize(1); var tags = inRepositoryService.getTags(images.get(0).id()); assertThat(tags).hasSize(2); @@ -146,7 +146,7 @@ public void shouldCreateChildRepositoryWithoutImagesIfImagesAreNotVisibleOutside List repos = repositoryService.getRepositories(); assertThat(repos).hasSize(2); assertThat(repos.stream().map(Repository::name).toList()).contains("New repo name"); - var images = (inRepositoryService.images().images()).getAll(); + var images = inRepositoryService.images().images().process().filterByRepository(results.result()).getAll(); assertThat(images).isEmpty(); }