All Downloads are FREE. Search and download functionalities are using the official Maven repository.

features.policy.policy-construction.feature Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
Feature: SDK Policy Object Creation Limitations
  I should be able to create Policy objects and they will behave appropriately

  # SDK Tests
  Scenario Outline: Setting device integrity checks on FactorsPolicy inside nested conditions are invalid
    When I create a new Factors Policy
    And I set the factors to "Knowledge"
    And I set  on the Factors Policy to 
    And I attempt to create a new Conditional Geofence Policy with the inside policy set to the new policy
    Then an InvalidPolicyAttributes error occurs
  Examples:
  | field                   | value |
  | deny_rooted_jailbroken  | True  |
  | deny_emulator_simulator | True  |

  Scenario Outline: Setting device integrity checks on FactorsPolicy outside nested conditions are invalid
    When I create a new Factors Policy
    And I set the factors to "Knowledge"
    And I set  on the Factors Policy to 
    And I attempt to create a new Conditional Geofence Policy with the outside policy set to the new policy
    Then an InvalidPolicyAttributes error occurs
  Examples:
  | field                   | value |
  | deny_rooted_jailbroken  | True  |
  | deny_emulator_simulator | True  |

  Scenario Outline: Setting device integrity checks on MethodAmountPolicy inside nested conditions are invalid
    When I create a new MethodAmountPolicy
    And I set the amount to "2"
    And I set  on the Method Amount Policy to 
    And I attempt to create a new Conditional Geofence Policy with the inside policy set to the new policy
    Then an InvalidPolicyAttributes error occurs
  Examples:
  | field                   | value |
  | deny_rooted_jailbroken  | True  |
  | deny_emulator_simulator | True  |

  Scenario Outline: Setting device integrity checks on MethodAmountPolicy outside nested conditions are invalid
    When I create a new MethodAmountPolicy
    And I set the amount to "2"
    And I set  on the Method Amount Policy to 
    And I attempt to create a new Conditional Geofence Policy with the outside policy set to the new policy
    Then an InvalidPolicyAttributes error occurs
  Examples:
  | field                   | value |
  | deny_rooted_jailbroken  | True  |
  | deny_emulator_simulator | True  |

  Scenario: Stacked Conditional Geofences are not allowed
    Given I have any Conditional Geofence Policy
    When I attempt to set the inside policy to any Conditional Geofence Policy
    Then an InvalidPolicyAttributes error occurs




© 2015 - 2025 Weber Informatics LLC | Privacy Policy