[sheepdog] [PATCH 1/2] tests/func/030: refine test to reflect default format parameter

Hitoshi Mitake mitake.hitoshi at gmail.com
Tue Mar 25 09:29:51 CET 2014


At Tue, 25 Mar 2014 15:25:59 +0800,
Liu Yuan wrote:
> 
> Now we can restore 100% for 'cluster snapshot' so add test for it.
> 
> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
>  tests/functional/030     | 2 ++
>  tests/functional/030.out | 7 +++++++
>  2 files changed, 9 insertions(+)

This one looks good to me.
Reviewed-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>

But adding a case for coexistence of VDIs with different redundancy
and copy policy would be nice.

Thanks,
Hitoshi

> 
> diff --git a/tests/functional/030 b/tests/functional/030
> index 2f3d4dc..460ecc9 100755
> --- a/tests/functional/030
> +++ b/tests/functional/030
> @@ -83,3 +83,5 @@ $DOG vdi read -s 1 test1 | md5sum > $STORE/csum.11.new
>  $DOG vdi read -s 1 test2 | md5sum > $STORE/csum.21.new
>  diff -u $STORE/csum.11.org $STORE/csum.11.new
>  diff -u $STORE/csum.21.org $STORE/csum.21.new
> +
> +$DOG cluster info -s | _filter_cluster_info
> diff --git a/tests/functional/030.out b/tests/functional/030.out
> index c47ffaa..27f8e76 100644
> --- a/tests/functional/030.out
> +++ b/tests/functional/030.out
> @@ -35,3 +35,10 @@ s test1        2   10 MB   12 MB  0.0 MB DATE   fd32fd      6
>  s test2        1   10 MB   12 MB  0.0 MB DATE   fd3815      6              
>  s test2        2   10 MB   12 MB  0.0 MB DATE   fd3816      6              
>    test2        0   10 MB  0.0 MB   12 MB DATE   fd3817      6              
> +Cluster status: running, auto-recovery enabled
> +Cluster store: plain with 6 redundancy policy
> +
> +Cluster created at DATE
> +
> +Epoch Time           Version
> +DATE      1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002, 127.0.0.1:7003, 127.0.0.1:7004, 127.0.0.1:7005]
> -- 
> 1.8.1.2
> 
> -- 
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog



More information about the sheepdog mailing list