tests.test_magpie

Attributes

CURR_DIR

Classes

TestMagpie

Tests different methods found in the Magpie handler.

Functions

create_user(→ int)

delete_user(→ None)

create_group(→ int)

delete_group(→ None)

create_service(→ int)

delete_service(→ None)

delete_all_services(→ None)

Module Contents

tests.test_magpie.CURR_DIR[source]
tests.test_magpie.create_user(magpie: cowbird.handlers.impl.magpie.Magpie, user_name: str, email: str, password: str, group_name: str) int[source]
tests.test_magpie.delete_user(magpie: cowbird.handlers.impl.magpie.Magpie, user_name: str) None[source]
tests.test_magpie.create_group(magpie: cowbird.handlers.impl.magpie.Magpie, group_name: str, descr: str, discoverable: bool, terms: str) int[source]
tests.test_magpie.delete_group(magpie: cowbird.handlers.impl.magpie.Magpie, group_name: str) None[source]
tests.test_magpie.create_service(magpie: cowbird.handlers.impl.magpie.Magpie, service_data: Dict[str, str]) int[source]
tests.test_magpie.delete_service(magpie: cowbird.handlers.impl.magpie.Magpie, service_name: str) None[source]
tests.test_magpie.delete_all_services(magpie: cowbird.handlers.impl.magpie.Magpie) None[source]
class tests.test_magpie.TestMagpie[source]

Tests different methods found in the Magpie handler.

These tests require a running instance of Magpie.

setup_class()[source]
setup(tmpdir)[source]
test_get_or_create_layer_resource_id()[source]

Tests the method used with geoserver to get a layer resource id.

test_create_permission_by_res_id()[source]

Tests the method used to create a permission on a specific resource id.