// Code generated by "gen/generator.go"; DO NOT EDIT.
// In order to regenerate this file execute `go generate` from the repository root.
// More details can be found in the [README](https://github.com/CiscoDevNet/terraform-provider-aci/blob/master/README.md).

package provider

import (
	"testing"

	"github.com/hashicorp/terraform-plugin-testing/helper/resource"
)

func TestAccDataSourceTopSystem(t *testing.T) {

	resource.Test(t, resource.TestCase{
		PreCheck:                 func() { testAccPreCheck(t, "both", "1.0(1e)-") },
		ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
		Steps: []resource.TestStep{
			{
				Config: testConfigTopSystemDataSource,
				Check: resource.ComposeAggregateTestCheckFunc(
					resource.TestCheckResourceAttr("data.aci_system.test", "pod_id", "1"),
					resource.TestCheckResourceAttr("data.aci_system.test", "role", "controller"),
					resource.TestCheckResourceAttr("data.aci_system.test", "system_id", "1"),
				),
			},
		},
	})
}

const testConfigTopSystemDataSource = `
data "aci_system" "test" {
	pod_id    = "1"
	system_id = "1"
}
`
