Skip to content

Commit

Permalink
[Tests] Update snapshots (#222)
Browse files Browse the repository at this point in the history
* [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 <[email protected]>

* [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 <[email protected]>

* [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 <[email protected]>
  • Loading branch information
kavilla authored Mar 24, 2021
1 parent 0cbb802 commit 33bb5e0
Show file tree
Hide file tree
Showing 105 changed files with 1,085 additions and 1,108 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/osd-config/__fixtures__/en_var_ref_config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
foo: 1
bar: "pre-${OSD_ENV_VAR1}-mid-${OSD_ENV_VAR2}-post"

elasticsearch:
opensearch:
requestHeadersWhitelist: ["${OSD_ENV_VAR1}", "${OSD_ENV_VAR2}"]
8 changes: 1 addition & 7 deletions packages/osd-config/src/__snapshots__/env.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 39 additions & 39 deletions packages/osd-opensearch/src/utils/native_realm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,45 +142,45 @@ describe('setPasswords', () => {
});

expect(mockClient.security.changePassword.mock.calls).toMatchInlineSnapshot(`
Array [
Array [
Object {
"body": Object {
"password": "bar",
},
"refresh": "wait_for",
"username": "opensearch_dashboards_system",
},
],
Array [
Object {
"body": Object {
"password": "changeme",
},
"refresh": "wait_for",
"username": "logstash_system",
},
],
Array [
Object {
"body": Object {
"password": "changeme",
},
"refresh": "wait_for",
"username": "opensearch",
},
],
Array [
Object {
"body": Object {
"password": "changeme",
},
"refresh": "wait_for",
"username": "beats_system",
},
],
]
`);
Array [
Array [
Object {
"body": Object {
"password": "bar",
},
"refresh": "wait_for",
"username": "opensearch_dashboards_system",
},
],
Array [
Object {
"body": Object {
"password": undefined,
},
"refresh": "wait_for",
"username": "logstash_system",
},
],
Array [
Object {
"body": Object {
"password": undefined,
},
"refresh": "wait_for",
"username": "opensearch",
},
],
Array [
Object {
"body": Object {
"password": undefined,
},
"refresh": "wait_for",
"username": "beats_system",
},
],
]
`);
});
});

Expand Down
12 changes: 6 additions & 6 deletions packages/osd-pm/src/__snapshots__/run.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions packages/osd-pm/src/utils/__snapshots__/project.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/osd-pm/src/utils/__snapshots__/projects.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 33bb5e0

Please sign in to comment.