-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from webgriffe/issue-12
Allow to enqueue all identifiers from specific importer(s)
- Loading branch information
Showing
15 changed files
with
365 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
@enqueuing_generic_items | ||
Feature: Enqueuing items | ||
In order to import data from Akeneo | ||
As a Store Owner | ||
I want to add enqueue items to the Akeneo PIM queue | ||
|
||
@cli | ||
Scenario: Enqueueing items when no item is modified since the given date | ||
When I enqueue items for all importers modified since date "2020-01-20 01:00:00" | ||
Then there should be no item in the Akeneo queue | ||
|
||
@cli | ||
Scenario: Enqueueing items without a since date | ||
When I enqueue items for all importers with no since date | ||
Then I should be notified that a since date is required | ||
And there should be no item in the Akeneo queue | ||
|
||
@cli | ||
Scenario: Enqueueing items with an invalid since date | ||
When I enqueue items for all importers with invalid since date | ||
Then I should be notified that the since date must be a valid date | ||
|
||
@cli | ||
Scenario: Enqueueing items with a since date specified from a not existent file | ||
When I enqueue items with since date specified from a not existent file | ||
Then I should be notified that the since date file does not exists | ||
|
||
@cli | ||
Scenario: Avoiding to enqueue two times the same item if it has not been imported yet | ||
Given there is a product "product-1" updated at "2020-01-20 22:23:13" on Akeneo | ||
And there is one item to import with identifier "product-1" for the "Product" importer in the Akeneo queue | ||
When I enqueue items for all importers modified since date "2020-01-20 01:00:00" | ||
Then there should be only one queue item with identifier "product-1" for the "Product" importer in the Akeneo queue | ||
|
||
@cli | ||
Scenario: Enqueuing all items regardless last modified date | ||
Given there are 3 products on Akeneo | ||
When I enqueue all items for all importers | ||
Then there should be 3 items for the "Product" importer in the Akeneo queue | ||
And there should be 3 items for the "ProductAssociations" importer in the Akeneo queue | ||
|
||
@cli | ||
Scenario: Enqueuing all items for one importer only | ||
Given there are 3 products on Akeneo | ||
When I enqueue all items for the "Product" importer | ||
Then there should be 3 items for the "Product" importer in the Akeneo queue | ||
And there should be items for the "Product" importer only in the Akeneo queue | ||
|
||
@cli | ||
Scenario: Enqueuing all items for a not existent importer | ||
When I enqueue all items for a not existent importer | ||
Then I should be notified that the importer does not exists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,34 @@ | ||
@enqueuing | ||
@enqueuing_products | ||
Feature: Enqueuing products | ||
In order to import my products from Akeneo | ||
As a Store Owner | ||
I want to add them to the Akeneo PIM queue | ||
|
||
@cli | ||
Scenario: Enqueuing products modified since a given date | ||
Given there is a product "product-1" updated at "2020-01-10 22:23:13" on Akeneo | ||
And there is a product "product-2" updated at "2020-01-21 09:54:12" on Akeneo | ||
And there is a product "product-3" updated at "2020-01-22 08:15:08" on Akeneo | ||
When I run enqueue command with since date "2020-01-20 01:00:00" | ||
Then the command should have run successfully | ||
And the product "product-1" should not be in the Akeneo queue | ||
And the product "product-2" should be in the Akeneo queue | ||
And the product "product-3" should be in the Akeneo queue | ||
When I enqueue items for all importers modified since date "2020-01-20 01:00:00" | ||
Then the queue item with identifier "product-1" for the "Product" importer should not be in the Akeneo queue | ||
And the queue item with identifier "product-2" for the "Product" importer should be in the Akeneo queue | ||
And the queue item with identifier "product-3" for the "Product" importer should be in the Akeneo queue | ||
|
||
@cli | ||
Scenario: There are no products modified since datetime read in file | ||
Given there is a file with name "last-date" and content "2020-01-20 01:00:00" | ||
And current date time is "2020-01-25T12:00:00+01:00" | ||
When I run enqueue command with since file "last-date" | ||
Then the command should have run successfully | ||
And there should be no product in the Akeneo queue | ||
When I enqueue items for all importers modified since date specified from file "last-date" | ||
Then there should be no item in the queue for the "Product" importer | ||
And there is a file with name "last-date" that contains "2020-01-25T12:00:00+01:00" | ||
|
||
@cli | ||
Scenario: Enqueuing products modified since datetime read in file | ||
Given there is a product "product-1" updated at "2020-01-10 22:23:13" on Akeneo | ||
And there is a product "product-2" updated at "2020-01-21 09:54:12" on Akeneo | ||
And there is a file with name "last-date" and content "2020-01-20 01:00:00" | ||
And current date time is "2020-01-25T12:00:00+01:00" | ||
When I run enqueue command with since file "last-date" | ||
Then the command should have run successfully | ||
And the product "product-1" should not be in the Akeneo queue | ||
And the product "product-2" should be in the Akeneo queue | ||
When I enqueue items for all importers modified since date specified from file "last-date" | ||
Then the queue item with identifier "product-1" for the "Product" importer should not be in the Akeneo queue | ||
And the queue item with identifier "product-2" for the "Product" importer should be in the Akeneo queue | ||
And there is a file with name "last-date" that contains "2020-01-25T12:00:00+01:00" | ||
|
||
# todo: this should be generalized and moved into enqueuing.feature | ||
Scenario: Avoiding to enqueue two times the same product if it has not been imported yet | ||
Given there is a product "product-1" updated at "2020-01-20 22:23:13" on Akeneo | ||
And there is one product to import with identifier "product-1" in the Akeneo queue | ||
When I run enqueue command with since date "2020-01-20 01:00:00" | ||
Then there should be only one product queue item for "product-1" in the Akeneo queue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
@enqueuing | ||
@enqueuing_products_associations | ||
Feature: Enqueuing products associations | ||
In order to import my products associations from Akeneo | ||
As a Store Owner | ||
I want to add them to the Akeneo PIM queue | ||
|
||
@cli | ||
Scenario: Enqueuing products associations for products modified since a given date | ||
Given there is a product "product-1" updated at "2020-01-10 22:23:13" on Akeneo | ||
And there is a product "product-2" updated at "2020-01-21 09:54:12" on Akeneo | ||
And there is a product "product-3" updated at "2020-01-22 08:15:08" on Akeneo | ||
When I run enqueue command with since date "2020-01-20 01:00:00" | ||
Then the command should have run successfully | ||
And the product associations for product "product-1" should not be in the Akeneo queue | ||
And the product associations for product "product-2" should be in the Akeneo queue | ||
And the product associations for product "product-3" should be in the Akeneo queue | ||
When I enqueue items for all importers modified since date "2020-01-20 01:00:00" | ||
Then the queue item with identifier "product-1" for the "ProductAssociations" importer should not be in the Akeneo queue | ||
And the queue item with identifier "product-2" for the "ProductAssociations" importer should be in the Akeneo queue | ||
And the queue item with identifier "product-3" for the "ProductAssociations" importer should be in the Akeneo queue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.