sync-for-science / tracking

Issue tracking for S4S reference stack development
0 stars 0 forks source link

Things we can test for automatically #11

Closed jmandel closed 8 years ago

jmandel commented 8 years ago

... this will be a long list, but for now, just the stuff we notice on manual inspection that we can/should automate tests for. Much of this should be done by off-the-shelf testing tools (we should confirm).

erikwiffin commented 8 years ago

There are tests for everything in the list so far. Keeping this as an open issue so that we can add test ideas without too much overhead.

jmandel commented 8 years ago

OAuth testing for state -- make sure it's correctly returned (unmodified). Including some simple state ("123") and also some "tricky" state (like values that need URL encoding).

jmandel commented 8 years ago

(Probably not automatically, but maybe for our "security checklist": is CSRF protection present on the "approve" screen.)

jmandel commented 8 years ago

Automated login via webdriver to move beyond the "Authorize" button. Maybe initially it's still an authorize button but an automatic one.

jmandel commented 8 years ago

Including the wrong value for redirect_uri

Ensure that servers fail on wrong grant_type on authorize

Servers should fail when presented with the same code twice (i.e. repeated attempts to call /token should fail).

jmandel commented 8 years ago

Instead of Python validator: POST to $validate instead :-)

jmandel commented 8 years ago

Check vocabularies. For each LOINC code, SNOMED code, and RxNorm code in a FHIR payload:

These tests would be "optional" in the sense that they're informative; we wouldn't fail vendors for low scores here, but we'd provide some high-level feedback about quality of coding.

jmandel commented 8 years ago

Make sure that, somewhere, the Bundle.link.next works. For example: