Skip to content

Commit 22ffb7d

Browse files
committed
AssayImportRunAction.ispec.ts: Fix verifyPropertiesFilesOnServer
1 parent 08772ba commit 22ffb7d

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

experiment/src/client/test/integration/AssayImportRunAction.ispec.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,15 @@ async function verifyPropertiesFilesOnServer(
112112
requestOptions?: RequestOptions
113113
): Promise<void> {
114114
const response = await server.request(
115-
'_webdav',
116-
'%40files/assaydata',
117-
(agent, url) => agent.get(url.replace('.view', '') + '?method=JSON'),
115+
'fakeController',
116+
'fakeAction',
117+
(agent, url) => {
118+
// Note: this is a hack to allow us to make requests to the webdav controller. The IntegrationTestServer
119+
// request method uses ActionURL to generate URLS, but webdav URLs are not ActionURLs, so we need to
120+
// override the AgentProvider to generate the proper webdav URL.
121+
url = `/_webdav/${requestOptions.containerPath}/%40files/assaydata?method=JSON`;
122+
return agent.get(url);
123+
},
118124
requestOptions
119125
);
120126

0 commit comments

Comments
 (0)