From 0c6d88fab8838f4e142d4eb2710ddaaabaa9dfce 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 (cherry picked from commit f5e88e1d113d5fbeeac2e52a2b2f9b03ace174fa) --- .../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 81c1c0e2875aa..5eaed1c1ef64c 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 @@ -212,7 +212,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