Skip to content

Commit

Permalink
fix: xunit schema and snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Nov 13, 2023
1 parent 25fae81 commit 7b4c813
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const requestSchema = z.object({
result: z.object({
summary: z.union([z.string(), z.null()]),
overall: z.string(),
xunit: z.string(),
xunit: z.string().nullable(),
}),
run: z.object({
console: z.union([urlSchema, z.null()]),
Expand Down
2 changes: 1 addition & 1 deletion test/integration/request-details.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('Test Testing Farm GET /requests/{request_id}', () => {
"result": {
"overall": "failed",
"summary": null,
"xunit": "<testsuites overall-result=\\"failed\\"><properties><property name=\\"baseosci.overall-result\\" value=\\"failed\\"/></properties><testsuite name=\\"Fedora-latest:x86_64:/plans/fedora/test-ci\\" result=\\"failed\\" tests=\\"1\\"><logs><log guest-setup-stage=\\"pre_artifact_installation\\" href=\\"https://artifacts.dev.testing-farm.io/f053796b-452e-4da2-b4e1-26eb2f3e721f/guest-setup-36e128c7-b41e-4305-9eea-a2dd03aa37f3/guest-setup-output-pre-artifact-installation.txt\\" name=\\"guest setup\\" schedule-stage=\\"guest-setup\\"/><log guest-setup-stage=\\"post_artifact_installation\\" href=\\"https://artifacts.dev.testing-farm.io/f053796b-452e-4da2-b4e1-26eb2f3e721f/guest-setup-36e128c7-b41e-4305-9eea-a2dd03aa37f3/guest-setup-output-post-artifact-installation.txt\\" name=\\"guest setup\\" schedule-stage=\\"guest-setup\\"/><log href=\\"https://artifacts.dev.testing-farm.io/f053796b-452e-4da2-b4e1-26eb2f3e721f/work-test-cis0alzm7h/tmt-reproducer.sh\\" name=\\"tmt-reproducer\\"/><log href=\\"https://artifacts.dev.testing-farm.io/f053796b-452e-4da2-b4e1-26eb2f3e721f/work-test-cis0alzm7h\\" name=\\"workdir\\"/></logs><properties><property name=\\"baseosci.result\\" value=\\"failed\\"/></properties><testcase name=\\"/fedora, container: sclorg/nginx-container, version: 1.22\\" result=\\"error\\"><properties><property name=\\"baseosci.arch\\" value=\\"x86_64\\"/><property name=\\"baseosci.connectable_host\\" value=\\"3.128.181.10\\"/><property name=\\"baseosci.distro\\" value=\\"Fedora-latest\\"/><property name=\\"baseosci.status\\" value=\\"Complete\\"/><property name=\\"baseosci.testcase.source.url\\" value=\\"\\"/><property name=\\"baseosci.variant\\" value=\\"\\"/></properties><logs><log href=\\"https://artifacts.dev.testing-farm.io/f053796b-452e-4da2-b4e1-26eb2f3e721f/work-test-cis0alzm7h/plans/fedora/test-ci/execute/data/fedora,%20container:%20sclorg/nginx-container,%20version:%201.22\\" name=\\"log_dir\\" schedule-entry=\\"Fedora-latest:x86_64:/plans/fedora/test-ci\\" schedule-stage=\\"running\\"/><log href=\\"https://artifacts.dev.testing-farm.io/f053796b-452e-4da2-b4e1-26eb2f3e721f/work-test-cis0alzm7h/plans/fedora/test-ci/execute/data/fedora,%20container:%20sclorg/nginx-container,%20version:%201.22/output.txt\\" name=\\"testout.log\\" schedule-entry=\\"Fedora-latest:x86_64:/plans/fedora/test-ci\\" schedule-stage=\\"running\\"/></logs><error/><testing-environment name=\\"requested\\"><property name=\\"arch\\" value=\\"x86_64\\"/><property name=\\"compose\\" value=\\"Fedora-latest\\"/><property name=\\"snapshots\\" value=\\"False\\"/></testing-environment><testing-environment name=\\"provisioned\\"><property name=\\"arch\\" value=\\"x86_64\\"/><property name=\\"compose\\" value=\\"Fedora-latest\\"/><property name=\\"snapshots\\" value=\\"False\\"/></testing-environment></testcase></testsuite></testsuites>",
"xunit": null,
},
"run": {
"artifacts": "https://artifacts.dev.testing-farm.io/f053796b-452e-4da2-b4e1-26eb2f3e721f",
Expand Down

0 comments on commit 7b4c813

Please sign in to comment.