Skip to content

Commit 33bb5e0

Browse files
authored
[Tests] Update snapshots (#222)
* [Tests] Update snapshots Updated snapshots using yarn test:jest -u. Unit tests do not pass fully in this commit. But this will setup the work for fixing unit tests. Signed-off-by: Kawika Avilla <kavilla414@gmail.com> * [Test] Update config fixture in OSD config Elasticsearch reference was missed while updating a config. Updated the config and re-ran the snapshot update command. Signed-off-by: Kawika Avilla <kavilla414@gmail.com> * [Tests] Update missing kibana and elastic references While generating more snapshots more Kibana and Elastic references were caught. Updated the source code and re-ran yarn test:jest -u. Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
1 parent 0cbb802 commit 33bb5e0

File tree

105 files changed

+1085
-1108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+1085
-1108
lines changed

packages/osd-apm-config-loader/src/utils/__snapshots__/read_config.test.ts.snap

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
foo: 1
22
bar: "pre-${OSD_ENV_VAR1}-mid-${OSD_ENV_VAR2}-post"
33

4-
elasticsearch:
4+
opensearch:
55
requestHeadersWhitelist: ["${OSD_ENV_VAR1}", "${OSD_ENV_VAR2}"]

packages/osd-config/src/__snapshots__/env.test.ts.snap

+1-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/osd-config/src/legacy/__snapshots__/legacy_object_to_config_adapter.test.ts.snap

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/osd-config/src/raw/__snapshots__/read_config.test.ts.snap

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/osd-opensearch/src/utils/__snapshots__/parse_opensearch_log.test.js.snap

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/osd-opensearch/src/utils/native_realm.test.js

+39-39
Original file line numberDiff line numberDiff line change
@@ -142,45 +142,45 @@ describe('setPasswords', () => {
142142
});
143143

144144
expect(mockClient.security.changePassword.mock.calls).toMatchInlineSnapshot(`
145-
Array [
146-
Array [
147-
Object {
148-
"body": Object {
149-
"password": "bar",
150-
},
151-
"refresh": "wait_for",
152-
"username": "opensearch_dashboards_system",
153-
},
154-
],
155-
Array [
156-
Object {
157-
"body": Object {
158-
"password": "changeme",
159-
},
160-
"refresh": "wait_for",
161-
"username": "logstash_system",
162-
},
163-
],
164-
Array [
165-
Object {
166-
"body": Object {
167-
"password": "changeme",
168-
},
169-
"refresh": "wait_for",
170-
"username": "opensearch",
171-
},
172-
],
173-
Array [
174-
Object {
175-
"body": Object {
176-
"password": "changeme",
177-
},
178-
"refresh": "wait_for",
179-
"username": "beats_system",
180-
},
181-
],
182-
]
183-
`);
145+
Array [
146+
Array [
147+
Object {
148+
"body": Object {
149+
"password": "bar",
150+
},
151+
"refresh": "wait_for",
152+
"username": "opensearch_dashboards_system",
153+
},
154+
],
155+
Array [
156+
Object {
157+
"body": Object {
158+
"password": undefined,
159+
},
160+
"refresh": "wait_for",
161+
"username": "logstash_system",
162+
},
163+
],
164+
Array [
165+
Object {
166+
"body": Object {
167+
"password": undefined,
168+
},
169+
"refresh": "wait_for",
170+
"username": "opensearch",
171+
},
172+
],
173+
Array [
174+
Object {
175+
"body": Object {
176+
"password": undefined,
177+
},
178+
"refresh": "wait_for",
179+
"username": "beats_system",
180+
},
181+
],
182+
]
183+
`);
184184
});
185185
});
186186

packages/osd-pm/src/__snapshots__/run.test.ts.snap

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/osd-pm/src/utils/__snapshots__/link_project_executables.test.ts.snap

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/osd-pm/src/utils/__snapshots__/project.test.ts.snap

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/osd-pm/src/utils/__snapshots__/projects.test.ts.snap

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)