Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
16295dfb
Commit
16295dfb
authored
Jun 07, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/vmware: tests for vnc_port_* settings
parent
7a5dce0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
TODO.md
TODO.md
+1
-1
builder/vmware/builder_test.go
builder/vmware/builder_test.go
+28
-0
No files found.
TODO.md
View file @
16295dfb
*
builder/amazonebs: Copy AMI to multiple regions
*
builder/amazonebs: Copy AMI to multiple regions
*
builder/amazonebs: Add unique ID to AMI name so multiple can be made
*
builder/amazonebs: Add unique ID to AMI name so multiple can be made
*
builder/vmware: Downloading the ISO
*
builder/vmware: Downloading the ISO
*
builder/vmware: Find open port for HTTP
/VNC
*
builder/vmware: Find open port for HTTP
*
builder/vmware: VMX templates
*
builder/vmware: VMX templates
*
builder/vmware: VMX key/values
*
builder/vmware: VMX key/values
*
communicator/ssh: Ability to re-establish connection
*
communicator/ssh: Ability to re-establish connection
...
...
builder/vmware/builder_test.go
View file @
16295dfb
...
@@ -137,3 +137,31 @@ func TestBuilderPrepare_SSHWaitTimeout(t *testing.T) {
...
@@ -137,3 +137,31 @@ func TestBuilderPrepare_SSHWaitTimeout(t *testing.T) {
t
.
Fatalf
(
"should not have error: %s"
,
err
)
t
.
Fatalf
(
"should not have error: %s"
,
err
)
}
}
}
}
func
TestBuilderPrepare_VNCPort
(
t
*
testing
.
T
)
{
var
b
Builder
config
:=
testConfig
()
// Bad
config
[
"vnc_port_min"
]
=
1000
config
[
"vnc_port_max"
]
=
500
err
:=
b
.
Prepare
(
config
)
if
err
==
nil
{
t
.
Fatal
(
"should have error"
)
}
// Bad
config
[
"vnc_port_min"
]
=
-
500
err
=
b
.
Prepare
(
config
)
if
err
==
nil
{
t
.
Fatal
(
"should have error"
)
}
// Good
config
[
"vnc_port_min"
]
=
500
config
[
"vnc_port_max"
]
=
1000
err
=
b
.
Prepare
(
config
)
if
err
!=
nil
{
t
.
Fatalf
(
"should not have error: %s"
,
err
)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment