Skip to content

Commit

Permalink
Test map metadata comparison with X-Forwarded-Prefix header
Browse files Browse the repository at this point in the history
  • Loading branch information
index-git committed Sep 18, 2023
1 parent 9d2cc5a commit a3f188f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/asserts/final/publication/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def correct_values_in_metadata(workspace, publ_type, name, http_method, *, exp_v
expected_values_in_micka_metadata(workspace, publ_type, name, exp_metadata)


def correct_layer_comparison_response_with_x_forwarded_prefix_header(workspace, publ_type, name, *, actor_name=None, headers=None):
def correct_comparison_response_with_x_forwarded_prefix_header(workspace, publ_type, name, *, actor_name=None, headers=None):
proxy_prefix = '/layman-proxy'
headers = headers or {}
actor_name = actor_name or settings.ANONYM_USER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ def test_layer(layer, params, rest_args, rest_method, parametrization):
asserts_publ.geoserver_proxy.is_complete_in_workspace_wms(layer.workspace, layer.type, layer.name,
version='1.1.1')
asserts_publ.geoserver_proxy.wms_legend_url_with_x_forwarded_prefix(layer.workspace, layer.type, layer.name, )
asserts_publ.metadata.correct_layer_comparison_response_with_x_forwarded_prefix_header(layer.workspace, layer.type, layer.name, )
asserts_publ.metadata.correct_comparison_response_with_x_forwarded_prefix_header(layer.workspace, layer.type, layer.name, )
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def test_publication(self, map, rest_method, rest_args, params):
rest_method.fn(map, args=rest_args)
if rest_method.enum_item in [base_test_classes.RestMethodAll.POST, base_test_classes.RestMethodAll.PATCH]:
assert_util.is_publication_valid_and_complete(map)
asserts_publ.metadata.correct_layer_comparison_response_with_x_forwarded_prefix_header(map.workspace, map.type, map.name, )
asserts_publ.metadata.correct_comparison_response_with_x_forwarded_prefix_header(map.workspace, map.type, map.name, )

exp = params['exp_after_rest_method']
http_method = REQUEST_METHOD_PATCH if rest_method.enum_item == base_test_classes.RestMethodAll.PATCH else REQUEST_METHOD_POST
Expand Down

0 comments on commit a3f188f

Please sign in to comment.