Dev Tools/Simulate Outside GCP accounts for dev & testing | C2C Community
Solved

Dev Tools/Simulate Outside GCP accounts for dev & testing

  • 21 June 2023
  • 4 replies
  • 35 views

Userlevel 1
Badge

Hi I’m wondering if there are any sandbox or resources associated to being able to simulate outside GCP accounts that are not tied to our account for testing OOAUTH/account permissions, multi-tenancy (having different companies be able to access our solutions and remain distinct and kept separate from each other, etc?  This would be extremely helpful in development and demo/proto-typing a solution before looking to roll it out and/or having to create multiple GCP accounts that are more fake/shell in order to achieve this level of testing/validation.  If there are resources for how to do this - I’d live to get a link to those documents.

icon

Best answer by malamin 18 July 2023, 17:20

View original

4 replies

Userlevel 7
Badge +15

Hello @tiana 

Do you think this tool can help you? 

Cloud Operations (Ops) Sandbox is an end-to-end demo that helps practitioners to learn about Cloud Operations (formerly Stackdriver) and Service Reliability Engineering practices from Google.

 

If it works, please let us know! :) And let's wait for some other members of the community to come up with more ideas.

Cheers,

--VC

Userlevel 1
Badge

@valdecir.carvalho thank you for the response and idea.  It doesn’t appear to be exactly what we’re looking for, but we appreciate your input.  At this point, we’re leveraging multiple projects for initial testing, and then have stood up a different GCP account that is completely separate and distinct from our corporate account in order to do final testing.

Userlevel 7
Badge +35

Hello @tiana ,

Thank you for your interesting questions. Yes, As far as I know there are a few sandbox or resources associated to being able to simulate outside GCP accounts that are not tied to your account for testing OAuth/account permissions, multi-tenancy, etc. Here are a few of them:

  • Google Cloud Identity and Access Management (IAM) sandbox: This sandbox allows you to create and manage IAM users, groups, and roles without affecting your production environment. This can be useful for testing OAuth/account permissions and multi-tenancy.

  • Google Cloud Pub/Sub emulator: This emulator allows you to create and publish messages to a Pub/Sub topic without actually having to create a Pub/Sub account. This can be useful for testing applications that rely on Pub/Sub.

  • Google Cloud Shell: The Cloud Shell is a web-based terminal that allows you to run commands on Google's infrastructure. This means that you can use the Cloud Shell to create and manage GCP resources, even if you don't have a GCP account.

  • Google Cloud Test Environments: Google Cloud Test Environments is a suite of tools that allow you to create and manage isolated test environments in the cloud. This can be useful for testing applications that require access to specific GCP resources.  

  • Google Cloud Sandbox Environment: This environment provisions an isolated, contained environment that helps you and your team to securely evaluate, explore, and build non-production workloads for testing purposes without having to worry about any mishap. This tools already mention by @valdecir.carvalho 

  • BigQuery sandboxBigQuery sandbox is a free tool that enables you to examine limited BigQuery capabilities without any cost to determine if it meets your needs. 

  • GKE Sandbox : GKE Sandbox provides an extra layer of security to prevent untrusted code from affecting the host kernel on your cluster nodes.

  • Emulate Cloud Spanner locally:  This emulator offers the same APIs as the Spanner production service and is intended for local development and testing, not for production deployments.

  •  

Here is a video post below for tips and trick on Serverless application testing and developing mention by Google cloud developer advocate :

In addition to these sandboxes and resources, there are also a number of third-party tools that can be used to simulate outside GCP accounts. Some of these tools include:

 

  • Faker is a Python library that can be used to generate fake data, including fake email addresses, phone numbers, and credit card numbers. This data can be used to create test accounts that simulate real users.
  • Mockoon is a tool that allows you to create and manage API mocks. API mocks can be used to simulate external APIs, and they can be used to test applications that rely on those APIs.
  • Postman is a tool that allows you to test APIs. Postman can be used to send requests to APIs, and it can also be used to simulate external APIs.
     
     

The best way to simulate outside GCP accounts for dev & testing depends on your specific needs. If you need a realistic environment to test your applications, then the Google Cloud IAM sandbox or the Google Cloud Pub/Sub emulator may be a good option. If you need to save money on GCP resources, then the Google Cloud Shell or a third-party tool like Faker may be a good option. Also, Here are some resourceful links below on application development and testing on Google cloud.

I hope this will helps you for your starting point.

Userlevel 7
Badge +26

Hi there @tiana,

 

I wanted to get back to you in order to ask you if the answers you have received from @valdecir.carvalho and @malamin in our community have been of any help to you? Did you find them useful? 😎

Reply