Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@ ${JSON.stringify(cypressConfigFile, null, 2)}
if (cloudHandler instanceof CloudHandler) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: I'd move a cleanup task to a function for better readability and modularability.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I agree, however I am still learning this code structure, and the next task I am working on is generalizing functionality in the parallel and parallel_serverless scripts out into a common file. I think that PR would be a better place for restructuring something like this call.

command = `curl -X DELETE ${BASE_ENV_URL}/api/v1/serverless/projects/security/${project.id} -H "Authorization: ApiKey ${API_KEY}"`;
exec(command);
} else if (cloudHandler instanceof ProxyHandler) {
const proxyAuth = btoa(`${PROXY_CLIENT_ID}:${PROXY_SECRET}`);
command = `curl -X DELETE ${PROXY_URL}/projects/${project.id} -H "Authorization: Basic ${proxyAuth}"`;
exec(command);
}
});

Expand Down