geonode.upload.tests.integration
See the README.rst in this directory for details on running these tests.
@todo allow using a database other than development.db - for some reason, a test db is not created when running using normal settings
@todo when using database settings, a test database is used and this makes it difficult for cleanup to track the layers created between runs
@todo only test_time seems to work correctly with database backend test settings
Attributes
Classes
Functions
|
Function to return an OWSLib WMS object |
Module Contents
- geonode.upload.tests.integration.get_wms(version='1.1.1', type_name=None, username=None, password=None)[source]
Function to return an OWSLib WMS object
- class geonode.upload.tests.integration.UploaderBase[source]
Bases:
geonode.tests.base.GeoNodeBaseTestSupport- check_dataset_geonode_page(path)[source]
Check that the final dataset page render’s correctly after an dataset is uploaded
- check_dataset_geoserver_caps(type_name)[source]
Check that a dataset shows up in GeoServer’s get capabilities document
- check_dataset_geoserver_rest(dataset_name)[source]
Check that a dataset shows up in GeoServer rest api after the uploader is done
- complete_upload(file_path, resp, data, is_raster=False)[source]
Check if a dataset was correctly uploaded to GeoNode.
This method verifies if a dataset is configured properly in both Django and GeoServer.
- Parameters:
file_path (str) – Path to the dataset file.
response (HttpResponse) – Django HTTP response object.
Checks
------
Django. (- Verifies if the dataset is configured in)
GeoServer (- Verifies if the dataset is configured in) –
Checks the REST API.
Checks the GetCapabilities document.
- check_dataset_complete(dataset_page, original_name)[source]
Check everything to verify the dataset is complete
- check_invalid_projection(dataset_name, resp, data)[source]
Makes sure that we got the correct response from an dataset that can’t be uploaded
- check_upload_complete(dataset_name, resp, data)[source]
Makes sure that we got the correct response from an dataset that has been uploaded
- class geonode.upload.tests.integration.TestUpload[source]
Bases:
UploaderBase- test_raster_upload()[source]
Tests if a raster dataset can be upload to a running GeoNode GeoServer
- test_geonode_same_UUID_error()[source]
Ensure a new dataset with same UUID metadata cannot be uploaded
- test_ascii_grid_upload()[source]
Tests the layers that ASCII grid files are uploaded along with aux