def METHOD_NAME(self):
    """define setrealm policy with resolver selector"""
    # ------------------------------------------------------------------ --
    # define the policies
    params = {
        "name": "set_realm_test",
        "action": "setrealm=mydefrealm",
        "user": "myDefRes:",
        "realm": "mymixrealm",
        "scope": "authorization",
    }
    response = self.make_system_request("setPolicy", params)
    assert '"active": true' in response, response
    params = {
        "name": "passthru",
        "action": "passthru",
        "user": "*",
        "realm": "mydefrealm",
        "scope": "authentication",
    }
    response = self.make_system_request("setPolicy", params)
    assert '"active": true' in response, response