Skip to content

Commit

Permalink
Merge pull request #4375 from wazuh/dev-4374-update-migration-tool-de…
Browse files Browse the repository at this point in the history
…lta-file-schema

Update delta file schema for the migration tool tests
  • Loading branch information
Dwordcito authored Aug 3, 2023
2 parents b184c9e + d5755ef commit b262f03
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Release report: TBD
### Changed

- Update _wazuh_db_ schema database version ([#4353](https://github.com/wazuh/wazuh-qa/pull/4353)) \- (Tests)
- Update the JSON schema with the required fields for the output content of the migration tool ([#4375](https://github.com/wazuh/wazuh-qa/pull/4375)) \- (Tests)

## [4.7.0] - TBD

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,22 @@
"enum": ["insert", "update", "delete"]
}
},
"required": [ "cve_id", "data_blob", "data_hash", "operation"]
"anyOf": [
{
"properties": {
"operation": {
"enum": ["insert", "update"]
}
},
"required": ["cve_id", "data_hash", "operation", "data_blob"]
},
{
"properties": {
"operation": {
"const": "delete"
}
},
"required": ["cve_id", "data_hash", "operation"]
}
]
}

0 comments on commit b262f03

Please sign in to comment.