terraform/helper/acctest
James Nugent 9476fc4418 helper/acctest: Add NewSSHKeyPair function (#12894)
Many cloud services prevent duplicate key pairs with different names.
Among them are Digital Ocean, Joyent Triton and Packet. Consequently, if
tests leave dangling resources it is not enough to simply randomise the
name, the entire key material must be regenerated.

This commit adds a helper method that returns a new randomly generated
key pair, where the public key material is formatted in OpenSSH
"authorized keys" format, and the private key material is PEM encoded.
2017-03-20 20:42:34 +00:00
..
acctest.go provider/digitalocean: acctest improvements 2016-01-04 15:30:35 -06:00
random.go helper/acctest: Add NewSSHKeyPair function (#12894) 2017-03-20 20:42:34 +00:00
remotetests.go tests: allow opt-out of remote tests via env var 2016-01-21 15:44:18 -06:00