def test_bucket_name_validation(self): response = self.app.post( "/_foo_bucket", data='{"foo": "bar"}', content_type="application/json", headers=[("Authorization", "Bearer _foo_bucket-bearer-token")], ) assert_that(response, is_not_found()) assert_that(response, is_error_response())
def test_invalid_data_set_name_returns_400(self): response = self.app.get("/$invalid_data_set/upload") assert_that(response, is_not_found())
def test_invalid_bucket_name_returns_400(self): response = self.app.get("/$invalid_bucket/upload") assert_that(response, is_not_found())