diff --git a/tests_new/integration_tests/modules/feed/test_feed.py b/tests_new/integration_tests/modules/feed/test_feed.py index 17f984770..8702fbcf5 100644 --- a/tests_new/integration_tests/modules/feed/test_feed.py +++ b/tests_new/integration_tests/modules/feed/test_feed.py @@ -42,3 +42,15 @@ def test_get_feed_invalid(client1, session_s3_dataset1): assert_that(get_feed).raises(GqlError).when_called_with(client1, None, S3_DATASET_TARGET_TYPE).contains( 'targetUri', 'must not be null' ) + + +def test_post_feed_message_unauthorized(client2, session_s3_dataset1): + assert_that(post_feed_message).raises(GqlError).when_called_with( + client2, session_s3_dataset1.datasetUri, None, None + ).contains('UnauthorizedOperation', 'GET_DATASET', session_s3_dataset1.datasetUri) + + +def test_get_feed_unauthorized(client2, session_s3_dataset1): + assert_that(get_feed).raises(GqlError).when_called_with(client2, session_s3_dataset1.datasetUri, None).contains( + 'UnauthorizedOperation', 'GET_DATASET', session_s3_dataset1.datasetUri + )