forked from quay/quay
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: updating references to status.redhat.com (PROJQUAY-6654) (quay#2645)
Updates references from `status.quay.io` to `status.redhat.com`.
- Loading branch information
Showing
13 changed files
with
513 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/// <reference types="cypress" /> | ||
import {formatDate} from '../../src/libs/utils'; | ||
|
||
describe('Default permissions page', () => { | ||
beforeEach(() => { | ||
cy.exec('npm run quay:seed'); | ||
cy.intercept('GET', '/config', {fixture: 'config.json'}).as('getConfig'); | ||
cy.request('GET', `${Cypress.env('REACT_QUAY_APP_API_URL')}/csrf_token`) | ||
.then((response) => response.body.csrf_token) | ||
.then((token) => { | ||
cy.loginByCSRF(token); | ||
}); | ||
}); | ||
|
||
it('Displays incidents and maintanences', () => { | ||
cy.intercept( | ||
'GET', | ||
'https://dn6mqn7xvzz3.statuspage.io/api/v2/summary.json', | ||
{fixture: 'registry-status.json'}, | ||
); | ||
cy.visit('/organization/testorg'); | ||
cy.contains('incident1').should( | ||
'have.attr', | ||
'href', | ||
'https://stspg.io/incident1', | ||
); | ||
cy.contains('incident2').should( | ||
'have.attr', | ||
'href', | ||
'https://stspg.io/incident2', | ||
); | ||
cy.contains(`Scheduled for ${formatDate('2024-02-09T10:00:00.000-05:00')}`); | ||
cy.contains('maintenance1').should( | ||
'have.attr', | ||
'href', | ||
'https://stspg.io/maintenance1', | ||
); | ||
cy.contains('In progress:'); | ||
cy.contains('maintenance2').should( | ||
'have.attr', | ||
'href', | ||
'https://stspg.io/maintenance2', | ||
); | ||
}); | ||
|
||
it('Displays no incidents and maintanences', () => { | ||
cy.fixture('registry-status.json').then((statusFixture) => { | ||
statusFixture.incidents = []; | ||
statusFixture.scheduled_maintenances = []; | ||
cy.intercept( | ||
'GET', | ||
'https://dn6mqn7xvzz3.statuspage.io/api/v2/summary.json', | ||
statusFixture, | ||
); | ||
}); | ||
cy.visit('/organization/testorg'); | ||
cy.get('#registry-status').should('not.exist'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
{ | ||
"page": { | ||
"id": "dn6mqn7xvzz3", | ||
"name": "Red Hat", | ||
"url": "https://status.redhat.com", | ||
"time_zone": "America/New_York", | ||
"updated_at": "2024-02-06T12:27:50.519-05:00" | ||
}, | ||
"components": [ | ||
{ | ||
"id": "cllr1k2dzsf7", | ||
"name": "Quay.io", | ||
"status": "major_outage", | ||
"created_at": "2024-01-16T15:36:01.802-05:00", | ||
"updated_at": "2024-01-16T16:57:38.322-05:00", | ||
"position": 16, | ||
"description": null, | ||
"showcase": false, | ||
"start_date": null, | ||
"group_id": null, | ||
"page_id": "dn6mqn7xvzz3", | ||
"group": true, | ||
"only_show_if_degraded": false, | ||
"components": [ | ||
"m65lxn2nf6l0", | ||
"6fb8zflt4fbt", | ||
"fvnvxz75h3m2", | ||
"02hhmtl31chv", | ||
"4y37q0jspj5n" | ||
] | ||
}, | ||
{ | ||
"id": "m65lxn2nf6l0", | ||
"name": "API", | ||
"status": "major_outage", | ||
"created_at": "2024-01-16T15:36:01.876-05:00", | ||
"updated_at": "2024-01-16T15:36:01.876-05:00", | ||
"position": 1, | ||
"description": null, | ||
"showcase": false, | ||
"start_date": "2024-01-16", | ||
"group_id": "cllr1k2dzsf7", | ||
"page_id": "dn6mqn7xvzz3", | ||
"group": false, | ||
"only_show_if_degraded": false | ||
}, | ||
{ | ||
"id": "6fb8zflt4fbt", | ||
"name": "Build System", | ||
"status": "partial_outage", | ||
"created_at": "2024-01-16T15:38:09.519-05:00", | ||
"updated_at": "2024-01-16T15:38:09.519-05:00", | ||
"position": 2, | ||
"description": null, | ||
"showcase": false, | ||
"start_date": "2024-01-16", | ||
"group_id": "cllr1k2dzsf7", | ||
"page_id": "dn6mqn7xvzz3", | ||
"group": false, | ||
"only_show_if_degraded": false | ||
}, | ||
{ | ||
"id": "fvnvxz75h3m2", | ||
"name": "Registry", | ||
"status": "operational", | ||
"created_at": "2024-01-16T15:38:30.060-05:00", | ||
"updated_at": "2024-01-16T15:38:30.060-05:00", | ||
"position": 3, | ||
"description": null, | ||
"showcase": false, | ||
"start_date": "2024-01-16", | ||
"group_id": "cllr1k2dzsf7", | ||
"page_id": "dn6mqn7xvzz3", | ||
"group": false, | ||
"only_show_if_degraded": false | ||
}, | ||
{ | ||
"id": "02hhmtl31chv", | ||
"name": "Frontend", | ||
"status": "operational", | ||
"created_at": "2024-01-16T15:38:44.726-05:00", | ||
"updated_at": "2024-01-16T15:38:44.726-05:00", | ||
"position": 4, | ||
"description": null, | ||
"showcase": false, | ||
"start_date": "2024-01-16", | ||
"group_id": "cllr1k2dzsf7", | ||
"page_id": "dn6mqn7xvzz3", | ||
"group": false, | ||
"only_show_if_degraded": false | ||
}, | ||
{ | ||
"id": "4y37q0jspj5n", | ||
"name": "Security Scanning", | ||
"status": "operational", | ||
"created_at": "2024-01-16T15:38:59.314-05:00", | ||
"updated_at": "2024-01-16T15:38:59.314-05:00", | ||
"position": 5, | ||
"description": null, | ||
"showcase": false, | ||
"start_date": "2024-01-16", | ||
"group_id": "cllr1k2dzsf7", | ||
"page_id": "dn6mqn7xvzz3", | ||
"group": false, | ||
"only_show_if_degraded": false | ||
} | ||
], | ||
"incidents": [ | ||
{ | ||
"name": "incident1", | ||
"shortlink": "https://stspg.io/incident1", | ||
"components": [ | ||
{ | ||
"id": "m65lxn2nf6l0" | ||
}, | ||
{ | ||
"id": "6fb8zflt4fbt" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "incident2", | ||
"shortlink": "https://stspg.io/incident2", | ||
"components": [ | ||
{ | ||
"id": "m65lxn2nf6l0" | ||
}, | ||
{ | ||
"id": "6fb8zflt4fbt" | ||
} | ||
] | ||
} | ||
], | ||
"scheduled_maintenances": [ | ||
{ | ||
"status": "scheduled", | ||
"name": "maintenance1", | ||
"shortlink": "https://stspg.io/maintenance1", | ||
"components": [ | ||
{ | ||
"id": "m65lxn2nf6l0" | ||
}, | ||
{ | ||
"id": "6fb8zflt4fbt" | ||
} | ||
], | ||
"scheduled_for": "2024-02-09T10:00:00.000-05:00" | ||
}, | ||
{ | ||
"name": "maintenance2", | ||
"status": "in_progress", | ||
"shortlink": "https://stspg.io/maintenance2", | ||
"components": [ | ||
{ | ||
"id": "m65lxn2nf6l0" | ||
}, | ||
{ | ||
"id": "6fb8zflt4fbt" | ||
} | ||
], | ||
"scheduled_for": "2024-02-09T10:00:00.000-05:00" | ||
} | ||
], | ||
"status": { | ||
"indicator": "none", | ||
"description": "All Systems Operational" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.