Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
Signed-off-by: Willie Hung <[email protected]>
  • Loading branch information
willie-hung committed Oct 12, 2023
1 parent 6659dfa commit 216e530
Show file tree
Hide file tree
Showing 4 changed files with 307 additions and 8,201 deletions.
109 changes: 109 additions & 0 deletions src/dev/build/tasks/nodejs/verify_existing_node_builds_task.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ it('checks shasums for each downloaded node build', async () => {
<ToolingLog>,
"<node version>",
],
Array [
<ToolingLog>,
"<node version>",
],
],
"results": Array [
Object {
Expand All @@ -126,6 +130,15 @@ it('checks shasums for each downloaded node build', async () => {
"win32:win32-x64:downloadName": "valid shasum",
},
},
Object {
"type": "return",
"value": Object {
"darwin:darwin-x64:downloadName": "valid shasum",
"linux:linux-arm64:downloadName": "valid shasum",
"linux:linux-x64:downloadName": "valid shasum",
"win32:win32-x64:downloadName": "valid shasum",
},
},
],
}
`);
Expand Down Expand Up @@ -164,6 +177,38 @@ it('checks shasums for each downloaded node build', async () => {
"name": "win32",
},
],
Array [
<Config>,
Platform {
"architecture": "x64",
"buildName": "linux-x64",
"name": "linux",
},
],
Array [
<Config>,
Platform {
"architecture": "arm64",
"buildName": "linux-arm64",
"name": "linux",
},
],
Array [
<Config>,
Platform {
"architecture": "x64",
"buildName": "darwin-x64",
"name": "darwin",
},
],
Array [
<Config>,
Platform {
"architecture": "x64",
"buildName": "windows-x64",
"name": "win32",
},
],
],
"results": Array [
Object {
Expand Down Expand Up @@ -198,6 +243,38 @@ it('checks shasums for each downloaded node build', async () => {
"version": "<node version>",
},
},
Object {
"type": "return",
"value": Object {
"downloadName": "linux:linux-x64:downloadName",
"downloadPath": "linux:linux-x64:downloadPath",
"version": "<node version>",
},
},
Object {
"type": "return",
"value": Object {
"downloadName": "linux:linux-arm64:downloadName",
"downloadPath": "linux:linux-arm64:downloadPath",
"version": "<node version>",
},
},
Object {
"type": "return",
"value": Object {
"downloadName": "darwin:darwin-x64:downloadName",
"downloadPath": "darwin:darwin-x64:downloadPath",
"version": "<node version>",
},
},
Object {
"type": "return",
"value": Object {
"downloadName": "win32:win32-x64:downloadName",
"downloadPath": "win32:win32-x64:downloadPath",
"version": "<node version>",
},
},
],
}
`);
Expand All @@ -220,6 +297,22 @@ it('checks shasums for each downloaded node build', async () => {
"win32:win32-x64:downloadPath",
"sha256",
],
Array [
"linux:linux-x64:downloadPath",
"sha256",
],
Array [
"linux:linux-arm64:downloadPath",
"sha256",
],
Array [
"darwin:darwin-x64:downloadPath",
"sha256",
],
Array [
"win32:win32-x64:downloadPath",
"sha256",
],
],
"results": Array [
Object {
Expand All @@ -238,6 +331,22 @@ it('checks shasums for each downloaded node build', async () => {
"type": "return",
"value": "valid shasum",
},
Object {
"type": "return",
"value": "valid shasum",
},
Object {
"type": "return",
"value": "valid shasum",
},
Object {
"type": "return",
"value": "valid shasum",
},
Object {
"type": "return",
"value": "valid shasum",
},
],
}
`);
Expand Down
44 changes: 44 additions & 0 deletions src/dev/build/tasks/os_packages/create_os_package_tasks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,22 @@ it('runs task with the expected values for RPM x64', async () => {
"linux",
],
],
Array [
<Config>,
<ToolingLog>,
Build {
"config": <Config>,
"name": "opensearch-dashboards",
},
"rpm",
"x64",
Array [
"--architecture",
"x64",
"--rpm-os",
"linux",
],
],
],
"results": Array [
Object {
Expand All @@ -166,6 +182,12 @@ it('runs task with the expected values for RPM x64', async () => {
"package": "rpm:x64:--architecture,x64,--rpm-os,linux",
},
},
Object {
"type": "return",
"value": Object {
"package": "rpm:x64:--architecture,x64,--rpm-os,linux",
},
},
],
}
`);
Expand All @@ -179,6 +201,22 @@ it('runs task with the expected values for RPM ARM64', async () => {
expect(runFpm).toMatchInlineSnapshot(`
[MockFunction] {
"calls": Array [
Array [
<Config>,
<ToolingLog>,
Build {
"config": <Config>,
"name": "opensearch-dashboards",
},
"rpm",
"x64",
Array [
"--architecture",
"x64",
"--rpm-os",
"linux",
],
],
Array [
<Config>,
<ToolingLog>,
Expand All @@ -197,6 +235,12 @@ it('runs task with the expected values for RPM ARM64', async () => {
],
],
"results": Array [
Object {
"type": "return",
"value": Object {
"package": "rpm:x64:--architecture,x64,--rpm-os,linux",
},
},
Object {
"type": "return",
"value": Object {
Expand Down
152 changes: 149 additions & 3 deletions src/dev/i18n/__snapshots__/integrate_locale_files.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 216e530

Please sign in to comment.