Skip to content

Send Schema body as FormData; Format schema test file#349

Merged
wildemat merged 2 commits intomainfrom
schema-test-fix
Jul 24, 2024
Merged

Send Schema body as FormData; Format schema test file#349
wildemat merged 2 commits intomainfrom
schema-test-fix

Conversation

@wildemat
Copy link
Contributor

@wildemat wildemat commented Jul 24, 2024

Ticket(s): FE-5644

Problem

Schema tests run in the pipeline (but not in CircleCI). They failed: https://concourse.faunadb.net/teams/devex/pipelines/fauna-shell-release/jobs/test/builds/22

Solution

Schema endpoint expects Content-Type: multipart/form-data. We had that in place before, but swept through and updated all fetch calls to use ReadableStream. Just needed to revert back to FormData for the Schema portion.

Also applied some prettier to the schema test file

Result

➜  fsl git:(schema-test-fix) ✗ ./test-script.mjs ~/workplace/fauna-shell/bin/run
Schema tests run successfully!

Copy link

@ecooper ecooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I crazy or is this like a 99% of this the first time these files have been linted/prettied?

@wildemat wildemat merged commit c1c4787 into main Jul 24, 2024
@wildemat wildemat deleted the schema-test-fix branch July 24, 2024 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants