1 --- 2 "Help": 3 - do: 4 cat.repositories: 5 help: true 6 7 - match: 8 $body: | 9 /^ id .+ \n 10 type .+ \n 11 $/ 12 --- 13 "Test cat repositories output": 14 15 - do: 16 cat.repositories: {} 17 18 - match: 19 $body: | 20 /^$/ 21 22 - do: 23 snapshot.create_repository: 24 repository: test_cat_repo_1 25 body: 26 type: fs 27 settings: 28 location: "test_cat_repo_1_loc" 29 30 - do: 31 snapshot.create_repository: 32 repository: test_cat_repo_2 33 body: 34 type: fs 35 settings: 36 location: "test_cat_repo_2_loc" 37 38 - do: 39 cat.repositories: {} 40 41 - match: 42 $body: | 43 /^ test_cat_repo_1\s+ fs\s*\n 44 test_cat_repo_2\s+ fs\s*\n 45 $/ 46 47 --- 48 "Test cat repositories sort": 49 - skip: 50 version: " - 5.0.99" 51 reason: sorting was introduced in 5.1.0 52 - do: 53 snapshot.create_repository: 54 repository: test_cat_repo_1 55 body: 56 type: fs 57 settings: 58 location: "test_cat_repo_1_loc" 59 60 - do: 61 snapshot.create_repository: 62 repository: test_cat_repo_2 63 body: 64 type: fs 65 settings: 66 location: "test_cat_repo_2_loc" 67 68 - do: 69 cat.repositories: 70 s: [type, id] 71 72 - match: 73 $body: | 74 /^ test_cat_repo_1 \s+ fs \n 75 test_cat_repo_2 \s+ fs \n 76 $/ 77 78 - do: 79 cat.repositories: 80 s: [type, "id:desc"] 81 82 - match: 83 $body: | 84 /^ test_cat_repo_2 \s+ fs \n 85 test_cat_repo_1 \s+ fs \n 86 $/