Skip to content

feat(gooddata-sdk): [AUTO] Add BASE_UI_ACCESS to organization permission test fixtures#1452

Closed
yenkins-admin wants to merge 1 commit intomasterfrom
feature/auto-P035-base-ui-access-permission
Closed

feat(gooddata-sdk): [AUTO] Add BASE_UI_ACCESS to organization permission test fixtures#1452
yenkins-admin wants to merge 1 commit intomasterfrom
feature/auto-P035-base-ui-access-permission

Conversation

@yenkins-admin
Copy link
Copy Markdown
Contributor

@yenkins-admin yenkins-admin commented Mar 17, 2026

Add BASE_UI_ACCESS to organization permission test fixtures to align with regenerated API client.

Problem: P035 | Workflow: https://github.com/gooddata/gdc-nas/actions/runs/23194184862

Caution

Test fixtures were modified. Manually edited fixtures may not match real API responses.
Re-record these fixtures against a live server before merging:

  • packages/gooddata-sdk/tests/catalog/fixtures/permissions/put_declarative_organization_permissions.yaml
  • packages/gooddata-sdk/tests/catalog/fixtures/permissions/manage_organization_permissions.yaml

What changed in gdc-nas

  • 3d58a73 — Added BASE_UI_ACCESS to OrganizationPermission enum (child of MANAGE) in both auth-service and metadata-api OpenAPI specs. Added RESTRICT_BASE_UI boolean setting type (default false) with corresponding SettingConfiguration, WorkspaceSetting, UserSetting model updates, gRPC proto and Permissions extension updates.

Related: STL-2322 | Merged via #20450

What was implemented in SDK

The API client was already regenerated and contains both BASE_UI_ACCESS (OrganizationPermission) and RESTRICT_BASE_UI (setting type) in the relevant model files. SDK wrapper code does not hardcode enum values — validation delegates to the API client — so only test fixtures required updating.

Updated test assertions to expect 3 permissions (MANAGE, SELF_CREATE_TOKEN, BASE_UI_ACCESS) instead of 2, and updated VCR cassette YAML files to include BASE_UI_ACCESS in request/response bodies.

Files modified

  • packages/gooddata-sdk/tests/catalog/expected/declarative_organization_permissions.json — Added BASE_UI_ACCESS to expected permissions list
  • packages/gooddata-sdk/tests/catalog/fixtures/permissions/put_declarative_organization_permissions.yaml — Updated cassette to include BASE_UI_ACCESS in request/response bodies
  • packages/gooddata-sdk/tests/catalog/fixtures/permissions/manage_organization_permissions.yaml — Updated cassette to include BASE_UI_ACCESS in request/response bodies
  • packages/gooddata-sdk/tests/catalog/test_catalog_permission.py — Updated assertions to expect BASE_UI_ACCESS

JIRA: PENDING (Jira ticket will be created after review)
Risk: Low

…ion test fixtures

Updated test fixtures and assertions to include the new BASE_UI_ACCESS
OrganizationPermission enum value (child of MANAGE) introduced in the
auth-service and metadata-api OpenAPI specs (PR #20450 / STL-2322).
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.24%. Comparing base (4dc3f87) to head (b9023cd).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1452   +/-   ##
=======================================
  Coverage   77.24%   77.24%           
=======================================
  Files         227      227           
  Lines       14672    14672           
=======================================
  Hits        11334    11334           
  Misses       3338     3338           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hkad98 hkad98 closed this Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants