Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

E2e tests for csp mode #9059

Closed
tbosch opened this issue Sep 12, 2014 · 3 comments
Closed

E2e tests for csp mode #9059

tbosch opened this issue Sep 12, 2014 · 3 comments

Comments

@tbosch
Copy link
Contributor

tbosch commented Sep 12, 2014

We had a couple of regressions because we have no real e2e test for our csp mode.

@tbosch
Copy link
Contributor Author

tbosch commented Sep 12, 2014

Idea: Just create a e2e test that uses a php page on angularjs.org as backend that sends the right headers...

The test should also include a part that checks the inline scripts really throw so we know that CSP is really active...

@realityking
Copy link
Contributor

It's trivial to write a middleware for grunt-connect that sets the required header. That's probably better than relying on an external server.

@caitp
Copy link
Contributor

caitp commented Sep 16, 2014

we have issues whether we use angularjs.org or whether a server on travis-ci talks to a client on saucelabs, it's going to flake regardless :( It would be really nice if we could say "this test is orange, retry it a few times"

@tbosch tbosch closed this as completed in b9479ee Sep 30, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants