<div class="index-page__terratest-in-4-steps">

  <div class="section text-center container-fluid">
    <div class="row">
      <div class="col-xs-12">
        <h2>Test infrastructure code with Terratest <strong>in 4 steps</strong></h2>
      </div>
    </div>
  </div>

  <div class="test-steps">

    <div class="test-step">
      <div class="icon-wrapper">
        <img src="{{site.baseurl}}/assets/img/home/terratest_icon_1.svg" alt="Write test using Go" />
        <span class="line"></span>
      </div>
      <div class="text-wrapper">
        <label>Write test code using Go</label>
        <span class="desc">
          Create a file ending in <code class="code-snippet purple">_test.go</code> and run tests with the go test command. E.g.,
          <code class="code-snippet purple">go test my_test.go</code>.
        </span>
      </div>
    </div>

    <div class="test-step">
      <div class="icon-wrapper">
        <span class="line"></span>
        <img src="{{site.baseurl}}/assets/img/home/terratest_icon_2.svg" alt="Use Terratest to deploy infrastructure" />
        <span class="line"></span>
      </div>
      <div class="text-wrapper">
        <label>Use Terratest to deploy infrastructure</label>
        <span class="desc">
          Use Terratest to execute your real IaC tools (e.g., Terraform, Packer, etc.)
          to deploy real infrastructure (e.g., servers) in a real environment (e.g., AWS).
        </span>
      </div>
    </div>

    <div class="test-step">
      <div class="icon-wrapper">
        <span class="line"></span>
        <img src="{{site.baseurl}}/assets/img/home/terratest_icon_3.svg" alt="Validate infrastructure" />
        <span class="line"></span>
      </div>
      <div class="text-wrapper">
        <label>Validate infrastructure with Terratest</label>
        <span class="desc">
          Use the tools built into Terratest to validate that the infrastructure
          works correctly in that environment by making HTTP requests, API calls, SSH connections, etc.
        </span>
      </div>
    </div>

    <div class="test-step">
      <div class="icon-wrapper">
        <span class="line"></span>
        <img src="{{site.baseurl}}/assets/img/home/terratest_icon_4.svg" alt="Undeploy" />
      </div>
      <div class="text-wrapper">
        <label>Undeploy</label>
        <span class="desc">
          Undeploy everything at the end of the test.
        </span>
      </div>
    </div>
  </div>

</div>
