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

匿名 (未验证) 提交于 2019-12-03 08:39:56

问题:

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?

回答1:

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.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!