Skip to content

Commit

Permalink
stundisco_tests: Check correct credentials syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
weiss committed Dec 18, 2024
1 parent 8cfcc69 commit 3bc66a7
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions test/stundisco_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,17 @@ turn_credentials(Config) ->
port = Port,
type = Type}]},
#iq{type = result,
sub_els = [#services{
type = undefined,
list = [#service{host = Host,
port = Port,
type = Type,
transport = Transport,
restricted = true,
username = Username,
password = Password,
expires = Expires,
action = undefined,
xdata = undefined}]}]} =
sub_els = [#credentials{
services = [#service{host = Host,
port = Port,
type = Type,
transport = Transport,
restricted = true,
username = Username,
password = Password,
expires = Expires,
action = undefined,
xdata = undefined}]}]} =
send_recv(Config, #iq{type = get, to = ServerJID, sub_els = [Request]}),
true = check_password(Username, Password),
true = check_expires(Expires),
Expand Down

0 comments on commit 3bc66a7

Please sign in to comment.