|
Packit Service |
a2ae7a |
(*
|
|
Packit Service |
a2ae7a |
Module: Test_Postfix_Passwordmap
|
|
Packit Service |
a2ae7a |
Provides unit tests and examples for the <Postfix_Passwordmap> lens.
|
|
Packit Service |
a2ae7a |
*)
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
module Test_Postfix_Passwordmap =
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* View: conf *)
|
|
Packit Service |
a2ae7a |
let conf = "# comment
|
|
Packit Service |
a2ae7a |
* username:password
|
|
Packit Service |
a2ae7a |
[mail.isp.example] username:password
|
|
Packit Service |
a2ae7a |
[mail.isp.example]:submission username:password
|
|
Packit Service |
a2ae7a |
[mail.isp.example]:587 username:password
|
|
Packit Service |
a2ae7a |
mail.isp.example username:password
|
|
Packit Service |
a2ae7a |
user@mail.isp.example username:
|
|
Packit Service |
a2ae7a |
mail.isp.example
|
|
Packit Service |
a2ae7a |
username2:password2
|
|
Packit Service |
a2ae7a |
"
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* Test: Postfix_Passwordmap.lns *)
|
|
Packit Service |
a2ae7a |
test Postfix_Passwordmap.lns get conf =
|
|
Packit Service |
a2ae7a |
{ "#comment" = "comment" }
|
|
Packit Service |
a2ae7a |
{ "pattern" = "*"
|
|
Packit Service |
a2ae7a |
{ "username" = "username" }
|
|
Packit Service |
a2ae7a |
{ "password" = "password" } }
|
|
Packit Service |
a2ae7a |
{ "pattern" = "[mail.isp.example]"
|
|
Packit Service |
a2ae7a |
{ "username" = "username" }
|
|
Packit Service |
a2ae7a |
{ "password" = "password" } }
|
|
Packit Service |
a2ae7a |
{ "pattern" = "[mail.isp.example]:submission"
|
|
Packit Service |
a2ae7a |
{ "username" = "username" }
|
|
Packit Service |
a2ae7a |
{ "password" = "password" } }
|
|
Packit Service |
a2ae7a |
{ "pattern" = "[mail.isp.example]:587"
|
|
Packit Service |
a2ae7a |
{ "username" = "username" }
|
|
Packit Service |
a2ae7a |
{ "password" = "password" } }
|
|
Packit Service |
a2ae7a |
{ "pattern" = "mail.isp.example"
|
|
Packit Service |
a2ae7a |
{ "username" = "username" }
|
|
Packit Service |
a2ae7a |
{ "password" = "password" } }
|
|
Packit Service |
a2ae7a |
{ "pattern" = "user@mail.isp.example"
|
|
Packit Service |
a2ae7a |
{ "username" = "username" }
|
|
Packit Service |
a2ae7a |
{ "password" } }
|
|
Packit Service |
a2ae7a |
{ "pattern" = "mail.isp.example"
|
|
Packit Service |
a2ae7a |
{ "username" = "username2" }
|
|
Packit Service |
a2ae7a |
{ "password" = "password2" } }
|