From 91561aff23475f635ea55ff5d2986a3f856413a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Emarianfoo=E2=80=9C?= <13335743+marianfoo@users.noreply.github.com> Date: Tue, 19 Nov 2024 22:30:14 +0100 Subject: [PATCH] tests: fix http call to upload spreadsheet --- tests/demo-project/tests/upload.http | 2 +- tests/demo-project/tests/upload.test.js | 2 +- tests/demo-project/tests/upload_authors.http | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/demo-project/tests/upload.http b/tests/demo-project/tests/upload.http index a2f70f6..bdaf419 100644 --- a/tests/demo-project/tests/upload.http +++ b/tests/demo-project/tests/upload.http @@ -1,5 +1,5 @@ ### upload spreadsheet for specific entity -PUT http://localhost:4004/odata/v4/importer/Spreadsheet(entity='Books')/content +PUT http://localhost:4004/odata/v4/importer/Spreadsheet(entity='my.bookshop.Books')/content Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet < .\spreadsheettest.xlsx diff --git a/tests/demo-project/tests/upload.test.js b/tests/demo-project/tests/upload.test.js index 09e82df..0ac185d 100644 --- a/tests/demo-project/tests/upload.test.js +++ b/tests/demo-project/tests/upload.test.js @@ -12,7 +12,7 @@ describe('Upload API Tests', () => { const fileBuffer = fs.readFileSync(filePath); const uploadResponse = await fetch( - `${BASE_URL}/odata/v4/importer/Spreadsheet(entity='Books')/content`, + `${BASE_URL}/odata/v4/importer/Spreadsheet(entity='my.bookshop.Books')/content`, { method: 'PUT', headers: { diff --git a/tests/demo-project/tests/upload_authors.http b/tests/demo-project/tests/upload_authors.http index ae14229..efe57f4 100644 --- a/tests/demo-project/tests/upload_authors.http +++ b/tests/demo-project/tests/upload_authors.http @@ -1,5 +1,5 @@ ### upload spreadsheet for specific entity -PUT http://localhost:4004/odata/v4/importer/Spreadsheet(entity='Authors')/content +PUT http://localhost:4004/odata/v4/importer/Spreadsheet(entity='my.bookshop.Authors')/content Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet < .\authors.xlsx