зеркало из https://github.com/Azure/azurehpc.git
first test
This commit is contained in:
Родитель
7d4d837224
Коммит
1a503ceee9
|
@ -5,7 +5,12 @@
|
|||
"resource_group": "variables.resource_group",
|
||||
"variables": {
|
||||
"resource_group": "<NOT-SET>",
|
||||
"location": "<NOT-SET>"
|
||||
"location": "<NOT-SET>",
|
||||
"int_value": 42,
|
||||
"bool_value": true,
|
||||
"simple_variable": "value",
|
||||
"use_variable": "variables.simple_variable",
|
||||
"double_curly_braces": "simple_variable={{variables.simple_variable}}"
|
||||
},
|
||||
"vnet": {
|
||||
"name": "hpcvnet",
|
||||
|
@ -14,5 +19,16 @@
|
|||
"resources": {
|
||||
},
|
||||
"install": [
|
||||
{
|
||||
"type": "local_script",
|
||||
"script": "check_variables.sh",
|
||||
"args": [
|
||||
"variables.int_value", 42,
|
||||
"variables.bool_value", true,
|
||||
"variables.simple_variable", "value",
|
||||
"variables.use_variable", "value",
|
||||
"variables.double_curly_braces", "simple_variable=value"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
# Validate that $n is $n+1 value
|
||||
|
||||
error=0
|
||||
while test $# -gt 0
|
||||
do
|
||||
arg=$1
|
||||
value=$2
|
||||
echo "testing $arg=$value"
|
||||
if [ "$arg" != "$value" ]; then
|
||||
echo "ERROR : expected value $value is differrent from $arg"
|
||||
error=1
|
||||
fi
|
||||
shift
|
||||
shift
|
||||
done
|
||||
|
||||
exit $error
|
Загрузка…
Ссылка в новой задаче