airbytehq / airbytehq/PyAirbyte

Cloud tests failing with permission errors (Status 403)

Đang mở
#764 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
344
Fork
77
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
35

Mô tả

# Cloud tests failing with permission errors (Status 403)

## Problem Description

The cloud integration tests in PyAirbyte are failing with permission errors when trying to access job information from the Airbyte Cloud API.

## Failing Tests

- `test_translate_cloud_job_to_sql_cache[Faker->Snowflake]`
- `test_translate_cloud_job_to_sql_cache[Faker->BigQuery]`

## Error Details

```
airbyte_api.errors.sdkerror.SDKError: API error occurred: Status 403
{"status":403,"type":"https://reference.airbyte.com/reference/errors#forbidden","title":"forbidden","detail":"The request is forbidden.","documentationUrl":null,"data":{"message":"Caller does not have the required WORKSPACE_READER permissions to access the resource(s)."}}
```

## Root Cause

The tests are failing because the API credentials being used do not have the required `WORKSPACE_READER` permissions to access job information from the Airbyte Cloud workspace.

## Current Status

- Tests have been marked with `@pytest.mark.xfail` to prevent CI failures while this issue is resolved
- See PR: [will be linked after PR creation]

## Resolution Required

1. Update the API credentials or workspace permissions to grant `WORKSPACE_READER` access
2. Verify the cloud integration tests pass with proper permissions
3. Remove the `@pytest.mark.xfail` markers once tests are working

## Requested by

@aaronsteers - for cloud test investigation and CI stability

## Related Files

- `tests/integration_tests/cloud/test_cloud_sql_reads.py`
- `tests/integration_tests/cloud/conftest.py` (credential configuration)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.