Skip to content

Commit

Permalink
[Backport 4.5.0-7.10] Update test snapshots for 4.5 (#5603)
Browse files Browse the repository at this point in the history
Update test snapshots for 4.5 (#5601)

* Add missing supported versions to the Docker environments (#5584)

feat(environments): add latest versions to Docker environments

- Add Kibana versions: 7.17.7, 7.17.8, 7.17.9 and 7.17.10
- Add OpenSearch: 2.6.0
- Add OpenSearch Dashboards: 2.6.0
- Add Wazuh 4.4.1, 4.4.2, 4.4.3 and 4.4.4

* Update test snapshost

* Update API data to 4.5

* Update branch patterns for GH Actions

---------

Co-authored-by: Antonio <34042064+Desvelao@users.noreply.github.com>
(cherry picked from commit 1ae5f19)

Co-authored-by: Álex Ruiz <alejandro.ruiz.becerra@wazuh.com>
  • Loading branch information
github-actions[bot] and AlexRuiz7 authored Jun 27, 2023
1 parent 9f8d3bf commit 731b97d
Show file tree
Hide file tree
Showing 13 changed files with 332 additions and 281 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
name: ESLint

on:
push:
branches: [ "master", "*.*-*.*", "*.*-*.*-wzd", "[0-9].[0-9]+" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "*.*-*.*", "*.*-*.*-wzd", "[0-9].[0-9]+" ]
branches:
- 'master'
- '[345].[0-9]+' # Minor branches
- '[345].[0-9]+.[0-9]+' # Patch branches
- '[345].[0-9]+.[0-9]+-7.[0-9]+' # Minor branches - Kibana

jobs:
eslint:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ on:
pull_request:
branches:
- 'master'
- '*.*-*.*'
- '*.*-*.*-wzd'
- '[0-9].[0-9]+'
- '[345].[0-9]+' # Minor branches
- '[345].[0-9]+.[0-9]+' # Patch branches
- '[345].[0-9]+.[0-9]+-7.[0-9]+' # Minor branches - Kibana

jobs:
# Run unit tests with Jest
Expand Down
531 changes: 276 additions & 255 deletions common/api-info/endpoints.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion common/services/web_documentation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ test(`Generate a web documentation URL to the base URL using to the plugin short
});

test(`Generate a web documentation URL using a specific version`, () => {
expect(webDocumentationLink('user-manual/agent-enrollment/index.html', '4.4')).toBe(`${DOCUMENTATION_WEB_BASE_URL}/4.4/user-manual/agent-enrollment/index.html`);
expect(webDocumentationLink('user-manual/agent-enrollment/index.html', '4.5')).toBe(`${DOCUMENTATION_WEB_BASE_URL}/4.5/user-manual/agent-enrollment/index.html`);
});
4 changes: 4 additions & 0 deletions docker/kbn-dev/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ elastic_versions=(
'7.17.4'
'7.17.5'
'7.17.6'
'7.17.7'
'7.17.8'
'7.17.9'
'7.17.10'
'8.0.0'
'8.1.0'
'8.2.1'
Expand Down
2 changes: 2 additions & 0 deletions docker/osd-dev/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ os_versions=(
'2.3.0'
'2.4.0'
'2.4.1'
'2.6.0'
)

osd_versions=(
Expand All @@ -18,6 +19,7 @@ osd_versions=(
'2.3.0'
'2.4.0'
'2.4.1'
'2.6.0'
)

usage() {
Expand Down
4 changes: 4 additions & 0 deletions docker/wazuh-4.4-wz/pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

versions=(
"4.4.0"
"4.4.1"
"4.4.2"
"4.4.3"
"4.4.4"
)

wazuh_api_version=(
Expand Down
4 changes: 4 additions & 0 deletions docker/wazuh-4.4-wz/rel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

versions=(
"4.4.0"
"4.4.1"
"4.4.2"
"4.4.3"
"4.4.4"
)

usage() {
Expand Down
7 changes: 7 additions & 0 deletions docker/wazuh-4.x-es/pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ elastic_versions=(
"7.17.4"
"7.17.5"
"7.17.6"
"7.17.7"
"7.17.8"
"7.17.9"
"7.17.10"
)

wazuh_api_version=(
Expand All @@ -28,6 +32,9 @@ wazuh_api_version=(
"4.3.10"
"4.4.0"
"4.4.1"
"4.4.2"
"4.4.3"
"4.4.4"
)

usage() {
Expand Down
8 changes: 8 additions & 0 deletions docker/wazuh-4.x-es/rel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ elastic_versions=(
"7.17.4"
"7.17.5"
"7.17.6"
"7.17.7"
"7.17.8"
"7.17.9"
"7.17.10"
)

wazuh_versions=(
Expand All @@ -27,6 +31,10 @@ wazuh_versions=(
"4.3.9"
"4.3.10"
"4.4.0"
"4.4.1"
"4.4.2"
"4.4.3"
"4.4.4"
)

usage() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ exports[`SubscriptionTab component renders correctly to match the snapshot 1`] =
helpLinks={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand All @@ -76,11 +76,11 @@ exports[`SubscriptionTab component renders correctly to match the snapshot 1`] =
help={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand Down Expand Up @@ -238,11 +238,11 @@ exports[`SubscriptionTab component renders correctly to match the snapshot 1`] =
links={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ exports[`ApiAuthTab component renders correctly to match the snapshot 1`] = `
helpLinks={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand All @@ -86,11 +86,11 @@ exports[`ApiAuthTab component renders correctly to match the snapshot 1`] = `
help={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand Down Expand Up @@ -248,11 +248,11 @@ exports[`ApiAuthTab component renders correctly to match the snapshot 1`] = `
links={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ exports[`GeneralTab component renders correctly to match the snapshot 1`] = `
helpLinks={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand All @@ -78,11 +78,11 @@ exports[`GeneralTab component renders correctly to match the snapshot 1`] = `
help={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand Down Expand Up @@ -258,11 +258,11 @@ exports[`GeneralTab component renders correctly to match the snapshot 1`] = `
links={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand Down

0 comments on commit 731b97d

Please sign in to comment.