This project is used to provide a framework for serial and parallel application testing against workloads that have been protected by Rubrik's Cloud Data Management platform.
Using the Invoke-Build
framework, this project allows for an administrator to declare the topology of an application across one or more virtual machines. The entire collection of virtual machines are Live Mounted as a group and a battery of user-defined tests are applied. Upon the completion of the tests, the Live Mounts are removed and a summary of results are displayed.
There are a few services you'll need in order to get this project off the ground:
- PowerShell
- Rubrik PowerShell Module
- Rubrik PowerShell Backup Validation Module
- VMware PowerCLI
- InvokeBuild
This folder can be dropped anywhere on your workstation that has network connectivity to a Rubrik cluster and related vCenter Server.
There are three main points of configuration: Environment JSON files, Config JSON files, and Identity XML files.
The Environment
folder contains JSON files that describe the Rubrik Cluster and vCenter Server information. A sample configuration looks like:
{
"rubrikServer": "172.17.28.11",
"rubrikCred": "rubrikCred.xml",
"vmwareServer": "172.17.48.22",
"vmwareCred": "vmwareCred.xml"
}
The Config
folder contains JSON files that describe the virtual machines being tested. A sample configuration looks like:
{
"virtualMachines": [
{
"name": "SE-CWAHL-WIN",
"mountName": "MOUNT-2TIER-APP",
"guestCred": "guestCred.xml",
"testIp": "172.17.50.121",
"testNetwork": "VLAN50_Servers_Mount",
"testGateway": "172.17.50.1",
"tasks": ["Ping","Netlogon"]
},
{
"name": "SE-CWAHL-WIN",
"mountName": "MOUNT-2TIER-DB",
"guestCred": "guestCred.xml",
"testIp": "172.17.50.122",
"testNetwork": "VLAN50_Servers_Mount",
"testGateway": "172.17.50.1",
"tasks": ["Ping","Netlogon"]
}
]
}
The Identity
folder is not included in this repository. It can be placed anywhere in your environment and should host secure XML files created with Export-Clixml
containing the credentials needed to communicate with the Rubrik cluster, vCenter Server, and any guest operating systems involved in the application testing.
Use the generateCreds.ps1 file to create a starter set of credentials or see how the generation process works.
Note: Secure XML files can only be decrypted by the user account that created them.
Once the Environment, Config, and Identity requirements are met, use the Invoke-Build
function to execute a build. Here is a sample command using a splat.
$Splat = @{
File = '..\.build.ps1'
EnvironmentFile = '.\environment\se-2.json'
ConfigFile = '.\config\1-tier-app.json'
IdentityPath = '.\credential\laptop'
}
Invoke-Build @Splat -Result Result
Here are some resources to get you started! If you find any challenges from this project are not properly documented or are unclear, please raise an issue and let us know! This is a fun, safe environment - don't worry if you're a GitHub newbie! ❤️
- Quick Start Guide
- Rubrik SDK for Powershell Documentation
- Rubrik API Documentation
- VIDEO: Getting Started with the Backup Validation Use Case
We glady welcome contributions from the community. From updating the documentation to adding more tests for this framework, all ideas are welcome. Thank you in advance for all of your issues, pull requests, and comments! ⭐
We encourage all contributors to become members. We aim to grow an active, healthy community of contributors, reviewers, and code owners. Learn more in our Welcome to the Rubrik Build Community page.
We'd love to hear from you! Email us: build@rubrik.com 💌