package tls import ( "crypto/x509" "encoding/pem" "fmt" "strings" "testing" r "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) func TestCertRequest(t *testing.T) { r.Test(t, r.TestCase{ Providers: testProviders, Steps: []r.TestStep{ r.TestStep{ Config: fmt.Sprintf(` resource "tls_cert_request" "test" { subject { common_name = "example.com" organization = "Example, Inc" organizational_unit = "Department of Terraform Testing" street_address = ["5879 Cotton Link"] locality = "Pirate Harbor" province = "CA" country = "US" postal_code = "95559-1227" serial_number = "2" } dns_names = [ "example.com", "example.net", ] ip_addresses = [ "127.0.0.1", "127.0.0.2", ] key_algorithm = "RSA" private_key_pem = <