Skip to content

Commit

Permalink
Fix python test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshms committed Nov 10, 2023
1 parent de835ba commit 05ee9da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 0 additions & 6 deletions ingestion/tests/integration/ometa/test_ometa_glossary.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,12 +528,6 @@ def test_patch_glossary_term_references(self):
self.assertIsNotNone(res)
self.assertEqual(0, len(res.references))

# Remove reference when list is empty - fails
res = self.metadata.patch_glossary_term_references(
entity_id=self.glossary_term_1.id,
)
self.assertIsNone(res)

# Remove reference when there are many
self.metadata.patch_glossary_term_references(
entity_id=self.glossary_term_1.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,9 @@ private void updateDescription() {
private void updateDeleted() {
if (operation.isPut() || operation.isPatch()) {
// Update operation can't set delete attributed to true. This can only be done as part of delete operation
if (!Objects.equals(updated.getDeleted(), original.getDeleted()) && Boolean.TRUE.equals(updated.getDeleted())) {
if (!Objects.equals(updated.getDeleted(), original.getDeleted())
&& Boolean.TRUE.equals(updated.getDeleted())
&& changeDescription != null) {
throw new IllegalArgumentException(CatalogExceptionMessage.readOnlyAttribute(entityType, FIELD_DELETED));
}
// PUT or PATCH is restoring the soft-deleted entity
Expand Down

0 comments on commit 05ee9da

Please sign in to comment.