Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions go/pvl/kit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,18 @@ func TestKitRedditMax(t *testing.T) {
testRemoteUsername: "maxtaco", // remote (service) username
armoredSig: string(armoredSig),

testResponseFile: "testdata/reddit-max.xml",
testResponseFile: "testdata/reddit-max.html",

testAPIURL: "https://www.reddit.com/r/KeybaseProofs/comments/2clf9c/my_keybase_proof_redditmaxtaco_keybasemax/.json",
urloverride: "https://old.reddit.com/r/KeybaseProofs/comments/2clf9c/my_keybase_proof_redditmaxtaco_keybasemax/.rss",
urloverride: "https://old.reddit.com/r/KeybaseProofs/comments/2clf9c/my_keybase_proof_redditmaxtaco_keybasemax/",

shouldwork: true,
}
runKitUnitTest(t, &ut)

// Try a response for a different proof, should not work
utBad := ut
utBad.testResponseFile = "testdata/reddit-terribletext5299.xml"
utBad.testResponseFile = "testdata/reddit-terribletext5299.html"
utBad.shouldwork = false
utBad.errstatus = keybase1.ProofStatus_BAD_USERNAME
runKitUnitTest(t, &utBad)
Expand All @@ -126,10 +126,10 @@ func TestKitRedditTerribleText5299(t *testing.T) {
testRemoteUsername: "terrible-text5299", // remote (service) username
armoredSig: armoredSig,

testResponseFile: "testdata/reddit-terribletext5299.xml",
testResponseFile: "testdata/reddit-terribletext5299.html",

testAPIURL: "https://www.reddit.com/r/KeybaseProofs/comments/1pqpxtp/my_keybase_proof_redditterribletext5299/.json",
urloverride: "https://old.reddit.com/r/KeybaseProofs/comments/1pqpxtp/my_keybase_proof_redditterribletext5299/.rss",
urloverride: "https://old.reddit.com/r/KeybaseProofs/comments/1pqpxtp/my_keybase_proof_redditterribletext5299/",

shouldwork: true,
}
Expand Down
88 changes: 88 additions & 0 deletions go/pvl/testdata/reddit-max.html

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion go/pvl/testdata/reddit-max.xml

This file was deleted.

31 changes: 31 additions & 0 deletions go/pvl/testdata/reddit-terribletext5299.html

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion go/pvl/testdata/reddit-terribletext5299.xml

This file was deleted.

Loading