Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Mar 25, 2021
1 parent b410244 commit 9ea04b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,13 @@ Print only ERRORs
spid_sp_test --metadata-url http://localhost:8000/spid/metadata --authn-url http://localhost:8000/spid/login/?idp=http://localhost:8080 --extra --debug ERROR
````

JSON report (add `-o filename.json` to write to a file)
JSON report, add `-o filename.json` to write to a file, `-rf html -o html_report/` to export to a HTML page
````
spid_sp_test --metadata-url http://localhost:8000/spid/metadata --authn-url http://localhost:8000/spid/login/?idp=http://localhost:8080 --extra --debug CRITICAL -json
````



Given a metadata file and a authn file (see `tests/metadata` and `tests/authn` for example) export all the test response without sending them to SP:

````
Expand Down
4 changes: 4 additions & 0 deletions src/spid_sp_test/spid_sp_test
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ if __name__ == '__main__':
# dump SP response as html page
{__file__} --metadata-url http://localhost:8000/spid/metadata --authn-url http://localhost:8000/spid/login/?idp=http://localhost:8080 --extra --debug ERROR -tr --html-path dumps
# html report
{__file__} --metadata-url http://localhost:8000/spid/metadata --authn-url http://localhost:8000/spid/login/?idp=http://localhost:8080 --extra --debug INFO --test-response -rf html -o html_report/
"""

parser = argparse.ArgumentParser(
Expand Down

0 comments on commit 9ea04b5

Please sign in to comment.