Skip to content

Commit

Permalink
fix: replace AssertJ's deprecated asList() DSL method in OCIManifestT…
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivamChavan01 authored Oct 10, 2024
1 parent 52f1170 commit 02c8e51
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ private void assertOCIManifest(OCIManifest manifest) {
.hasFieldOrPropertyWithValue("config.digest", "sha256:fe8b2f27ce12b302342d4a5da2b2945ab869c7acb9e1b718c5426d91ce38cfc4")
.hasFieldOrPropertyWithValue("config.size", 312L)
.extracting(OCIManifest::getLayers)
.asList()
.singleElement(InstanceOfAssertFactories.type(OCIManifestLayer.class))
.asInstanceOf(InstanceOfAssertFactories.list(OCIManifestLayer.class))
.singleElement()
.hasFieldOrPropertyWithValue("size", 9272L)
.hasFieldOrPropertyWithValue("mediaType", "application/vnd.cncf.helm.chart.content.v1.tar+gzip")
.hasFieldOrPropertyWithValue("digest", "sha256:fe8b2f27ce12b302342d4a5da2b2945ab869c7acb9e1b718c5426d91ce38cfc4");
Expand Down

0 comments on commit 02c8e51

Please sign in to comment.