Skip to content

Commit

Permalink
chore: README animated gif - test responses
Browse files Browse the repository at this point in the history
chore: fixed cli path in tests
  • Loading branch information
peppelinux committed Aug 28, 2021
1 parent 8982159 commit 44738bc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ Generally it's:

![Command line with more flag demoed](gallery/more-flags.gif)

### Full test set with metadata, authn request and responses

![Command line with test responses](gallery/responses.gif)

## Profiles

Each profile loads a set of test. Use `--profile $profile-name`
Expand Down
Binary file added gallery/responses.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/test_01_metadata.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

DIR='metadata'
CMD = "python3 src/spid_sp_test/spid_sp_test --metadata-url file://tests/{} --extra --debug ERROR"
CMD = "python3 src/spid_sp_test/bin/spid_sp_test --metadata-url file://tests/{} --extra --debug ERROR"


def run_cmd(mfname) -> int:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_02_authn.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

BASE_CMD = "python3 src/spid_sp_test/spid_sp_test"
BASE_CMD = "python3 src/spid_sp_test/bin/spid_sp_test"
BASE_METADATA = "spid-django-other.xml"
CMD = BASE_CMD + " --extra --metadata-url file://tests/metadata/{} --authn-url file://tests/authn/{} --debug ERROR"

Expand Down
3 changes: 1 addition & 2 deletions tests/test_03_responses.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import os

CMD = "python3 src/spid_sp_test/spid_sp_test --metadata-url file://tests/metadata/spid-django-other.xml --authn-url file://tests/authn/spid_django_post.html --extra --debug ERROR -tr -nsr"
CMD = "python3 src/spid_sp_test/bin/spid_sp_test --metadata-url file://tests/metadata/spid-django-other.xml --authn-url file://tests/authn/spid_django_post.html --extra --debug ERROR -tr -nsr"


def test_all_default_responses():
es = os.system(CMD)
assert es == 0

0 comments on commit 44738bc

Please sign in to comment.