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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
add a new gis raster integration test #700
Conversation
# a zipped copy is available at spec/fixtures/gis_integration_test_data.zip | ||
test_data_source_folder = File.join(Settings.gis.robots_content_root, 'integration_test_data') | ||
# a zipped copy is available at spec/fixtures/gis_integration_test_data_vector.zip | ||
test_data_source_folder = File.join(Settings.gis.robots_content_root, 'integration_test_data_vector') | ||
test_data_destination_folder = File.join(DruidTools::Druid.new(druid, Settings.gis.robots_content_root).path, 'content') |
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.
new folder name for this existing test data to distinguish from raster based test data
expect(page).to have_no_text(object_label) # the original object label has been replaced | ||
expect(page).to have_text('Air Monitoring Stations: California, 2001-2003') # with the new object label | ||
expect(page).to have_text('This point shapefile represents all air monitoring stations active in ' \ | ||
'California from 2001 until 2003') # abstract | ||
expect(page).to have_text('cartographic') # type of resource |
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.
we don't need to use expect_text_on_purl_page
method, since this just makes an unnecessary reload of the PURL page
expect(page).to have_no_text(object_label) # the original object label has been replaced | ||
expect(page).to have_text('Air Monitoring Stations: California, 2001-2003') # with the new object label | ||
expect(page).to have_text('This point shapefile represents all air monitoring stations active in ' \ | ||
'California from 2001 until 2003') # abstract | ||
expect(page).to have_text('cartographic') # type of resource |
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.
we don't need to use expect_text_on_purl_page
method, since this just makes an unnecessary reload of the PURL page
Why was this change made? 馃
Fixes #699 - add a GIS integration test for raster based objects
Confirmed on localhost running all GIS tests on stage.
Note that I only made a new GIS pre-assembly raster spec, since that is adequate to confirm it works (no need to also do a new manual GIS integration test with raster data that does it the manual way, since the actual accessioning workflows are the same once you get past pre-assembly).
NOTE: once merged, we can remove the folder
/gis_workflow_data/stage/integration_test_data
onkurma-robots-stage-01.stanford.edu
since that has been copied to/gis_workflow_data/stage/integration_test_data_vector