github.com/darmach/terratest@v0.34.8-0.20210517103231-80931f95e3ff/docs/_pages/index/_terratest-in-4-steps.html (about)

     1  <div class="index-page__terratest-in-4-steps">
     2  
     3    <div class="section text-center container-fluid">
     4      <div class="row">
     5        <div class="col-xs-12">
     6          <h2>Test infrastructure code with Terratest <strong>in 4 steps</strong></h2>
     7        </div>
     8      </div>
     9    </div>
    10  
    11    <div class="test-steps">
    12  
    13      <div class="test-step">
    14        <div class="icon-wrapper">
    15          <img src="{{site.baseurl}}/assets/img/home/terratest_icon_1.svg" alt="Write test using Go" />
    16          <span class="line"></span>
    17        </div>
    18        <div class="text-wrapper">
    19          <label>Write test code using Go</label>
    20          <span class="desc">
    21            Create a file ending in <code class="code-snippet purple">_test.go</code> and run tests with the go test command. E.g.,
    22            <code class="code-snippet purple">go test my_test.go</code>.
    23          </span>
    24        </div>
    25      </div>
    26  
    27      <div class="test-step">
    28        <div class="icon-wrapper">
    29          <span class="line"></span>
    30          <img src="{{site.baseurl}}/assets/img/home/terratest_icon_2.svg" alt="Use Terratest to deploy infrastructure" />
    31          <span class="line"></span>
    32        </div>
    33        <div class="text-wrapper">
    34          <label>Use Terratest to deploy infrastructure</label>
    35          <span class="desc">
    36            Use Terratest to execute your real IaC tools (e.g., Terraform, Packer, etc.)
    37            to deploy real infrastructure (e.g., servers) in a real environment (e.g., AWS).
    38          </span>
    39        </div>
    40      </div>
    41  
    42      <div class="test-step">
    43        <div class="icon-wrapper">
    44          <span class="line"></span>
    45          <img src="{{site.baseurl}}/assets/img/home/terratest_icon_3.svg" alt="Validate infrastructure" />
    46          <span class="line"></span>
    47        </div>
    48        <div class="text-wrapper">
    49          <label>Validate infrastructure with Terratest</label>
    50          <span class="desc">
    51            Use the tools built into Terratest to validate that the infrastructure
    52            works correctly in that environment by making HTTP requests, API calls, SSH connections, etc.
    53          </span>
    54        </div>
    55      </div>
    56  
    57      <div class="test-step">
    58        <div class="icon-wrapper">
    59          <span class="line"></span>
    60          <img src="{{site.baseurl}}/assets/img/home/terratest_icon_4.svg" alt="Undeploy" />
    61        </div>
    62        <div class="text-wrapper">
    63          <label>Undeploy</label>
    64          <span class="desc">
    65            Undeploy everything at the end of the test.
    66          </span>
    67        </div>
    68      </div>
    69    </div>
    70  
    71  </div>