@@ -93,7 +93,7 @@ describe('Post-Deploy Tests', () => {
93
93
94
94
it ( 'can PUT, GET, lookup, and DELETE a product' , async ( ) => {
95
95
const putOpts = {
96
- ...getFetchOptions ( `/dylandepass/commerce-boilerplate/catalog/main_website_store/default/product /${ testProduct . sku } ` ) ,
96
+ ...getFetchOptions ( `/dylandepass/commerce-boilerplate/catalog/main_website_store/default/products /${ testProduct . sku } ` ) ,
97
97
method : 'PUT' ,
98
98
headers : {
99
99
'Content-Type' : 'application/json' ,
@@ -103,7 +103,7 @@ describe('Post-Deploy Tests', () => {
103
103
const putRes = await fetch ( putOpts . url , putOpts ) ;
104
104
assert . strictEqual ( putRes . status , 201 , 'PUT request should succeed' ) ;
105
105
106
- const { url, ...getOpts } = getFetchOptions ( `/dylandepass/commerce-boilerplate/catalog/main_website_store/default/product /${ testProduct . sku } ` ) ;
106
+ const { url, ...getOpts } = getFetchOptions ( `/dylandepass/commerce-boilerplate/catalog/main_website_store/default/products /${ testProduct . sku } ` ) ;
107
107
const getRes = await fetch ( url , getOpts ) ;
108
108
assert . strictEqual ( getRes . status , 200 , 'GET request should succeed' ) ;
109
109
@@ -119,7 +119,7 @@ describe('Post-Deploy Tests', () => {
119
119
assert . strictEqual ( lookupRes . status , 301 , 'Lookup request should succeed' ) ;
120
120
121
121
const lookupLocation = lookupRes . headers . get ( 'Location' ) ;
122
- assert . strictEqual ( lookupLocation , `https://adobe-commerce-api-ci.adobeaem.workers.dev/dylandepass/commerce-boilerplate/catalog/main_website_store/default/product /${ testProduct . sku } ` ) ;
122
+ assert . strictEqual ( lookupLocation , `https://adobe-commerce-api-ci.adobeaem.workers.dev/dylandepass/commerce-boilerplate/catalog/main_website_store/default/products /${ testProduct . sku } ` ) ;
123
123
124
124
const lookupRes2 = await fetch ( lookupLocation , lookupOptions ) ;
125
125
assert . strictEqual ( lookupRes2 . status , 200 , 'Lookup request should succeed' ) ;
@@ -128,7 +128,7 @@ describe('Post-Deploy Tests', () => {
128
128
assert . strictEqual ( lookupProduct . sku , testProduct . sku ) ;
129
129
130
130
const deleteOptions = {
131
- ...getFetchOptions ( `/dylandepass/commerce-boilerplate/catalog/main_website_store/default/product /${ testProduct . sku } ` ) ,
131
+ ...getFetchOptions ( `/dylandepass/commerce-boilerplate/catalog/main_website_store/default/products /${ testProduct . sku } ` ) ,
132
132
method : 'DELETE' ,
133
133
} ;
134
134
const deleteRes = await fetch ( deleteOptions . url , deleteOptions ) ;
@@ -141,7 +141,7 @@ describe('Post-Deploy Tests', () => {
141
141
assert . strictEqual ( lookupAfterDeleteRes . status , 404 , 'Lookup request should return 404 after deletion' ) ;
142
142
143
143
const getAfterDeleteOptions = {
144
- ...getFetchOptions ( `/dylandepass/commerce-boilerplate/catalog/main_website_store/default/product /${ testProduct . sku } ` ) ,
144
+ ...getFetchOptions ( `/dylandepass/commerce-boilerplate/catalog/main_website_store/default/products /${ testProduct . sku } ` ) ,
145
145
} ;
146
146
const getAfterDeleteRes = await fetch ( getAfterDeleteOptions . url , getAfterDeleteOptions ) ;
147
147
assert . strictEqual ( getAfterDeleteRes . status , 404 , 'GET request should return 404 after deletion' ) ;
0 commit comments