spelling: hyphen

This commit is contained in:
Josh Soref 2018-03-13 07:59:00 +00:00
parent 24b4c36fc9
commit 210f8e8312
2 changed files with 8 additions and 8 deletions

View File

@ -235,7 +235,7 @@ func TestAdditionalDiskArtifactProperties(t *testing.T) {
} }
} }
func TestArtifactOverHypenatedCaptureUri(t *testing.T) { func TestArtifactOverHyphenatedCaptureUri(t *testing.T) {
template := CaptureTemplate{ template := CaptureTemplate{
Resources: []CaptureResources{ Resources: []CaptureResources{
{ {

View File

@ -499,7 +499,7 @@ func TestConfigShouldRejectMalformedCaptureNamePrefix(t *testing.T) {
wellFormedCaptureNamePrefix := []string{ wellFormedCaptureNamePrefix := []string{
"packer", "packer",
"AbcdefghijklmnopqrstuvwX", "AbcdefghijklmnopqrstuvwX",
"hypen-hypen", "hyphen-hyphen",
"0leading-number", "0leading-number",
"v1.core.local", "v1.core.local",
} }
@ -514,8 +514,8 @@ func TestConfigShouldRejectMalformedCaptureNamePrefix(t *testing.T) {
} }
malformedCaptureNamePrefix := []string{ malformedCaptureNamePrefix := []string{
"-leading-hypen", "-leading-hyphen",
"trailing-hypen-", "trailing-hyphen-",
"trailing-period.", "trailing-period.",
"_leading-underscore", "_leading-underscore",
"punc-!@#$%^&*()_+-=-punc", "punc-!@#$%^&*()_+-=-punc",
@ -550,7 +550,7 @@ func TestConfigShouldRejectMalformedCaptureContainerName(t *testing.T) {
wellFormedCaptureContainerName := []string{ wellFormedCaptureContainerName := []string{
"0leading", "0leading",
"aleading", "aleading",
"hype-hypen", "hype-hyphen",
"abcdefghijklmnopqrstuvwxyz0123456789-abcdefghijklmnopqrstuvwxyz", // 63 characters "abcdefghijklmnopqrstuvwxyz0123456789-abcdefghijklmnopqrstuvwxyz", // 63 characters
} }
@ -565,9 +565,9 @@ func TestConfigShouldRejectMalformedCaptureContainerName(t *testing.T) {
malformedCaptureContainerName := []string{ malformedCaptureContainerName := []string{
"No-Capitals", "No-Capitals",
"double--hypens", "double--hyphens",
"-leading-hypen", "-leading-hyphen",
"trailing-hypen-", "trailing-hyphen-",
"punc-!@#$%^&*()_+-=-punc", "punc-!@#$%^&*()_+-=-punc",
"there-are-over-63-characters-in-this-string-and-that-is-a-bad-container-name", "there-are-over-63-characters-in-this-string-and-that-is-a-bad-container-name",
} }