Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 361
Nicholas DiPiazza Avatar asked Jan 05 '17 17:01

Nicholas DiPiazza


People also ask

What is Google Drive integration?

The Drive User Interface (UI) is a Google-provided application allowing Drive users to create, organize, discover, and share content stored on Google Drive. You can integrate your Drive-enabled app with the Drive UI to take advantage of these features.


1 Answers

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.

like image 51
Pete Avatar answered Jan 05 '23 02:01

Pete