@PartnerSubscription

Feature: product data automation 

Scenario:  product core full refresh for cyprus
Given I delete the input file from file share 
And I upload the input file in file share <franchiseNumber>
And I execute data scoping logic app <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
And I validate mongo collection for product core <franchiseNumber> and <extractTypeId>
And I call data publish <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
And I validate json product core file "<JSON>" <franchiseNumber>
And I validate "<franchiseNumber>" and "<extractTypeId>" audit table 

Examples:
| JSON | franchiseNumber | extractTypeId | franchiseNo2 | extractTypeId2 |
| productCore | 8251 | 1 | 0 | 0  |

#Scenario: product core full refresh for afg
#Given I delete the input file from file share 
#And I upload the input file in file share <franchiseNumber>
#And I execute data scoping logic app <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
#And I validate mongo collection for product core <franchiseNumber> and <extractTypeId>
#And I call data publish <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
#And I validate json product core file "<JSON>" <franchiseNumber>
#And I validate "<franchiseNumber>" and "<extractTypeId>" audit table 
#
#Examples:
#| JSON | franchiseNumber | extractTypeId | franchiseNo2 | extractTypeId2 |
#| productCore | 7197 | 1 | 0 | 0 |
#
#Scenario:  product core full refresh for CA
#Given I delete the input file from file share 
#And I upload the input file in file share <franchiseNumber>
#And I execute data scoping logic app <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
#And I validate mongo collection for product core <franchiseNumber> and <extractTypeId>
#And I call data publish <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
#And I validate xml product core file "<XML>"
#And I validate "<franchiseNumber>" and "<extractTypeId>" audit table 
#
#Examples:
#| XML| franchiseNumber | extractTypeId | franchiseNo2 | extractTypeId2 |
#| productCore | 1605 | 1 | 0 | 0 |
#
#Scenario:  product core delta refresh for CA
#And I upload delta event input file <extractTypeId>
#And I call event stub endpoint "<franchiseNumber>" and <extractTypeId>
#And I execute data scoping logic app <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
#And I validate mongo collection for product core <franchiseNumber> and <extractTypeId>
#And I call data publish <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
#And I validate xml product core file "<XML>"
#And I validate "<franchiseNumber>" and "<extractTypeId>" audit table 
#
#Examples:
#| XML| franchiseNumber | extractTypeId | franchiseNo2 | extractTypeId2 |
#| productCore | 1605 | 1 | 0 | 0 |
#
#Scenario:   product core delta refresh for cyprus
#And I upload delta event input file <extractTypeId>
#And I call event stub endpoint "<franchiseNumber>" and <extractTypeId>
#And I execute data scoping logic app <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
#And I validate mongo collection <franchiseNumber> and <extractTypeId>
#And I call data publish <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
#And I validate json product core file "<JSON>" <franchiseNumber>
#And I validate "<franchiseNumber>" and "<extractTypeId>" audit table 
#
#Examples:
#| XML| franchiseNumber | extractTypeId | franchiseNo2 | extractTypeId2 |
#| productImagery| 1605 | 4 | 0 | 0 |
#
#
#Scenario:   product core delta refresh for afg
#And I upload delta event input file <extractTypeId>
#And I call event stub endpoint "<franchiseNumber>" and <extractTypeId>
#And I execute data scoping logic app <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
#And I validate mongo collection <franchiseNumber> and <extractTypeId>
#And I call data publish <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
#And I validate json product core file "<JSON>" <franchiseNumber>
#And I validate "<franchiseNumber>" and "<extractTypeId>" audit table 
#
#Examples:
#| JSON | franchiseNumber | extractTypeId | franchiseNo2 | extractTypeId2 |
#| productCore | 7197| 1 | 0 | 0 |
#
#
#Scenario:  scoping partner 
#Given I delete the input file from file share 
#And I upload the input file in file share <franchiseNumber>
#And I execute data scoping logic app <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
#And I validate mongo collection for product core <franchiseNumber> and <extractTypeId>
#And I call data publish <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
#And I validate json product core file "<JSON>" <franchiseNumber>
#And I validate "<franchiseNumber>" and "<extractTypeId>" audit table 
#
#Examples:
#| JSON | franchiseNumber | extractTypeId | franchiseNo2 | extractTypeId2 |
#| productCore | 973 | 1 | 0 | 0 |
#
#Scenario: Product data multi partner Impl for Product Core 
#And I execute data scoping logic app <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
#And I validate mongo collection <franchiseNumber> and <extractTypeId>
#And I validate mongo collection <franchiseNo2> and <extractTypeId2>
#And I call data publish <franchiseNumber> and <extractTypeId> <franchiseNo2> and <extractTypeId2>
#And I validate xml product core file "<XML>"
#And I validate "<franchiseNumber>" and "<extractTypeId>" audit table
#And I validate json product core file "<JSON>" <franchiseNo2>
#And I validate "<franchiseNumber2>" and "<extractTypeId2>" audit table
 #
#Examples:
#| XML| franchiseNumber | extractTypeId | franchiseNo2 | extractTypeId2 |      
#| productImagery| 1605 | 1 | 8251 | 1 |
#.....find flow connecting jow to test and get product core json