Skip to content
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

Merged
merged 1 commit into from Mar 6, 2024
Merged

Conversation

peetucket
Copy link
Member

@peetucket peetucket commented Mar 6, 2024

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 on kurma-robots-stage-01.stanford.edu since that has been copied to /gis_workflow_data/stage/integration_test_data_vector

# 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')
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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

@aaron-collier aaron-collier merged commit 5c70959 into main Mar 6, 2024
1 check passed
@aaron-collier aaron-collier deleted the 699-gis-raster-spec branch March 6, 2024 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GIS: add integration test that accessions raster file
2 participants