Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test snapshots for 4.5 #5601

Merged
merged 4 commits into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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