Skip to content

Commit

Permalink
fix: E2E RBAC tentative (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-silva authored Jul 3, 2024
1 parent 32d0da5 commit ca08607
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/dev-fe-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'pnpm'
cache: "pnpm"
cache-dependency-path: ui/pnpm-lock.yaml

- name: Set up Helm
Expand Down Expand Up @@ -112,10 +112,10 @@ jobs:
--skip-wizard \
--namespaces pg-only
- name: Create Everest test user
- name: Get Everest admin password
shell: bash
run: |
./bin/everestctl accounts create -u ${{ secrets.CI_USER }} -p ${{ secrets.CI_PASSWORD }}
echo "EVEREST_ADMIN_PASSWORD=$(./bin/everestctl accounts initial-admin-password)" >> $GITHUB_ENV
- name: Expose Everest API Server
shell: bash
Expand All @@ -138,15 +138,15 @@ jobs:
- name: Run integration tests
shell: bash
env:
EVEREST_LOCATION_BUCKET_NAME: 'bucket-1'
EVEREST_LOCATION_ACCESS_KEY: 'minioadmin'
EVEREST_LOCATION_SECRET_KEY: 'minioadmin'
EVEREST_LOCATION_REGION: 'us-east-1'
EVEREST_LOCATION_URL: 'https://minio.minio.svc.cluster.local'
CI_USER: '${{ secrets.CI_USER }}'
CI_PASSWORD: '${{ secrets.CI_PASSWORD }}'
MONITORING_USER: 'admin'
MONITORING_PASSWORD: 'admin'
EVEREST_LOCATION_BUCKET_NAME: "bucket-1"
EVEREST_LOCATION_ACCESS_KEY: "minioadmin"
EVEREST_LOCATION_SECRET_KEY: "minioadmin"
EVEREST_LOCATION_REGION: "us-east-1"
EVEREST_LOCATION_URL: "https://minio.minio.svc.cluster.local"
CI_USER: "admin"
CI_PASSWORD: "${{ env.EVEREST_ADMIN_PASSWORD }}"
MONITORING_USER: "admin"
MONITORING_PASSWORD: "admin"
run: |
cd ui
pnpm --filter "@percona/everest" e2e
Expand Down
2 changes: 1 addition & 1 deletion ui/apps/everest/.e2e/global.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ setup('Backup storages', async ({ request }) => {
url: EVEREST_LOCATION_URL,
region: EVEREST_LOCATION_REGION,
verifyTLS: false,
forcePathStyle: false,
forcePathStyle: true,
},
headers: {
Authorization: `Bearer ${token}`,
Expand Down
2 changes: 1 addition & 1 deletion ui/apps/everest/.e2e/utils/backup-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const createBackupStorageFn = async (
url: EVEREST_LOCATION_URL,
region: EVEREST_LOCATION_REGION,
verifyTLS: false,
forcePathStyle: false,
forcePathStyle: true,
};

const response = await request.post('/v1/backup-storages/', {
Expand Down

0 comments on commit ca08607

Please sign in to comment.