-
Notifications
You must be signed in to change notification settings - Fork 3
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 #320 from qld-gov-au/develop
CHDEXCHAE - De-identified enhancement, ckan 2.9.5-> 2.9.8 Linked Digital work on [CHDEXCHAE] plus much more CKAN: [ckan-2.9.8-qgov.01](https://github.com/qld-gov-au/ckan/releases/tag/ckan-2.9.8-qgov.01) Updates included but not limited to: * ckanext-s3filestore to [0.7.7-qgov.6](https://github.com/qld-gov-au/ckanext-s3filestore/releases/tag/0.7.7-qgov.6) * ckanext-harvest to [v1.4.2.a](https://github.com/qld-gov-au/ckanext-harvest/releases/tag/v1.4.2.a) (for including user agent in request to harvest external ckan instances) * ckanext-odi-certificates [1.0.3](https://github.com/qld-gov-au/ckanext-odi-certificates/releases/tag/1.0.3) * ckanext-qa [2.0.3-qgov.8](https://github.com/qld-gov-au/ckanext-qa/releases/tag/2.0.3-qgov.8) * ckanext-datarequests [2.2.1-qgov.5 ](https://github.com/qld-gov-au/ckanext-datarequests/releases/tag/2.2.1-qgov.5) * ckanext-resource-visibility [1.0.1](https://github.com/qld-gov-au/ckanext-resource-visibility/releases/tag/1.0.1) with Link Digital changes * ckanext-validation [v0.0.8-qgov.7](https://github.com/qld-gov-au/ckanext-validation/releases/tag/v0.0.8-qgov.7) with Link Digital changes * ckanext-validation-schema-generator [1.0.2](https://github.com/qld-gov-au/ckanext-validation-schema-generator/releases/tag/1.0.2) with Link Digital changes * ckanext-qgov [5.0.7.a](https://github.com/qld-gov-au/ckanext-qgov/releases/tag/5.0.7.a) * ckanext-data-qld [7.0.0](https://github.com/qld-gov-au/ckanext-data-qld/releases/tag/7.0.0) * ckanext-xloader [0.12.2](https://github.com/ckan/ckanext-xloader/releases/tag/0.12.2) Infra: * update cookbook [6.1.1](https://github.com/qld-gov-au/opswx-ckan-cookbook/releases/tag/6.1.1) to configure ckanext-resource-visibility cron jobs
- Loading branch information
Showing
38 changed files
with
764 additions
and
210 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 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
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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,7 @@ | ||
#!/usr/bin/env bash | ||
## | ||
# Run tests in CI. | ||
# | ||
set -e | ||
echo "output logs" | ||
ahoy logs |
Empty file.
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
## | ||
# Run tests in CI. | ||
# | ||
set -e | ||
|
||
./test-lint.sh | ||
|
||
./test.sh || (ahoy logs; exit 1) | ||
|
||
./test-bdd.sh || (ahoy logs; exit 1) | ||
|
||
|
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,10 @@ | ||
#!/usr/bin/env bash | ||
## | ||
# Run tests in CI. | ||
# | ||
set -e | ||
|
||
|
||
echo "==> Run BDD tests" | ||
ahoy test-bdd | ||
#|| (ahoy logs; exit 1) |
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,9 @@ | ||
#!/usr/bin/env bash | ||
## | ||
# Run tests in CI. | ||
# | ||
set -e | ||
|
||
echo "==> Lint code" | ||
ahoy lint | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Feature: Theme customisations | ||
Feature: Theme customisations (Publications and OpenData) | ||
|
||
@unauthenticated | ||
Scenario: Lato font is implemented on homepage | ||
|
@@ -72,21 +72,23 @@ Feature: Theme customisations | |
Then I should see "Password: Must contain at least one number, lowercase letter, capital letter, and symbol" | ||
|
||
@OpenData | ||
@fixture.dataset_with_schema::name=package-with-csv-res::owner_org=test-organisation::[email protected] | ||
@fixture.create_resource_for_dataset_with_params::package_id=package-with-csv-res::name=res-with-api-entry::xloader=True | ||
Scenario: As a publisher, when I create a resource with an API entry, I can download it in various formats | ||
Given "TestOrgEditor" as the persona | ||
When I log in | ||
And I create a dataset with license "other-open" and "CSV" resource file "csv_resource.csv" | ||
And I wait for 10 seconds | ||
And I click the link with text that contains "Test Resource" | ||
Then I should see an element with xpath "//a[contains(@class, 'resource-btn') and contains(@href, '/download/csv_resource.csv') and contains(string(), '(CSV)')]" | ||
And I go to dataset "package-with-csv-res" | ||
And I click the link with text that contains "res-with-api-entry" | ||
And I reload page every 3 seconds until I see an element with xpath "//button[@data-toggle='dropdown']" but not more than 5 times | ||
Then I should see an element with xpath "//a[contains(@class, 'resource-btn') and contains(@href, '/download/test.csv') and contains(string(), '(csv)')]" | ||
When I press the element with xpath "//button[@data-toggle='dropdown']" | ||
Then I should see an element with xpath "//a[contains(@href, '/datastore/dump/') and contains(string(), 'CSV')]" | ||
Then I should see an element with xpath "//a[contains(@href, '/datastore/dump/') and contains(@href, 'format=tsv') and contains(string(), 'TSV')]" | ||
Then I should see an element with xpath "//a[contains(@href, '/datastore/dump/') and contains(@href, 'format=json') and contains(string(), 'JSON')]" | ||
Then I should see an element with xpath "//a[contains(@href, '/datastore/dump/') and contains(@href, 'format=xml') and contains(string(), 'XML')]" | ||
|
||
@Publications | ||
Scenario: Menu items are present and correct | ||
Scenario: Publications - Menu items are present and correct | ||
When I go to "/dataset" | ||
Then I should see an element with xpath "//li[contains(@class, 'active')]/a[contains(string(), 'Publication') and (@href='/dataset' or @href='/dataset/')]" | ||
And I should see an element with xpath "//li[not(contains(@class, 'active'))]/a[contains(string(), 'Standards') and @href='/dataset/publishing-standards-publications-qld-gov-au']" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,26 +14,23 @@ Feature: Dataset deletion | |
Then I fill in "author_email" with "[email protected]" | ||
Then I fill in "de_identified_data" with "NO" if present | ||
And I press the element with xpath "//form[contains(@class, 'dataset-form')]//button[contains(@class, 'btn-primary')]" | ||
And I wait for 10 seconds | ||
Then I execute the script "document.getElementById('field-image-url').value='https://example.com'" | ||
|
||
Then I attach the file "csv_resource.csv" to "upload" | ||
Then I fill in "name" with "res1" | ||
Then I fill in "description" with "description" | ||
Then I fill in "size" with "1024" if present | ||
Then I fill in "resource_visibility" with "FALSE" if present | ||
Then I press the element with xpath "//button[@value='go-metadata']" | ||
And I wait for 10 seconds | ||
Then I should see "Data and Resources" | ||
|
||
When I go to "/dataset/edit/dataset-deletion" | ||
Then I press the element with xpath "//a[@data-module='confirm-action']" | ||
And I wait for 5 seconds | ||
Then I should see "Briefly describe the reason for deleting this dataset" | ||
And I should see an element with xpath "//div[@class='modal-footer']//button[@class='btn btn-primary' and @disabled='disabled']" | ||
When I type "it should be longer than 10 characters" to "deletion_reason" | ||
When I fill in "deletion_reason" with "it should be longer than 10 characters" | ||
Then I should not see an element with xpath "//div[@class='modal-footer']//button[@class='btn btn-primary' and @disabled='disabled']" | ||
Then I press the element with xpath "//div[@class='modal-footer']//button[@class='btn btn-primary']" | ||
And I wait for 5 seconds | ||
Then I should see "Dataset has been deleted" | ||
And I reload page every 2 seconds until I see an element with xpath "//div[contains(@class, "alert") and contains(text(), "Dataset has been deleted")]" but not more than 5 times | ||
And I should not see "Dataset deletion" | ||
When I go to "/ckan-admin/trash" | ||
Then I should see "Dataset deletion" | ||
|
Oops, something went wrong.