Skip to content

chore(quay): add e2e tests for multiinstance#9104

Merged
dzemanov merged 3 commits into
backstage:mainfrom
dzemanov:quay-e2e-multiinstance
May 11, 2026
Merged

chore(quay): add e2e tests for multiinstance#9104
dzemanov merged 3 commits into
backstage:mainfrom
dzemanov:quay-e2e-multiinstance

Conversation

@dzemanov
Copy link
Copy Markdown
Contributor

Hey, I just made a Pull Request!

Adds e2e tests for Quay multiinstance.
Adds 1 new page to dev app: Multi-instance.
Adds more unit tests for multi-instance cases.

Fixes

Fixes https://redhat.atlassian.net/browse/RHIDP-9428

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

dzemanov added 2 commits May 11, 2026 11:13
Signed-off-by: Dominika Zemanovicova <dzemanov@redhat.com>
Signed-off-by: Dominika Zemanovicova <dzemanov@redhat.com>
@backstage-goalie
Copy link
Copy Markdown
Contributor

Missing Changesets

The following package(s) are changed by this PR but do not have a changeset:

  • @backstage-community/plugin-quay

See CONTRIBUTING.md for more information about how to add changesets.

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-quay workspaces/quay/plugins/quay none v1.32.0

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Quay multi-instance coverage across the plugin’s dev app, e2e suite, and unit tests to validate instance selection behavior and error handling (RHIDP-9428).

Changes:

  • Added a new dev app route (/quay/multi-instance) backed by a mock entity annotated with a non-default Quay instance.
  • Added Playwright e2e coverage to verify multi-instance affects both repository URL generation and returned tag/security-scan data.
  • Expanded unit test coverage for multi-instance configuration validation and “unknown instance” error handling in hooks and API client.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
workspaces/quay/plugins/quay/tests/quay.spec.ts Adds an e2e test validating multi-instance routing, URL, and data differences
workspaces/quay/plugins/quay/src/hooks/useTags.test.ts Adds hook test coverage for unknown instance failure behavior
workspaces/quay/plugins/quay/src/hooks/useRepository.test.ts Expands coverage for missing instance annotation handling
workspaces/quay/plugins/quay/src/components/useQuayAppData.test.ts Adds coverage for optional instance annotation parsing
workspaces/quay/plugins/quay/src/components/QuayRepository/QuayRepository.test.tsx Verifies title-link behavior based on presence/absence of instance UI URL
workspaces/quay/plugins/quay/src/api/index.test.ts Adds validation tests for mixed configs and unknown instance requests
workspaces/quay/plugins/quay/src/api/index.backend.test.ts Adds backend test for unknown instance request behavior
workspaces/quay/plugins/quay/dev/index.tsx Adds dev app “Multi-instance” page and enhances mock API behavior for instance-aware responses
workspaces/quay/plugins/quay/dev/data/security_vulnerabilities.ts Introduces digest→security-details mapping used by the dev mock
workspaces/quay/plugins/quay/dev/data/entity.ts Adds mock entities for default + non-default (devel) instance scenarios

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Dominika Zemanovicova <dzemanov@redhat.com>
Copy link
Copy Markdown
Member

@djanickova djanickova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dzemanov dzemanov merged commit 1074f32 into backstage:main May 11, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants