如何使用没有Enterprise帐户的服务帐户对Google云端硬盘进行集成测试 [英] How to make Integration Tests against Google Drive with Service Account without an Enterprise Google account

查看:109
本文介绍了如何使用没有Enterprise帐户的服务帐户对Google云端硬盘进行集成测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要一个谷歌硬盘企业沙箱或某种方式来模拟一个现实的 Enterprise Google云端硬盘帐户。这将使我们可以通过谷歌企业帐户模拟多个用户文件的服务帐户。



我们可以测试一个GoogleDrive用户没问题。但是,如果没有昂贵的企业Google帐户,就无法访​​问多个用户文件的企业服务帐户。

我们的应用可以访问Google企业用户文件并使用服务帐户可以对他们进行操作。



这意味着为了编写集成测试,我们需要一个Enterprise Google帐户来连接。但是,从预算的角度来看,这是非常昂贵的和不可能的。



我们如何才能得到某些东西来运行集成测试并不会花费我们的财富?

解决方案

帐户每月5美元(截至2017年1月),但您可以创建完整的Google Enterprise(GSuite)帐户,无需付费。它有效期为14天。

您应该可以为每个用户创建一些用户和一些驱动器文件。有一些限制,但主要是围绕您可以通过编程方式发送多少电子邮件。



只需1个付费用户即可让域名持续超过14天根据需要添加和删除这些用户,按月支付更多用户的费用。


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?

解决方案

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.

这篇关于如何使用没有Enterprise帐户的服务帐户对Google云端硬盘进行集成测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆