Skip to content

Commit

Permalink
Add TODO for when Nessie lib will be >= 0.61
Browse files Browse the repository at this point in the history
  • Loading branch information
adutra committed Aug 1, 2023
1 parent 6f4a1bc commit f1392f7
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@ additionalRefName, defaultBranch(), currentHash))
"ASSIGN BRANCH %s TO %s AT %s IN nessie",
additionalRefName, defaultBranch(), invalidHash))
.isInstanceOf(IllegalArgumentException.class)
// TODO enable this when Nessie lib will be >= 0.61
// .hasMessage(
// Validation.HASH_OR_RELATIVE_COMMIT_SPEC_MESSAGE
// + " - but was: "
// + invalidHash)
.hasMessageContaining(Validation.HASH_RULE)
.hasMessageContaining(" - but was: " + invalidHash);
assertThatThrownBy(
Expand Down Expand Up @@ -319,6 +324,11 @@ additionalRefName, defaultBranch(), currentHash))
"ASSIGN TAG %s TO %s AT %s IN nessie",
additionalRefName, defaultBranch(), invalidHash))
.isInstanceOf(IllegalArgumentException.class)
// TODO enable this when Nessie lib will be >= 0.61
// .hasMessage(
// Validation.HASH_OR_RELATIVE_COMMIT_SPEC_MESSAGE
// + " - but was: "
// + invalidHash)
.hasMessageContaining(Validation.HASH_RULE)
.hasMessageContaining(" - but was: " + invalidHash);
assertThatThrownBy(
Expand Down

0 comments on commit f1392f7

Please sign in to comment.