Skip to content
Snippets Groups Projects
Select Git revision
  • 04c76b106787b9df1b9dd1bd52ddda892672ea9e
  • master default protected
  • cleanup_fixtures
  • add-openvox
  • freebsd-14
  • remove-legacy-top-scope-syntax
  • rel430
  • tests
  • revert-363-augeas-module-cleanup
  • release-4.1.0
  • puppet8
  • relax-dependencies
  • rel400
  • mode
  • puppet7
  • release-3.1.0
  • freebsd13
  • freebsd11
  • stdlib
  • centos
  • fedora
  • v5.1.0
  • v5.0.0
  • v4.5.0
  • v4.4.0
  • v4.3.0
  • v4.2.1
  • v4.2.0
  • v4.1.0
  • v4.0.0
  • v3.1.0
  • v3.0.0
  • v2.0.0
  • 1.12.0
  • 1.11.0
  • 1.10.0
  • 1.9.0
  • 1.8.0
  • 1.7.0
  • 1.6.0
  • 1.5.0
41 results

config.pp

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    test_postfix_virtual.aug 1.34 KiB
    (*
    Module: Test_Postfix_Virtual
      Provides unit tests and examples for the <Postfix_Virtual> lens.
    *)
    
    module Test_Postfix_Virtual =
    
    (* View: conf *)
    let conf = "# a comment
    virtual-alias.domain     anything
    postmaster@virtual-alias.domain  postmaster
    user1@virtual-alias.domain       address1
    user-1@virtual-alias.domain       address1
    user_2@virtual-alias.domain
        address2,
        address3
    user+test@virtual-alias.domain
        address2,
        address3
    root    robert.oot@domain.com
    @example.net  root,postmaster
    "
    
    (* Test: Postfix_Virtual.lns *)
    test Postfix_Virtual.lns get conf =
      { "#comment" = "a comment" }
      { "pattern" = "virtual-alias.domain"
        { "destination" = "anything" }
      }
      { "pattern" = "postmaster@virtual-alias.domain"
        { "destination" = "postmaster" }
      }
      { "pattern" = "user1@virtual-alias.domain"
        { "destination" = "address1" }
      }
      { "pattern" = "user-1@virtual-alias.domain"
        { "destination" = "address1" }
      }
      { "pattern" = "user_2@virtual-alias.domain"
        { "destination" = "address2" }
        { "destination" = "address3" }
      }
      { "pattern" = "user+test@virtual-alias.domain"
        { "destination" = "address2" }
        { "destination" = "address3" }
      }
      { "pattern" = "root"
        { "destination" = "robert.oot@domain.com" }
      }
      { "pattern" = "@example.net"
        { "destination" = "root" }
        { "destination" = "postmaster" }
      }