Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 21 additions & 9 deletions workspaces/quay/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
# [Backstage](https://backstage.io)
# Quay plugin for Backstage

This is your newly scaffolded Backstage App, Good Luck!
This workspace contains plugins for viewing and managing [Quay](https://docs.quay.io/) container registry data within Backstage. They let you surface information about your container images and automate common Quay tasks from your Backstage application.

To start the app, run:
## Plugins

```sh
yarn install
yarn start
```
This workspace is composed of several packages:

- [quay](./plugins/quay/README.md) - The frontend plugin that displays information about your container images from the Quay registry on entity pages.
- [quay-backend](./plugins/quay-backend/README.md) - The backend plugin that queries the Quay API, with support for permissions and OAuth2 access token authentication.
- [quay-actions](./plugins/quay-actions/README.md) - A scaffolder backend module providing software template actions for Quay, such as creating a Quay repository.
- [quay-common](./plugins/quay-common/README.md) - A common library containing shared types and utilities used by the other Quay plugins.

## Quick start

To generate knip reports for this app, run:
You will find detailed installation instructions in each plugin's README file.

```sh
yarn backstage-repo-tools knip-reports
# From your Backstage root directory

# install the frontend plugin
yarn --cwd packages/app add @backstage-community/plugin-quay

# install the backend plugin
yarn --cwd packages/backend add @backstage-community/plugin-quay-backend
```

See the [quay](./plugins/quay/README.md) and [quay-backend](./plugins/quay-backend/README.md) READMEs for configuration and entity page setup.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* Copyright 2024 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import fs from 'fs';
import path from 'path';

/**
* Guards the workspace-level README change for issue #4056.
* Reads workspaces/quay/README.md (the file modified by this contribution).
*/
describe('workspaces/quay/README.md', () => {
// src/__tests__ -> ../../../../ = workspaces/quay/
const readmePath = path.join(__dirname, '../../../../README.md');
const readme = fs.readFileSync(readmePath, 'utf8');

it('replaces the default scaffolded boilerplate', () => {
expect(readme).not.toContain(
'This is your newly scaffolded Backstage App, Good Luck!',
);
expect(readme).toContain('Quay plugin for Backstage');
});

it('lists each Quay package with a link to its plugin README', () => {
expect(readme).toContain('./plugins/quay/README.md');
expect(readme).toContain('./plugins/quay-backend/README.md');
expect(readme).toContain('./plugins/quay-actions/README.md');
expect(readme).toContain('./plugins/quay-common/README.md');
});

it('includes a Quick start section with install guidance', () => {
expect(readme).toContain('## Quick start');
expect(readme).toContain('@backstage-community/plugin-quay');
expect(readme).toContain('@backstage-community/plugin-quay-backend');
});
});
Loading