public void MSASPROV_S03_TC05_VerifyPolicyStatus139()
{
#region Download the policy settings.
// Download the policy settings.
ProvisionResponse provisionResponse = this.CallProvisionCommand(string.Empty, "MS-EAS-Provisioning-WBXML", "1");
string temporaryPolicyKey = provisionResponse.ResponseData.Policies.Policy.PolicyKey;
#endregion
#region Acknowledge the policy settings.
// Acknowledge the policy settings.
provisionResponse = this.CallProvisionCommand(temporaryPolicyKey, "MS-EAS-Provisioning-WBXML", "2");
if (Common.IsRequirementEnabled(1046, this.Site))
{
this.Site.CaptureRequirementIfAreEqual<byte>(
139,
provisionResponse.ResponseData.Status,
1046,
@"[In Appendix A: Product Behavior] [The cause of status value 139 is] The client returned a value of 2 in the Status child element of the Policy element in a request to the implementation to acknowledge a policy. (Exchange 2013 and above follow this behavior.)");
this.Site.CaptureRequirementIfAreEqual<byte>(
139,
provisionResponse.ResponseData.Status,
681,
@"[In Provision Command Errors] [The meaning of status value] 139 [is] The client cannot fully comply with all requirements of the policy.");
this.Site.CaptureRequirementIfAreEqual<byte>(
139,
provisionResponse.ResponseData.Status,
684,
@"[In Provision Command Errors] [The cause of status value 139 is] The server is configured to not allow clients that cannot fully apply the policy.");
}
#endregion
}