-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PY3 extension upgrade #350
Changes from all commits
780d87c
e1a5af0
50c6955
4916aae
5977431
c6aa5ea
b2af3ef
fe44788
972deb9
50b48c8
2a03231
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,11 @@ who.log_file = %(cache_dir)s/who_log.ini | |
# Inactive by default, so the session doesn't expire. | ||
# who.timeout = 86400 | ||
|
||
# If ckan redirects to https for whatever reason, the following two config params | ||
# allow ckan to run on https on-demand | ||
# ckan.devserver.ssl_cert = adhoc | ||
# ckan.devserver.ssl_key = adhoc | ||
|
||
## Database Settings | ||
sqlalchemy.url = postgresql://ckan:pass@db/ckan | ||
|
||
|
@@ -130,8 +135,8 @@ solr_url = http://solr:8983/solr/inventory | |
# Note: Add ``datastore`` to enable the CKAN DataStore | ||
# Add ``resource_proxy`` to enable resource proxying and get around the | ||
# same origin policy | ||
# TODO: re-integrate datagov_inventory, dcat_usmetadata, usmetadata, datajson, saml2auth | ||
ckan.plugins = datastore xloader stats text_view recline_view googleanalyticsbasic s3filestore envvars | ||
# TODO: re-integrate dcat_usmetadata, usmetadata, datajson, saml2auth | ||
ckan.plugins = datagov_inventory datastore xloader stats text_view recline_view googleanalyticsbasic s3filestore envvars | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is all good, but it's not added to production.ini There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
|
||
# Define which views should be created by default | ||
# (plugins must be loaded in ckan.plugins) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
describe('Dataset', () => { | ||
|
||
before(() => { | ||
cy.login() | ||
cy.delete_organization('test-organization') | ||
cy.create_organization('test-organization', 'Test organization') | ||
}) | ||
cy.logout(); | ||
cy.login(); | ||
cy.delete_organization('test-organization'); | ||
cy.create_organization('test-organization', 'Test organization'); | ||
}); | ||
|
||
beforeEach(() => { | ||
Cypress.Cookies.preserveOnce('auth_tkt', 'ckan') | ||
}) | ||
Cypress.Cookies.preserveOnce('auth_tkt', 'ckan'); | ||
}); | ||
|
||
after(() => { | ||
cy.delete_dataset('test-dataset-1') | ||
|
@@ -18,7 +19,7 @@ describe('Dataset', () => { | |
it('Creates dataset via API', () => { | ||
cy.fixture('ckan_dataset.json').then((ckan_dataset) => { | ||
cy.create_dataset(ckan_dataset).should((response) => { | ||
expect(response.body).to.have.property('success', true) | ||
expect(response.body).to.have.property('success', true); | ||
}); | ||
}); | ||
}); | ||
|
@@ -28,7 +29,7 @@ describe('Dataset', () => { | |
cy.contains('Test Dataset 1'); | ||
// TODO: re-add the following check to validate usmetadata template is working | ||
// cy.contains('Common Core Metadata'); | ||
}) | ||
}); | ||
|
||
it('Add resource to private dataset via API', () => { | ||
cy.fixture('ckan_resource.csv', 'binary').then((ckan_resource) => { | ||
|
@@ -40,11 +41,12 @@ describe('Dataset', () => { | |
formData.set('name', "test-resource-1"); | ||
formData.set('resource_type', "CSV"); | ||
formData.set('format', "CSV"); | ||
cy.form_request('POST', 'http://app:5000/api/action/resource_create', formData, function (response) { | ||
cy.form_request('POST', '/api/action/resource_create', formData, function (response) { | ||
expect(response.status).to.eq(200); | ||
}); | ||
}); | ||
}) | ||
cy.visit('/dataset'); | ||
}); | ||
Comment on lines
+48
to
+49
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we still want this line here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was to make sure the fixture was captured in the right test. Without this line, the fixture was just run as part of the next test. I don't know if we can write the test differently to capture the fixture properly. |
||
|
||
it('Download resource file', () => { | ||
cy.visit('/dataset/test-dataset-1') | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
describe('Main Page', () => { | ||
|
||
beforeEach(() => { | ||
cy.logout(); | ||
cy.login(); | ||
}); | ||
|
||
it('Load main page with configuration', () => { | ||
cy.visit('/dataset') | ||
cy.contains('Inventory') | ||
cy.visit('/dataset'); | ||
cy.contains('Inventory'); | ||
}); | ||
|
||
it('google tracker injected', () => { | ||
cy.request('/dataset').then((response) => { | ||
expect(response.body).to.have.string('google-analytics-fake-key-testing-87654321') | ||
}) | ||
expect(response.body).to.have.string('google-analytics-fake-key-testing-87654321'); | ||
}); | ||
// cy.contains() | ||
}); | ||
}) | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we just want to add package_show and resource_show, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put a comment on the issue ticket, but there revision history is no longer supported, so those keywords no longer exist either..