This commit is contained in:
Julio Colon 2019-04-04 11:11:31 -04:00
Родитель bfffc85131
Коммит d8dfd3e3aa
2 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

@ -7,7 +7,7 @@
## Resources
The following respources will be deployed
The following resources will be deployed
- Azure Resource Group
## Deployment
@ -54,7 +54,7 @@ variable "location" {
variable "env" {
type = "string",
description = "The short name of the target env (i.e. dev, staging, or prod)"
defailt = "dev"
default = "dev"
}
variable "org" {
type = "string",

Просмотреть файл

@ -8,12 +8,12 @@
- assert.sh is the code used for the test functions needed for the test files.
- main.sh is the file that initiates the tests
- test.sh is an example file for testing the existence of resource groups in a subscription
- test2.sh is an example file for testing the existence resources in a resource group
- sampleTest1.sh is an example file for testing the existence of resource groups in a subscription
- sampleTest2.sh is an example file for testing the existence resources in a resource group
## Asserts
The following command chech for the existence of these resource (or resource gruop)
The following command check for the existence of these resources (or resource group):
- assertRG \<resource_group_name\>
- assertResource \<resource_group_name\> \<resource_type\> \<resource_name\>
- assertSubnet \<resource-group-name\> \<vnet-name\> \<subnet-name\>
@ -23,9 +23,11 @@ The 'not' at the end of the assert commands can be use to verify the non-existen
- assertResource \<resource_group_name\> \<resource_type\> \<resource_name\> not
- assertSubnet \<resource-group-name\> \<vnet-name\> \<subnet-name\> not
To add additional asserts to your code edit the assert.sh file included and follow the parent implementation.
## Usage
1. Authenticate using your Azure Principal or an Azure account with privileges to deploy resource groups.
1. Authenticate using your Azure Principal or an Azure account with privileges to deploy resources.
``` bash
az login