Nicholas DiPiazza
Nicholas DiPiazza

Reputation: 10585

How to make Integration Tests against Google Drive with Service Account without an Enterprise Google account

We need a "google drive enterprise sandbox" or some sort of way to Mock a realistic Enterprise Google Drive account. This would make it so that we can simulate service accounts with access to multiple users files over a google enterprise account.

We can test a single GoogleDrive user no problem. But the enterprise service accounts with access to multiple users' files is not possible without an enterprise google account which is expensive.

Our app has access to google enterprise users files and using the service account can do operations on them.

This means in order to write integration tests we need an Enterprise google account to connect to. But that's pretty expensive and not possible from a budget standpoint.

How can we get something to run integration tests against that doesn't cost us a fortune?

Upvotes: 10

Views: 645

Answers (1)

Peter
Peter

Reputation: 5601

Accounts are USD5 per month (as at January 2017) but you can create a full Google Enterprise (GSuite) account at no cost as a trial. It is valid for 14 days.

You should be able to create a few users and some drive files for each of them. There are some limitations but mostly they're around how much email you can send programmatically.

You can keep the domain live for longer than 14 days with just 1 paid user and pay by the month for any more users by adding and removing them as and when required.

Upvotes: 2

Related Questions