In the GeoServer publisher tool currently to update a layer in GeoServer, we remove it and then we publish again.
We need to check if we remove correctly the layer from the specific workspace.
We need to investigate because I think the current code try to remove a layer by name in the whole catalogue and not just in the specific workspace.
A useful test could be to publish 2 layers (with the same name) in 2 different workspace and try to call the get_layer method from the catalogue to check the result.
In the GeoServer publisher tool currently to update a layer in GeoServer, we remove it and then we publish again. We need to check if we remove correctly the layer from the specific workspace. We need to investigate because I think the current code try to remove a layer by name in the whole catalogue and not just in the specific workspace.
A useful test could be to publish 2 layers (with the same name) in 2 different workspace and try to call the get_layer method from the catalogue to check the result.