Skip to content

Commit

Permalink
test for nocredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
nlw0 committed Jun 6, 2023
1 parent 6099442 commit d6f99ab
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/nocredentials.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Test

using GoogleCloud
using JSON

creds = NoCredentials()

session = GoogleSession(creds, ["devstorage.full_control"])
bucketName = "atari-replay-datasets"
fileList = GoogleCloud.storage(:Object, :list, bucketName; prefix="dqn/Pong/1/replay_logs/\$store\$_action", session=session) |> IOBuffer |> JSON.parse

parities = map(fileList["items"]) do item
reduce(, GoogleCloud.storage(:Object, :get, bucketName, item["name"], session=session))
end

@test reduce(, fetch.(parities)) == 0xf1

0 comments on commit d6f99ab

Please sign in to comment.