CloudTest Pro users can create Cloud Provider Accounts for the Google Compute Engine cloud provider.
The Google Compute Engine provides data centers in the U.S. and Europe and uses Google's OAuth 2.0 standard for authentication.
Enable browser popups for the following URLs using the recommended steps for your browser:
- CloudTest URL (The CloudTest URL to enable is presented in the Cloud Provider Account box when you select Type: Google Compute Engine).
To get started with Google Compute Engine in CloudTest, you'll first need to take care of some prerequisites in your Google Developer Account.
- First, you'll need a project. If you don't have one, create it now.
- Login to the Google Developer Console and then click Create Project.
- In the New Project box, set the (editable) Project ID and note it for later use. Check the Terms of Service box to continue and click Create to continue.
- Click to open your project (e.g. My Project) and locate the Networks node.
- Click the navigation menu in the top-left corner then click Networking.
- On the 'default' network page, locate the Firewalls section, and click the Create new link text.
- In the Create a new firewall box, give the new firewall a name and enter the following text into the Protocols & ports box (shown below):
- Click Create to complete firewall configuration for the "default" network.
- Click the OAuth consent screen tab and enter the Product name.
- Click the Credentials tab, open the New credentials dropdown menu and select oAuth client ID.
- Select the Other radio button and enter the Product name into the Name field.
- Click the download JSON button on the far-right side of the screen.
Setup Google Compute Engine as a Cloud Provider
Use the following steps to enter your valid Google Compute Engine credentials as a CloudTest Pro Cloud Provider Account.
- Select Central > Cloud Provider Accounts and then click New to launch the Cloud Provider Account dialog box.
- Enter a name for the new cloud provider account. This name is used in locations and also appears in the Cloud Provider Account drop-down in the Grid Manager.
- Change the “Type” drop-down to “Google Compute Engine”.
- Enter the Google Compute Engine project ID.
- Choose the Google Compute Engine JSON file that corresponds to this Client ID (e.g. the one downloaded from the Google Compute Engine API above).
After doing so, the Cloud Provider Account box refreshes and the Authentication Code field appears.
At the same time, the Google Compute Engine OAuth "Request for Permission" popup window appears.
- If you're not signed into Google, sign in now. The page below appears. Complete the sign-in by clicking Accept.
After clicking Accept, the landing page above appears. This page contains the Authentication Code you'll need to enter into the Cloud Provider Account box, Authentication Code field.
- Copy the Authentication code and paste it into the Cloud Provider Account box.
- Optionally, configure an access control list in the Cloud Provider Account box in CloudTest. Refer to Cloud Provider Accounts for additional Access Control List steps.
- Click OK to complete configuration of this Cloud Provider Account.
The completed item appears in the Cloud Provider Accounts list in Central.
When the Cloud Provider Account is saved, a new set of locations for Google Compute Engine will be automatically created, if they do not already exist.
One or more locations will be specified during Grid Manager configuration of grids. For more information about Locations, refer to Using Locations
Once a Google Compute Engine Cloud Provider Account has been created for use with CloudTest Pro, you are ready to create a grid that will provision servers via that cloud vendor.
- Select Central > Grids and then click New. The Grid Manager appears with Step 1 General displayed.
- Enter a Grid Name, and optionally, enter a description and a repository location for the new grid, and then click the right arrow.
The Step 2 Server Instances page appears.
- Change the Location drop-down to one of defined Google Compute Engine locations. For example, Google Compute Engine US Central. US Central and Europe West are the only two Google Compute Engine locations offered at this time.
- Specify the number of Test Server instances, and then optionally, define Results Server Instances. For most cases, the default One for every 50 Test Serverinstances is acceptable for result servers.
- By default, Google Compute Engine servers will be launched using Large instances. Extra–Large instances can also be selected via the Server Class dropdown.
- "Large" is translated to the "n1–standard–2" machine type.
- "Extra-Large" is translated to "n1–standard–4".
- If you wish to combine the Google Compute Engine servers with servers from other cloud providers, click the Add a Location box. Otherwise, click the right arrow icon to proceed.
The Step 3 Summary and Deploy Tear Down page appears. Click the Deploy Instances button to begin launching servers.