File tree Expand file tree Collapse file tree
packages/gooddata-sdk/tests/catalog Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ interactions :
2+ - request :
3+ body : null
4+ headers :
5+ Accept :
6+ - application/json
7+ Accept-Encoding :
8+ - br, gzip, deflate
9+ X-GDC-VALIDATE-RELATIONS :
10+ - ' true'
11+ X-Requested-With :
12+ - XMLHttpRequest
13+ method : GET
14+ uri : http://localhost:3000/api/v1/ailake/object-storages
15+ response :
16+ body :
17+ string :
18+ detail : Your organization does not have the necessary entitlement to use
19+ AI Lake APIs.
20+ status : 403
21+ title : Forbidden
22+ traceId : NORMALIZED_TRACE_ID_000000000000
23+ headers :
24+ Content-Type :
25+ - application/problem+json
26+ DATE : &id001
27+ - PLACEHOLDER
28+ Expires :
29+ - ' 0'
30+ Pragma :
31+ - no-cache
32+ X-Content-Type-Options :
33+ - nosniff
34+ X-GDC-TRACE-ID : *id001
35+ status :
36+ code : 403
37+ message : Forbidden
38+ version : 1
Original file line number Diff line number Diff line change 1010
1111from pathlib import Path
1212
13+ import pytest
1314from gooddata_sdk import CatalogObjectStorageInfo , GoodDataSdk
1415from tests_support .vcrpy_utils import get_vcr
1516
1819_current_dir = Path (__file__ ).parent .absolute ()
1920_fixtures_dir = _current_dir / "fixtures" / "ai_lake"
2021
22+ _cassette_list_object_storages = _fixtures_dir / "test_list_ai_lake_object_storages.yaml"
2123
22- @gd_vcr .use_cassette (str (_fixtures_dir / "test_list_ai_lake_object_storages.yaml" ))
24+
25+ @pytest .mark .skipif (
26+ not _cassette_list_object_storages .exists (),
27+ reason = "Cassette not yet recorded — requires an AI Lake-enabled environment" ,
28+ )
29+ @gd_vcr .use_cassette (str (_cassette_list_object_storages ))
2330def test_list_ai_lake_object_storages (test_config ):
2431 """List registered AI Lake ObjectStorages and verify the response shape."""
2532 sdk = GoodDataSdk .create (host_ = test_config ["host" ], token_ = test_config ["token" ])
You can’t perform that action at this time.
0 commit comments