Skip to content

Commit

Permalink
feat (jkube-kit/resource) : Adds condition,alias properties to HelmDe…
Browse files Browse the repository at this point in the history
…pendency
  • Loading branch information
bryopsida committed Aug 27, 2023
1 parent f7b25ad commit 43e5d82
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,10 @@ public class HelmDependency {
@JsonProperty
private String repository;

@JsonProperty
private String condition;

@JsonProperty
private String alias;

}
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ void equalsAndHashCodeTest() {
.name("name")
.repository("repository")
.version("version")
.alias("alias")
.condition("is.enabled")
.build();

HelmDependency sameHelmDependency = HelmDependency
.builder()
.name("name")
.alias("alias")
.condition("is.enabled")
.repository("repository")
.version("version")
.build();
Expand All @@ -59,6 +63,7 @@ void emptyConstructorTest() {
assertThat(helmDependency)
.hasFieldOrPropertyWithValue("name", "name")
.hasFieldOrPropertyWithValue("repository", "repository")
.hasFieldOrPropertyWithValue("version", "version");
.hasFieldOrPropertyWithValue("version", "version")
.hasNoNullFieldsOrPropertiesExcept("alias", "condition");
}
}

0 comments on commit 43e5d82

Please sign in to comment.