Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

purge test domain for smoke / diff tests #538

Open
tripodsan opened this issue Nov 11, 2020 · 2 comments
Open

purge test domain for smoke / diff tests #538

tripodsan opened this issue Nov 11, 2020 · 2 comments

Comments

@tripodsan
Copy link
Contributor

before starting the tests, it should probably be best to purge the cache for the entire test domain.

@kptdobe
Copy link
Contributor

kptdobe commented Nov 11, 2020

I do not think this is enough here (purge only one url) but for the record:

Chai HTTP depends on the methods module which defines the purge method. In tests, you can simply run:
await chai.request(host).purge(path);
which sends a PURGE request. Pretty useful to purge a page before running a test on it.

@tripodsan
Copy link
Contributor Author

I rather thought of purging the entire domain using the fastly api

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants