Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
70fe3279
Commit
70fe3279
authored
8 years ago
by
Michael Schurter
Committed by
GitHub
8 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #2498 from neumayer/fixtypo
Fix typo and be consistent in naming
parents
d3a238f5
46dcbc5c
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/driver/env/env_test.go
+4
-4
client/driver/env/env_test.go
with
4 additions
and
4 deletions
+4
-4
client/driver/env/env_test.go
+
4
-
4
View file @
70fe3279
...
...
@@ -53,11 +53,11 @@ func testTaskEnvironment() *TaskEnvironment {
n
.
Name
=
nodeName
n
.
NodeClass
=
nodeClass
env
V
ars
:=
map
[
string
]
string
{
env
v
ars
:=
map
[
string
]
string
{
envOneKey
:
envOneVal
,
envTwoKey
:
envTwoVal
,
}
return
NewTaskEnvironment
(
n
)
.
SetEnvvars
(
env
V
ars
)
.
Build
()
return
NewTaskEnvironment
(
n
)
.
SetEnvvars
(
env
v
ars
)
.
Build
()
}
func
TestEnvironment_ParseAndReplace_Env
(
t
*
testing
.
T
)
{
...
...
@@ -266,7 +266,7 @@ func TestEnvironment_ClearEnvvars(t *testing.T) {
}
}
func
TestEnvironment_Interp
r
olate
(
t
*
testing
.
T
)
{
func
TestEnvironment_Interpolate
(
t
*
testing
.
T
)
{
env
:=
testTaskEnvironment
()
.
SetEnvvars
(
map
[
string
]
string
{
"test"
:
"${node.class}"
,
"test2"
:
"${attr.arch}"
})
.
Build
()
...
...
@@ -280,7 +280,7 @@ func TestEnvironment_Interprolate(t *testing.T) {
}
}
func
TestEnvironment_AppendHostEnv
V
ars
(
t
*
testing
.
T
)
{
func
TestEnvironment_AppendHostEnv
v
ars
(
t
*
testing
.
T
)
{
host
:=
os
.
Environ
()
if
len
(
host
)
<
2
{
t
.
Skip
(
"No host environment variables. Can't test"
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help