github.com/stellar/stellar-etl@v1.0.1-0.20240312145900-4874b6bf2b89/cmd/export_account_signers_test.go (about) 1 package cmd 2 3 import ( 4 "testing" 5 ) 6 7 func TestExportSigners(t *testing.T) { 8 tests := []cliTest{ 9 { 10 name: "signers: bucket list with exact checkpoint", 11 args: []string{"export_signers", "-e", "78975", "-o", gotTestDir(t, "bucket_read_exact.txt")}, 12 golden: "bucket_read_exact.golden", 13 wantErr: nil, 14 sortForComparison: true, 15 }, 16 { 17 name: "signers: bucket list with end not on checkpoint", 18 args: []string{"export_signers", "-e", "80210", "-o", gotTestDir(t, "bucket_read_off.txt")}, 19 golden: "bucket_read_off.golden", 20 wantErr: nil, 21 sortForComparison: true, 22 }, 23 } 24 25 for _, test := range tests { 26 runCLITest(t, test, "testdata/signers/") 27 } 28 } 29