From 3975d76f23c00a2a4a41d6ca72bc71f64d6d5aba Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 13 Sep 2016 21:20:41 +0200 Subject: [PATCH] Correct filenames for expire policy tests --- src/restic/snapshot_filter_test.go | 2 +- .../testdata/{expired_snapshots_0 => policy_keep_snapshots_0} | 0 .../testdata/{expired_snapshots_1 => policy_keep_snapshots_1} | 0 .../testdata/{expired_snapshots_10 => policy_keep_snapshots_10} | 0 .../testdata/{expired_snapshots_11 => policy_keep_snapshots_11} | 0 .../testdata/{expired_snapshots_12 => policy_keep_snapshots_12} | 0 .../testdata/{expired_snapshots_13 => policy_keep_snapshots_13} | 0 .../testdata/{expired_snapshots_14 => policy_keep_snapshots_14} | 0 .../testdata/{expired_snapshots_15 => policy_keep_snapshots_15} | 0 .../testdata/{expired_snapshots_16 => policy_keep_snapshots_16} | 0 .../testdata/{expired_snapshots_17 => policy_keep_snapshots_17} | 0 .../testdata/{expired_snapshots_18 => policy_keep_snapshots_18} | 0 .../testdata/{expired_snapshots_2 => policy_keep_snapshots_2} | 0 .../testdata/{expired_snapshots_3 => policy_keep_snapshots_3} | 0 .../testdata/{expired_snapshots_4 => policy_keep_snapshots_4} | 0 .../testdata/{expired_snapshots_5 => policy_keep_snapshots_5} | 0 .../testdata/{expired_snapshots_6 => policy_keep_snapshots_6} | 0 .../testdata/{expired_snapshots_7 => policy_keep_snapshots_7} | 0 .../testdata/{expired_snapshots_8 => policy_keep_snapshots_8} | 0 .../testdata/{expired_snapshots_9 => policy_keep_snapshots_9} | 0 20 files changed, 1 insertion(+), 1 deletion(-) rename src/restic/testdata/{expired_snapshots_0 => policy_keep_snapshots_0} (100%) rename src/restic/testdata/{expired_snapshots_1 => policy_keep_snapshots_1} (100%) rename src/restic/testdata/{expired_snapshots_10 => policy_keep_snapshots_10} (100%) rename src/restic/testdata/{expired_snapshots_11 => policy_keep_snapshots_11} (100%) rename src/restic/testdata/{expired_snapshots_12 => policy_keep_snapshots_12} (100%) rename src/restic/testdata/{expired_snapshots_13 => policy_keep_snapshots_13} (100%) rename src/restic/testdata/{expired_snapshots_14 => policy_keep_snapshots_14} (100%) rename src/restic/testdata/{expired_snapshots_15 => policy_keep_snapshots_15} (100%) rename src/restic/testdata/{expired_snapshots_16 => policy_keep_snapshots_16} (100%) rename src/restic/testdata/{expired_snapshots_17 => policy_keep_snapshots_17} (100%) rename src/restic/testdata/{expired_snapshots_18 => policy_keep_snapshots_18} (100%) rename src/restic/testdata/{expired_snapshots_2 => policy_keep_snapshots_2} (100%) rename src/restic/testdata/{expired_snapshots_3 => policy_keep_snapshots_3} (100%) rename src/restic/testdata/{expired_snapshots_4 => policy_keep_snapshots_4} (100%) rename src/restic/testdata/{expired_snapshots_5 => policy_keep_snapshots_5} (100%) rename src/restic/testdata/{expired_snapshots_6 => policy_keep_snapshots_6} (100%) rename src/restic/testdata/{expired_snapshots_7 => policy_keep_snapshots_7} (100%) rename src/restic/testdata/{expired_snapshots_8 => policy_keep_snapshots_8} (100%) rename src/restic/testdata/{expired_snapshots_9 => policy_keep_snapshots_9} (100%) diff --git a/src/restic/snapshot_filter_test.go b/src/restic/snapshot_filter_test.go index 64e8ccc13..46257fb50 100644 --- a/src/restic/snapshot_filter_test.go +++ b/src/restic/snapshot_filter_test.go @@ -239,7 +239,7 @@ func TestApplyPolicy(t *testing.T) { t.Logf("test %d: forget snapshot at %v %s\n", i, sn.Time, sn.Tags) } - goldenFilename := filepath.Join("testdata", fmt.Sprintf("expired_snapshots_%d", i)) + goldenFilename := filepath.Join("testdata", fmt.Sprintf("policy_keep_snapshots_%d", i)) if *updateGoldenFiles { buf, err := json.MarshalIndent(keep, "", " ") diff --git a/src/restic/testdata/expired_snapshots_0 b/src/restic/testdata/policy_keep_snapshots_0 similarity index 100% rename from src/restic/testdata/expired_snapshots_0 rename to src/restic/testdata/policy_keep_snapshots_0 diff --git a/src/restic/testdata/expired_snapshots_1 b/src/restic/testdata/policy_keep_snapshots_1 similarity index 100% rename from src/restic/testdata/expired_snapshots_1 rename to src/restic/testdata/policy_keep_snapshots_1 diff --git a/src/restic/testdata/expired_snapshots_10 b/src/restic/testdata/policy_keep_snapshots_10 similarity index 100% rename from src/restic/testdata/expired_snapshots_10 rename to src/restic/testdata/policy_keep_snapshots_10 diff --git a/src/restic/testdata/expired_snapshots_11 b/src/restic/testdata/policy_keep_snapshots_11 similarity index 100% rename from src/restic/testdata/expired_snapshots_11 rename to src/restic/testdata/policy_keep_snapshots_11 diff --git a/src/restic/testdata/expired_snapshots_12 b/src/restic/testdata/policy_keep_snapshots_12 similarity index 100% rename from src/restic/testdata/expired_snapshots_12 rename to src/restic/testdata/policy_keep_snapshots_12 diff --git a/src/restic/testdata/expired_snapshots_13 b/src/restic/testdata/policy_keep_snapshots_13 similarity index 100% rename from src/restic/testdata/expired_snapshots_13 rename to src/restic/testdata/policy_keep_snapshots_13 diff --git a/src/restic/testdata/expired_snapshots_14 b/src/restic/testdata/policy_keep_snapshots_14 similarity index 100% rename from src/restic/testdata/expired_snapshots_14 rename to src/restic/testdata/policy_keep_snapshots_14 diff --git a/src/restic/testdata/expired_snapshots_15 b/src/restic/testdata/policy_keep_snapshots_15 similarity index 100% rename from src/restic/testdata/expired_snapshots_15 rename to src/restic/testdata/policy_keep_snapshots_15 diff --git a/src/restic/testdata/expired_snapshots_16 b/src/restic/testdata/policy_keep_snapshots_16 similarity index 100% rename from src/restic/testdata/expired_snapshots_16 rename to src/restic/testdata/policy_keep_snapshots_16 diff --git a/src/restic/testdata/expired_snapshots_17 b/src/restic/testdata/policy_keep_snapshots_17 similarity index 100% rename from src/restic/testdata/expired_snapshots_17 rename to src/restic/testdata/policy_keep_snapshots_17 diff --git a/src/restic/testdata/expired_snapshots_18 b/src/restic/testdata/policy_keep_snapshots_18 similarity index 100% rename from src/restic/testdata/expired_snapshots_18 rename to src/restic/testdata/policy_keep_snapshots_18 diff --git a/src/restic/testdata/expired_snapshots_2 b/src/restic/testdata/policy_keep_snapshots_2 similarity index 100% rename from src/restic/testdata/expired_snapshots_2 rename to src/restic/testdata/policy_keep_snapshots_2 diff --git a/src/restic/testdata/expired_snapshots_3 b/src/restic/testdata/policy_keep_snapshots_3 similarity index 100% rename from src/restic/testdata/expired_snapshots_3 rename to src/restic/testdata/policy_keep_snapshots_3 diff --git a/src/restic/testdata/expired_snapshots_4 b/src/restic/testdata/policy_keep_snapshots_4 similarity index 100% rename from src/restic/testdata/expired_snapshots_4 rename to src/restic/testdata/policy_keep_snapshots_4 diff --git a/src/restic/testdata/expired_snapshots_5 b/src/restic/testdata/policy_keep_snapshots_5 similarity index 100% rename from src/restic/testdata/expired_snapshots_5 rename to src/restic/testdata/policy_keep_snapshots_5 diff --git a/src/restic/testdata/expired_snapshots_6 b/src/restic/testdata/policy_keep_snapshots_6 similarity index 100% rename from src/restic/testdata/expired_snapshots_6 rename to src/restic/testdata/policy_keep_snapshots_6 diff --git a/src/restic/testdata/expired_snapshots_7 b/src/restic/testdata/policy_keep_snapshots_7 similarity index 100% rename from src/restic/testdata/expired_snapshots_7 rename to src/restic/testdata/policy_keep_snapshots_7 diff --git a/src/restic/testdata/expired_snapshots_8 b/src/restic/testdata/policy_keep_snapshots_8 similarity index 100% rename from src/restic/testdata/expired_snapshots_8 rename to src/restic/testdata/policy_keep_snapshots_8 diff --git a/src/restic/testdata/expired_snapshots_9 b/src/restic/testdata/policy_keep_snapshots_9 similarity index 100% rename from src/restic/testdata/expired_snapshots_9 rename to src/restic/testdata/policy_keep_snapshots_9