Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - Adds Google cloud storage support #650

Closed
wants to merge 9 commits into from
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class SessionSpec extends WordSpec {
"report the path of the missing service account file" in {
implicit val as: ActorSystem = null
implicit val mat: Materializer = null
val session = new Session(GoogleAuthConfiguration("missingpath"), Seq.empty)
val session = new Session(GoogleAuthConfiguration("/missing/path/test.json"), Seq.empty)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this break the build on non unixy machines. Use TempDirectory.location() and then combine with a more specific file name that will not exist.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switching to Paths.get(System.getProperty("java.io.tmpdir")).resolve("idonotexist.json") as TempDirectory is not accessible

val thrown = intercept[RuntimeException] {
session.getToken()
}
assert(thrown.getMessage === "Service account file missing: /Users/francisdb/workspace/alpakka/missingpath")
assert(thrown.getMessage === "Service account file missing: /missing/path/test.json")
}

}
Expand Down