From 5ad8b6779db0ffacf876e254621ee7111f7f82b0 Mon Sep 17 00:00:00 2001 From: Mohammed Rafi KC Date: Sat, 18 Aug 2018 01:25:34 +0530 Subject: snapshot:Fail snapshot creation if an empty description provided Snapshot description should have a valid string. Creating a snapshot with null value will cause reading from info file to fail with a null exception Change-Id: I9f84154b8e3e7ffefa5438807b3bb9b4e0d964ca updates: bz#1618004 Signed-off-by: Mohammed Rafi KC --- tests/basic/uss.t | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/basic/uss.t b/tests/basic/uss.t index 6cfc0303895..40e556e372e 100644 --- a/tests/basic/uss.t +++ b/tests/basic/uss.t @@ -52,6 +52,7 @@ TEST ln $M0/f1 $M0/dir/f3 TEST $CLI snapshot config activate-on-create enable TEST $CLI volume set $V0 features.uss enable; +TEST ! $CLI snapshot create snap1 $V0 no-timestamp description ""; TEST $CLI snapshot create snap1 $V0 no-timestamp; for i in {11..20} ; do echo "file" > $M0/file$i ; done -- cgit