Exemplo n.º 1
0
    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())
Exemplo n.º 2
0
 def test_invalid_data_set_name_returns_400(self):
     response = self.app.get("/$invalid_data_set/upload")
     assert_that(response, is_not_found())
Exemplo n.º 3
0
 def test_invalid_bucket_name_returns_400(self):
     response = self.app.get("/$invalid_bucket/upload")
     assert_that(response, is_not_found())