Skip to content

Add auth_username in command sipp_spec#49

Merged
goodboy merged 4 commits into
masterfrom
unknown repository
Jul 3, 2019
Merged

Add auth_username in command sipp_spec#49
goodboy merged 4 commits into
masterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jun 26, 2019

Hello, does something like this make sense?

at the moment the only way to configure the username for authentication is to use the -s service option
but there are cases that one may want these two to be different

@goodboy
Copy link
Copy Markdown
Member

goodboy commented Jun 28, 2019

@laerus if this is a valid option then it looks fine to me.
Can you provide a test demonstrating its use to validate that it works?

Thanks!

@ghost
Copy link
Copy Markdown
Author

ghost commented Jul 2, 2019

@goodboy this is a valid option according to sipp --help

without this patch one must hardcode the username in the[authentication] keyword in the xml scenario. this just complements the auth_password (-ap sipp argument).

do you mean you want me to write a test in tests/tests_command.py or provide an example here with sipp ?

if the later, when i use sipp i can just add a bare [authenication] xml keyword in the scenario and provide the username/password with the -au and -ap arguments respectively but when i use the same scenario with pysipp i must hardcode the username in the xml keyword [authentication username=test]

@goodboy
Copy link
Copy Markdown
Member

goodboy commented Jul 2, 2019

do you mean you want me to write a test in tests/tests_command.py or provide an example here with sipp ?

@laerus the latter at least would be good but with pysipp actually! I think starting to document how to accomplish practical things most people will require is quite handy even if just a small section in the readme.

Having a specific test for the flags I guess isn't that important since we already have tests for other standard options and it's just using the built-in machinery to render the string passed to sipp.

What would be great is a more end-to-end test that ran a small authentication scenario demonstrating that these flags indeed work when passed to sipp in a practical context. I won't require that you write that up here but maybe it's something for a further issue/task?

@ghost
Copy link
Copy Markdown
Author

ghost commented Jul 3, 2019

i've added a section for this feature in README

What would be great is a more end-to-end test

i can open another PR for this, should this go in tests/test_agent.py ?

Copy link
Copy Markdown
Member

@goodboy goodboy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@goodboy
Copy link
Copy Markdown
Member

goodboy commented Jul 3, 2019

i can open another PR for this, should this go in tests/test_agent.py ?

@laerus yes please!
Feel free to open an issue to track it until you have a PR going.
Thanks for this work!

@goodboy goodboy merged commit 8f8093f into SIPp:master Jul 3, 2019
@ghost ghost deleted the auth_username branch July 4, 2019 13:03
@ghost ghost mentioned this pull request Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant