---
call: ValidateTemplate
service: CloudFormation
tests:
  - expected: OperatorEMail
    op: eq
    path: Parameters.0.ParameterKey
  - expected: SSHLocation
    op: eq
    path: Parameters.1.ParameterKey
  - expected: 'AWS CloudFormation Sample Template AutoScalingMultiAZWithNotifications: Create a multi-az, load balanced and Auto Scaled sample web site running on an Apache Web Serever. The application is configured to span all Availability Zones in the region and is Auto-Scaled based on the CPU utilization of the web servers. Notifications will be sent to the operator email address on scaling events. The instances are load balanced with a simple health check against the default web page. **WARNING** This template creates one or more Amazon EC2 instances and an Elastic Load Balancer. You will be billed for the AWS resources used if you create a stack from this template.'
    op: eq
    path: Description
  - expected: WebServer EC2 instance type
    op: eq
    path: Parameters.3.Description
  - expected: The IP address range that can be used to SSH to the EC2 instances
    op: eq
    path: Parameters.1.Description
  - expected: EMail address to notify if there are any scaling operations
    op: eq
    path: Parameters.0.Description
  - expected: 0.0.0.0/0
    op: eq
    path: Parameters.1.DefaultValue
  - expected: 0
    op: eq
    path: Parameters.1.NoEcho
  - expected: KeyName
    op: eq
    path: Parameters.2.ParameterKey
  - expected: InstanceType
    op: eq
    path: Parameters.3.ParameterKey
  - expected: 0
    op: eq
    path: Parameters.3.NoEcho
  - expected: 0
    op: eq
    path: Parameters.2.NoEcho
  - expected: 0
    op: eq
    path: Parameters.0.NoEcho
  - expected: The EC2 Key Pair to allow SSH access to the instances
    op: eq
    path: Parameters.2.Description
  - expected: m1.small
    op: eq
    path: Parameters.3.DefaultValue