diff options
author | Ingela Anderton Andin <[email protected]> | 2016-12-06 09:06:24 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2016-12-06 09:06:24 +0100 |
commit | b54621a3ab17b0e2f6375b09c5854fc89c5cf412 (patch) | |
tree | 4efea3cec1bba99c833132cd9b979805f62c2ebf /lib/inets/test | |
parent | 22e8ef1bb3597376f840cf337826bcc534501058 (diff) | |
parent | 9494b2341d314527d91e8fcf1d84ac8823081d71 (diff) | |
download | otp-b54621a3ab17b0e2f6375b09c5854fc89c5cf412.tar.gz otp-b54621a3ab17b0e2f6375b09c5854fc89c5cf412.tar.bz2 otp-b54621a3ab17b0e2f6375b09c5854fc89c5cf412.zip |
Merge branch 'ingela/inets/httpd-profiles/OTP-14082' into maint
* ingela/inets/httpd-profiles/OTP-14082:
inets: Add Profile argument missed by commit fdfda2fab0921d409789174556582db28141448e
Diffstat (limited to 'lib/inets/test')
-rw-r--r-- | lib/inets/test/httpd_SUITE.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/inets/test/httpd_SUITE.erl b/lib/inets/test/httpd_SUITE.erl index 28e77151f2..aae4ce5256 100644 --- a/lib/inets/test/httpd_SUITE.erl +++ b/lib/inets/test/httpd_SUITE.erl @@ -521,6 +521,9 @@ do_auth_api(AuthPrefix, Config) -> "two", "group1"), add_group_member(Node, ServerRoot, Port, AuthPrefix, "secret", "Aladdin", "group2"), + {ok, Members} = list_group_members(Node, ServerRoot, Port, AuthPrefix, "secret", "group1"), + true = lists:member("one", Members), + true = lists:member("two", Members), ok = auth_status(auth_request("/" ++ AuthPrefix ++ "secret/", "one", "onePassword", Version, Host), Config, [{statuscode, 200}]), @@ -2155,6 +2158,10 @@ add_group_member(Node, Root, Port, AuthPrefix, Dir, User, Group) -> Directory = filename:join([Root, "htdocs", AuthPrefix ++ Dir]), rpc:call(Node, mod_auth, add_group_member, [Group, User, Addr, Port, Directory]). +list_group_members(Node, Root, Port, AuthPrefix, Dir, Group) -> + Directory = filename:join([Root, "htdocs", AuthPrefix ++ Dir]), + rpc:call(Node, mod_auth, list_group_members, [Group, [{port, Port}, {dir, Directory}]]). + getaddr() -> {ok,HostName} = inet:gethostname(), {ok,{A1,A2,A3,A4}} = inet:getaddr(HostName,inet), |