ListSnapshotsAndExpectSuccess lists given snapshots and parses the output.
(tb testing.TB, e testEnv, targets ...string)
| 135 | |
| 136 | // ListSnapshotsAndExpectSuccess lists given snapshots and parses the output. |
| 137 | func ListSnapshotsAndExpectSuccess(tb testing.TB, e testEnv, targets ...string) []SourceInfo { |
| 138 | tb.Helper() |
| 139 | |
| 140 | lines := e.RunAndExpectSuccess(tb, append([]string{"snapshot", "list", "-l", "--manifest-id"}, targets...)...) |
| 141 | |
| 142 | return MustParseSnapshots(tb, lines) |
| 143 | } |
| 144 | |
| 145 | // ListDirectory lists a given directory and returns directory entries. |
| 146 | func ListDirectory(tb testing.TB, e testEnv, targets ...string) []DirEntry { |