From f5e88e1d113d5fbeeac2e52a2b2f9b03ace174fa Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Thu, 14 Nov 2019 09:48:23 -0100 Subject: [PATCH] mgr/dashboard: Fix error in unit test caused by timezone Unit test was only accepting positive timezones Fixes: https://tracker.ceph.com/issues/42812 Signed-off-by: Tiago Melo --- .../block/rbd-snapshot-list/rbd-snapshot-list.component.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.spec.ts index c752873828ca1..c996e4f24160e 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.spec.ts @@ -203,7 +203,7 @@ describe('RbdSnapshotListComponent', () => { it('should display suggested snapshot name', () => { component.openCreateSnapshotModal(); expect(component.modalRef.content.snapName).toMatch( - RegExp(`^${component.rbdName}_[\\d-]+T[\\d.:]+\\+[\\d:]+\$`) + RegExp(`^${component.rbdName}_[\\d-]+T[\\d.:]+[\\+-][\\d:]+$`) ); }); }); -- 2.39.5