Bug #42812
closed
mgr/dashboard: Unit test is failing because of the timezone
Added by Tiago Melo over 4 years ago.
Updated about 3 years ago.
Description
RBD snapshot has an unit test that only validates positive timezones.
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 31632
- Status changed from Fix Under Review to Resolved
- Target version set to v15.0.0
We need to backport this to nautilus.
An test failed on nautilus: https://jenkins.ceph.com/job/ceph-pull-requests/49181/console
..
● RbdSnapshotListComponent › snapshot modal dialog › should display suggested snapshot name
expect(received).toMatch(expected)
Expected pattern: /^image01_[\d-]+T[\d.:]+\+[\d:]+$/
Received string: "image01_2020-04-08T01:29:22.911-04:00"
212 | it('should display suggested snapshot name', () => {
213 | component.openCreateSnapshotModal();
> 214 | expect(component.modalRef.content.snapName).toMatch(
| ^
215 | RegExp(`^${component.rbdName}_[\\d-]+T[\\d.:]+\\+[\\d:]+\$`)
216 | );
217 | });
- Status changed from Resolved to Pending Backport
- Copied to Backport #44995: nautilus: mgr/dashboard: Unit test is failing because of the timezone added
- Status changed from Pending Backport to Resolved
- Is duplicate of Bug #42243: mgr/dashboard: Fix unit test that is failing in a negative timezone added
- Project changed from mgr to Dashboard
- Category changed from 165 to UI
Also available in: Atom
PDF