From 9ea04b59c48221c636c860a2a3ba0a4aa35e36f5 Mon Sep 17 00:00:00 2001 From: peppelinux Date: Thu, 25 Mar 2021 14:22:30 +0100 Subject: [PATCH] README --- README.md | 4 +++- src/spid_sp_test/spid_sp_test | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index df4f515..1eb642c 100644 --- a/README.md +++ b/README.md @@ -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: ```` diff --git a/src/spid_sp_test/spid_sp_test b/src/spid_sp_test/spid_sp_test index c5a0a78..96a549b 100644 --- a/src/spid_sp_test/spid_sp_test +++ b/src/spid_sp_test/spid_sp_test @@ -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(