mirror of
https://github.com/quay/quay.git
synced 2026-01-26 06:21:37 +03:00
* test(web): migrate repository-autopruning to Playwright Consolidate 17 Cypress tests into 6 Playwright tests: - policy lifecycle (create, update, delete) - policy with tag pattern filter - multiple policies lifecycle - namespace policy display in repository settings - registry policy display - error handling (load failure) Uses @feature:AUTO_PRUNE tag for automatic test skipping. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * test: enable features by default Signed-off-by: Brady Pratt <bpratt@redhat.com> * test(web): migrate create-account.cy.ts to Playwright Migrates the Create Account Cypress tests to Playwright following the MIGRATION.md guide: - Consolidates 10 Cypress tests into 6 focused Playwright tests - Uses real API calls instead of mocks - Adds data-testid attributes to CreateAccount component - Uses @feature:MAILING and @feature:QUOTA_MANAGEMENT tags to skip tests when features are not enabled - Creates custom fixtures for unauthenticated page access - Implements proper user cleanup after tests Tests: - form validation prevents invalid submissions - creates account with valid inputs and redirects - shows error for existing username - navigates to signin page via link - shows verification message (requires MAILING) - redirects to updateuser (requires QUOTA_MANAGEMENT) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Brady Pratt <bpratt@redhat.com> * chore(dev) add Mailpit for local email testing Add Mailpit email testing server to the local development environment to enable testing of FEATURE_MAILING functionality with Playwright. Changes: - Add mailpit service to docker-compose.yaml (ports 8025/1025) - Enable FEATURE_MAILING and configure SMTP settings in config.yaml - Add mailpit utilities to Playwright fixtures (getEmails, clearInbox, waitForEmail, getEmailBody, isAvailable) Usage: podman-compose up mailpit -d # Access Web UI at http://localhost:8025 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * test(web) use mailpit helpers for email confirmation support Test updates: - "creates account and redirects to organization" now confirms email - "redirects to updateuser when user has prompts" now confirms email - Tests detect FEATURE_MAILING at runtime and adapt accordingly - Email search uses recipient address for parallel test safety 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Brady Pratt <bpratt@redhat.com> * test(web): use mailpit for email notification test Replace mocked email authorization with real Mailpit verification in the notifications.spec.ts test. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Brady Pratt <bpratt@redhat.com> * test(web): mock user response in cypress test this broke when mailing was enabled Signed-off-by: Brady Pratt <bpratt@redhat.com> --------- Signed-off-by: Brady Pratt <bpratt@redhat.com> Co-authored-by: Claude <noreply@anthropic.com>
115 lines
3.2 KiB
YAML
115 lines
3.2 KiB
YAML
SUPER_USERS:
|
|
- admin
|
|
- user1
|
|
- quayadmin
|
|
GLOBAL_READONLY_SUPER_USERS:
|
|
- quayadmin
|
|
- readonly
|
|
AUTHENTICATION_TYPE: Database
|
|
BITTORRENT_FILENAME_PEPPER: 0ee18f90-5b6d-42d2-ab5e-ec9fcd846272
|
|
BUILDLOGS_REDIS:
|
|
host: quay-redis
|
|
port: 6379
|
|
DB_URI: postgresql://quay:quay@quay-db/quay
|
|
DATABASE_SECRET_KEY: '30060361640793187613697366923211113205676925445650250274752125083971638376224'
|
|
DEFAULT_TAG_EXPIRATION: 2w
|
|
DISTRIBUTED_STORAGE_CONFIG:
|
|
default:
|
|
- LocalStorage
|
|
- storage_path: /datastorage/registry
|
|
DISTRIBUTED_STORAGE_DEFAULT_LOCATIONS: []
|
|
DISTRIBUTED_STORAGE_PREFERENCE:
|
|
- default
|
|
ENTERPRISE_LOGO_URL: /static/img/quay-horizontal-color.svg
|
|
EXTERNAL_TLS_TERMINATION: true
|
|
FEATURE_ANONYMOUS_ACCESS: true
|
|
FEATURE_SUPER_USERS: true
|
|
FEATURE_SUPERUSERS_FULL_ACCESS: true
|
|
FEATURE_APP_REGISTRY: false
|
|
FEATURE_APP_SPECIFIC_TOKENS: true
|
|
FEATURE_BUILD_SUPPORT: false
|
|
FEATURE_CHANGE_TAG_EXPIRATION: true
|
|
FEATURE_DIRECT_LOGIN: true
|
|
FEATURE_GARBAGE_COLLECTION: false
|
|
FEATURE_IMAGE_PULL_STATS: false
|
|
FEATURE_MAILING: true
|
|
FEATURE_PARTIAL_USER_AUTOCOMPLETE: true
|
|
FEATURE_REPO_MIRROR: true
|
|
FEATURE_REQUIRE_TEAM_INVITE: true
|
|
FEATURE_RESTRICTED_V1_PUSH: false
|
|
FEATURE_SECURITY_NOTIFICATIONS: false
|
|
FEATURE_SECURITY_SCANNER: true
|
|
FEATURE_USERNAME_CONFIRMATION: true
|
|
FEATURE_USER_CREATION: true
|
|
FEATURE_USER_LOG_ACCESS: false
|
|
FEATURE_PROXY_CACHE: true
|
|
GITHUB_LOGIN_CONFIG: {}
|
|
GITHUB_TRIGGER_CONFIG: {}
|
|
GITLAB_TRIGGER_KIND: {}
|
|
LOG_ARCHIVE_LOCATION: default
|
|
MAIL_DEFAULT_SENDER: quay@localhost
|
|
MAIL_SERVER: quay-mailpit
|
|
MAIL_PORT: 1025
|
|
MAIL_USE_TLS: false
|
|
PREFERRED_URL_SCHEME: http
|
|
REGISTRY_TITLE: Red Hat Quay
|
|
REGISTRY_TITLE_SHORT: Red Hat Quay
|
|
REPO_MIRROR_SERVER_HOSTNAME: null
|
|
REPO_MIRROR_TLS_VERIFY: false
|
|
SECURITY_SCANNER_V4_ENDPOINT: http://localhost:6000
|
|
SECURITY_SCANNER_V4_NAMESPACE_WHITELIST:
|
|
- "clairv4-org"
|
|
SECURITY_SCANNER_ISSUER_NAME: security_scanner
|
|
SERVER_HOSTNAME: localhost:8080
|
|
SETUP_COMPLETE: true
|
|
SIGNING_ENGINE: gpg2
|
|
TAG_EXPIRATION_OPTIONS:
|
|
- 0s
|
|
- 1d
|
|
- 1w
|
|
- 2w
|
|
- 4w
|
|
TEAM_RESYNC_STALE_TIME: 60m
|
|
TESTING: false
|
|
USERFILES_LOCATION: default
|
|
USERFILES_PATH: userfiles/
|
|
USER_EVENTS_REDIS:
|
|
host: quay-redis
|
|
port: 6379
|
|
PULL_METRICS_REDIS:
|
|
host: quay-redis
|
|
port: 6379
|
|
db: 1
|
|
USE_CDN: false
|
|
FEATURE_QUOTA_MANAGEMENT: true
|
|
FEATURE_EDIT_QUOTA: true
|
|
FEATURE_AUTO_PRUNE: true
|
|
BROWSER_API_CALLS_XHR_ONLY: False
|
|
# CORS_ORIGIN: "https://stage.foo.redhat.com:1337 http://localhost:9000/"
|
|
CORS_ORIGIN:
|
|
- "https://stage.foo.redhat.com:1337"
|
|
- "http://localhost:9000"
|
|
FEATURE_UI_V2: True
|
|
FEATURE_USER_METADATA: True
|
|
# Local Keycloak OIDC provider (PKCE disabled initially)
|
|
SOMEOIDC_LOGIN_CONFIG:
|
|
SERVICE_NAME: "Keycloak"
|
|
OIDC_SERVER: "http://host.containers.internal:8081/realms/quay/"
|
|
CLIENT_ID: "quay-ui"
|
|
CLIENT_SECRET: "KbIEbjqeK73iL6zhXZLaVSOCiD5mhB3h"
|
|
LOGIN_SCOPES: ["openid", "profile", "email"]
|
|
DEBUGGING: true
|
|
USE_PKCE: true
|
|
PKCE_METHOD: "S256"
|
|
PUBLIC_CLIENT: true # omit client_secret during token request when client is public
|
|
#RHSSO_LOGIN_CONFIG:
|
|
# CLIENT_ID: stage.quay.io
|
|
# CLIENT_SECRET: SECRET
|
|
# OIDC_SERVER: https://sso.stage.redhat.com/auth/realms/redhat-external/
|
|
# SERVICE_NAME: Red Hat
|
|
# SERVICE_ICON: /static/img/RedHat.svg
|
|
# VERIFIED_EMAIL_CLAIM_NAME: email
|
|
# PREFERRED_USERNAME_CLAIM_NAME: preferred_username
|
|
# LOGIN_SCOPES: ['openid']
|
|
DEFAULT_UI: "angular"
|