@ows_metadata
Feature: XML iTunes
  In order to ensure iTunes xml is valid for offer types, pricing tiers and carvouts

  Scenario Outline: Check Itunes xml offer type
    Given I have an Audio XML for dms 1 upc <upc>
    Then I get the xml for <upc> with track <tn> for <offer_type> should be <cfs>, <cfstream>, have <cfir> set

  Examples:
  | offer_type             | tn | cfs   | cfstream | cfir  | upc          |
  | Album Download Only    | 1  | true  | false    | false | 191018253790 |
  | Track Download Only    | 2  | true  | true     | true  | 191018253790 |
  | Stream Only            | 3  | false | true     | true  | 191018253790 |
  | Album Track Download   | 4  | true  | false    | false | 191018253790 |
  | Track Download Stream  | 5  | true  | true     | true  | 191018253790 |
  | Album Download Only    | 6  | true  | true     | true  | 191018253790 |
  | All                    | 7  | true  | true     | true  | 191018253790 |
  | None                   | 8  | false | false    | false | 191018253790 |
#  | Album Download Only    | 2  | true  | false    | false | 270720800628 |
  | Track Download Only    | 1  | true  | true     | true  | 93681069428  |
  | Stream Only            | 1  | false | true     | true  | 190296951145 |
#  | Track Download Stream  | 1  | true  | true     | true  | 5060140210153|
  | Album Download Stream  | 9  | true  | true     | true  | 3406119123   |
  | All                    | 1  | true  | true     | true  | 192562012628 |
  | None                   | 7  | false | false    | false | 669910980453 |

  Scenario: Check Itunes music interval pricing
    Given I have an Audio XML for dms 1 upc 191018253790
    Then It should have valid music offer types

  Scenario: Check Itunes film interval pricing
    Given I have a film XML for dms 1 for upc 889176506765
    Then It should have valid film offer types
