Skip to content

Commit ec169bc

Browse files
Re-record fixtures
1 parent b1061c4 commit ec169bc

File tree

5 files changed

+35
-35
lines changed

5 files changed

+35
-35
lines changed

internal/resp_assertions/bulk_string_absent_from_array_assertion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func (a BulkStringAbsentFromArrayAssertion) Run(value resp_value.Value) error {
2121

2222
for _, element := range array {
2323
if element.Type == resp_value.BULK_STRING && element.String() == a.StringExpectedToBeAbsent {
24-
return fmt.Errorf("Expected string '%s' to be absent from the array, but is present", a.StringExpectedToBeAbsent)
24+
return fmt.Errorf("Expected bulk string '%s' to be absent from the array, but is present", a.StringExpectedToBeAbsent)
2525
}
2626
}
2727

internal/test_helpers/fixtures/auth/auth_always_nopass_flag

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Debug = true
1414
[tester::#UV9] [client]  "passwords",
1515
[tester::#UV9] [client]  []
1616
[tester::#UV9] [client] ]
17-
[tester::#UV9] [client] Checking if the first element is "flags"
18-
[tester::#UV9] [client] ✔ First element is "flags"
17+
[tester::#UV9] [client] Checking if the first element is the bulk string "flags"
18+
[tester::#UV9] [client] ✔ First element is the bulk string "flags"
1919
[tester::#UV9] [client] Checking if the second element is an array
2020
[tester::#UV9] [client] ✔ Second element is an array
2121
[tester::#UV9] [client] Checking if flag 'nopass' is present in the flags array
2222
[tester::#UV9] [client] ✔ Flag 'nopass' is present in the flags array
23-
[tester::#UV9] [client] Checking if the third element of the array is "passwords"
24-
[tester::#UV9] [client] ✔ Third element is "passwords"
23+
[tester::#UV9] [client] Checking if the third element of the array is the bulk string "passwords"
24+
[tester::#UV9] [client] ✔ Third element is the bulk string "passwords"
2525
[tester::#UV9] [client] Checking passwords array to be empty
2626
[tester::#UV9] [client] ✔ Passwords array is an empty array
2727
[tester::#UV9] [client] ✔︎ Received [
@@ -44,12 +44,12 @@ Debug = true
4444
[tester::#UV9] [client]  "passwords",
4545
[tester::#UV9] [client]  []
4646
[tester::#UV9] [client] ]
47-
[tester::#UV9] [client] Checking if the first element is "flags"
48-
[tester::#UV9] [client] ✔ First element is "flags"
47+
[tester::#UV9] [client] Checking if the first element is the bulk string "flags"
48+
[tester::#UV9] [client] ✔ First element is the bulk string "flags"
4949
[tester::#UV9] [client] Checking if the second element is an array
5050
[tester::#UV9] [client] ✔ Second element is an array
5151
[tester::#UV9] [client] Checking if flag 'nopass' is absent from the flags array
52-
[tester::#UV9] Expected string 'nopass' to be absent from the array, but is present
52+
[tester::#UV9] Expected bulk string 'nopass' to be absent from the array, but is present
5353
[tester::#UV9] Test failed
5454
[tester::#UV9] Terminating program
5555
[tester::#UV9] Program terminated successfully

internal/test_helpers/fixtures/auth/auth_mistake_literal_password

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Debug = true
1414
[tester::#PL7] [client]  "password",
1515
[tester::#PL7] [client]  []
1616
[tester::#PL7] [client] ]
17-
[tester::#PL7] [client] Checking if the first element is "flags"
18-
[tester::#PL7] [client] ✔ First element is "flags"
17+
[tester::#PL7] [client] Checking if the first element is the bulk string "flags"
18+
[tester::#PL7] [client] ✔ First element is the bulk string "flags"
1919
[tester::#PL7] [client] Checking if the second element is an array
2020
[tester::#PL7] [client] ✔ Second element is an array
2121
[tester::#PL7] [client] Checking if flag 'nopass' is present in the flags array
2222
[tester::#PL7] [client] ✔ Flag 'nopass' is present in the flags array
23-
[tester::#PL7] [client] Checking if the third element of the array is "passwords"
23+
[tester::#PL7] [client] Checking if the third element of the array is the bulk string "passwords"
2424
[tester::#PL7] Expected "passwords", got "password"
2525
[tester::#PL7] Test failed
2626
[tester::#PL7] Terminating program

internal/test_helpers/fixtures/auth/auth_mistake_sha256

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Debug = true
1414
[tester::#UV9] [client]  "passwords",
1515
[tester::#UV9] [client]  []
1616
[tester::#UV9] [client] ]
17-
[tester::#UV9] [client] Checking if the first element is "flags"
18-
[tester::#UV9] [client] ✔ First element is "flags"
17+
[tester::#UV9] [client] Checking if the first element is the bulk string "flags"
18+
[tester::#UV9] [client] ✔ First element is the bulk string "flags"
1919
[tester::#UV9] [client] Checking if the second element is an array
2020
[tester::#UV9] [client] ✔ Second element is an array
2121
[tester::#UV9] [client] Checking if flag 'nopass' is present in the flags array
2222
[tester::#UV9] [client] ✔ Flag 'nopass' is present in the flags array
23-
[tester::#UV9] [client] Checking if the third element of the array is "passwords"
24-
[tester::#UV9] [client] ✔ Third element is "passwords"
23+
[tester::#UV9] [client] Checking if the third element of the array is the bulk string "passwords"
24+
[tester::#UV9] [client] ✔ Third element is the bulk string "passwords"
2525
[tester::#UV9] [client] Checking passwords array to be empty
2626
[tester::#UV9] [client] ✔ Passwords array is an empty array
2727
[tester::#UV9] [client] ✔︎ Received [
@@ -46,14 +46,14 @@ Debug = true
4646
[tester::#UV9] [client]  "fd572349f6ee8cc6f77e3c380ee3db86dec2e386"
4747
[tester::#UV9] [client]  ]
4848
[tester::#UV9] [client] ]
49-
[tester::#UV9] [client] Checking if the first element is "flags"
50-
[tester::#UV9] [client] ✔ First element is "flags"
49+
[tester::#UV9] [client] Checking if the first element is the bulk string "flags"
50+
[tester::#UV9] [client] ✔ First element is the bulk string "flags"
5151
[tester::#UV9] [client] Checking if the second element is an array
5252
[tester::#UV9] [client] ✔ Second element is an array
5353
[tester::#UV9] [client] Checking if flag 'nopass' is absent from the flags array
5454
[tester::#UV9] [client] ✔ Flag 'nopass' is absent in the flags array
55-
[tester::#UV9] [client] Checking if the third element of the array is "passwords"
56-
[tester::#UV9] [client] ✔ Third element is "passwords"
55+
[tester::#UV9] [client] Checking if the third element of the array is the bulk string "passwords"
56+
[tester::#UV9] [client] ✔ Third element is the bulk string "passwords"
5757
[tester::#UV9] [client] Checking expected password hashes to be present in the passwords array
5858
[tester::#UV9] Expected element #1 to be "e6468555eab6349c3ae937df914694db806242d29fb6764f0179aa576f776ece", got "fd572349f6ee8cc6f77e3c380ee3db86dec2e386"
5959
[tester::#UV9] Test failed

internal/test_helpers/fixtures/auth/pass

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Debug = true
3434
[tester::#GX8] [client]  "selectors",
3535
[tester::#GX8] [client]  []
3636
[tester::#GX8] [client] ]
37-
[tester::#GX8] [client] Checking if the first element is "flags"
38-
[tester::#GX8] [client] ✔ First element is "flags"
37+
[tester::#GX8] [client] Checking if the first element is the bulk string "flags"
38+
[tester::#GX8] [client] ✔ First element is the bulk string "flags"
3939
[tester::#GX8] [client] Checking if the second element is an array
4040
[tester::#GX8] [client] ✔ Second element is an array
4141
[tester::#GX8] [client] ✔︎ Received [
@@ -83,8 +83,8 @@ Debug = true
8383
[tester::#QL6] [client]  "selectors",
8484
[tester::#QL6] [client]  []
8585
[tester::#QL6] [client] ]
86-
[tester::#QL6] [client] Checking if the first element is "flags"
87-
[tester::#QL6] [client] ✔ First element is "flags"
86+
[tester::#QL6] [client] Checking if the first element is the bulk string "flags"
87+
[tester::#QL6] [client] ✔ First element is the bulk string "flags"
8888
[tester::#QL6] [client] Checking if the second element is an array
8989
[tester::#QL6] [client] ✔ Second element is an array
9090
[tester::#QL6] [client] Checking if flag 'nopass' is present in the flags array
@@ -134,14 +134,14 @@ Debug = true
134134
[tester::#PL7] [client]  "selectors",
135135
[tester::#PL7] [client]  []
136136
[tester::#PL7] [client] ]
137-
[tester::#PL7] [client] Checking if the first element is "flags"
138-
[tester::#PL7] [client] ✔ First element is "flags"
137+
[tester::#PL7] [client] Checking if the first element is the bulk string "flags"
138+
[tester::#PL7] [client] ✔ First element is the bulk string "flags"
139139
[tester::#PL7] [client] Checking if the second element is an array
140140
[tester::#PL7] [client] ✔ Second element is an array
141141
[tester::#PL7] [client] Checking if flag 'nopass' is present in the flags array
142142
[tester::#PL7] [client] ✔ Flag 'nopass' is present in the flags array
143-
[tester::#PL7] [client] Checking if the third element of the array is "passwords"
144-
[tester::#PL7] [client] ✔ Third element is "passwords"
143+
[tester::#PL7] [client] Checking if the third element of the array is the bulk string "passwords"
144+
[tester::#PL7] [client] ✔ Third element is the bulk string "passwords"
145145
[tester::#PL7] [client] Checking passwords array to be empty
146146
[tester::#PL7] [client] ✔ Passwords array is an empty array
147147
[tester::#PL7] [client] ✔︎ Received [
@@ -189,14 +189,14 @@ Debug = true
189189
[tester::#UV9] [client]  "selectors",
190190
[tester::#UV9] [client]  []
191191
[tester::#UV9] [client] ]
192-
[tester::#UV9] [client] Checking if the first element is "flags"
193-
[tester::#UV9] [client] ✔ First element is "flags"
192+
[tester::#UV9] [client] Checking if the first element is the bulk string "flags"
193+
[tester::#UV9] [client] ✔ First element is the bulk string "flags"
194194
[tester::#UV9] [client] Checking if the second element is an array
195195
[tester::#UV9] [client] ✔ Second element is an array
196196
[tester::#UV9] [client] Checking if flag 'nopass' is present in the flags array
197197
[tester::#UV9] [client] ✔ Flag 'nopass' is present in the flags array
198-
[tester::#UV9] [client] Checking if the third element of the array is "passwords"
199-
[tester::#UV9] [client] ✔ Third element is "passwords"
198+
[tester::#UV9] [client] Checking if the third element of the array is the bulk string "passwords"
199+
[tester::#UV9] [client] ✔ Third element is the bulk string "passwords"
200200
[tester::#UV9] [client] Checking passwords array to be empty
201201
[tester::#UV9] [client] ✔ Passwords array is an empty array
202202
[tester::#UV9] [client] ✔︎ Received [
@@ -241,14 +241,14 @@ Debug = true
241241
[tester::#UV9] [client]  "selectors",
242242
[tester::#UV9] [client]  []
243243
[tester::#UV9] [client] ]
244-
[tester::#UV9] [client] Checking if the first element is "flags"
245-
[tester::#UV9] [client] ✔ First element is "flags"
244+
[tester::#UV9] [client] Checking if the first element is the bulk string "flags"
245+
[tester::#UV9] [client] ✔ First element is the bulk string "flags"
246246
[tester::#UV9] [client] Checking if the second element is an array
247247
[tester::#UV9] [client] ✔ Second element is an array
248248
[tester::#UV9] [client] Checking if flag 'nopass' is absent from the flags array
249249
[tester::#UV9] [client] ✔ Flag 'nopass' is absent in the flags array
250-
[tester::#UV9] [client] Checking if the third element of the array is "passwords"
251-
[tester::#UV9] [client] ✔ Third element is "passwords"
250+
[tester::#UV9] [client] Checking if the third element of the array is the bulk string "passwords"
251+
[tester::#UV9] [client] ✔ Third element is the bulk string "passwords"
252252
[tester::#UV9] [client] Checking expected password hashes to be present in the passwords array
253253
[tester::#UV9] [client] ✔ Expected password hashes are present in the passwords array
254254
[tester::#UV9] [client] ✔︎ Received [

0 commit comments

Comments
 (0)