Skip to content

Commit

Permalink
#86: Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-sita committed Jul 28, 2024
1 parent 771d2b9 commit 0e31381
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void shouldCreateChildRepository() {
List<Repository> 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);
Expand Down Expand Up @@ -111,7 +111,7 @@ public void shouldCreateChildRepositoryWithTagsFromBothRepos() {
List<Repository> 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);
Expand Down Expand Up @@ -146,7 +146,7 @@ public void shouldCreateChildRepositoryWithoutImagesIfImagesAreNotVisibleOutside
List<Repository> 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();
}

Expand Down

0 comments on commit 0e31381

Please sign in to comment.