To effectively test units of spud we mock out httr
interactions.
This is because we only have access to 1 sharepoint instance and we only have personal logins for this. We could setup vault so that the build system can authenticate as via the vault but I'd rather not put my own imperial login credentials into vault.
Mocks:
security_token_response.rds - The response from httr::POST
call sent during get_security_token
with several unneeded fields removed (e.g. cookies, headers etc.) and the content updated manually so the token is a safe one we can use for testing t=EXAMPLE_TOKEN==&p=
cookies_response.rds - The response from httr:POST
call sent during get_access_cookies
with unneeded fields removed and cookies updated manually to be a save one we can use for testing.
mocks/<action>_response_raw.rds
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.