-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathadfa.js
97 lines (96 loc) · 3.45 KB
/
adfa.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
var a = {
"trigger_day": 2,
"name": "policy1",
"roll_back_steps": [{
"params_values": "['system_env', 'sites']",
"script_id": 5,
"sites": "*",
"script_name": "test_check_env",
"order": 1
}, {
"params_values": "['system_env', 'sites']",
"script_id": 7,
"sites": "*",
"script_name": "test_check_env",
"order": 2
}],
"trigger_time": "00:00",
"trigger_mode": 1,
"flows": [{
"description": "",
"steps": [{
"params_values": "['system_env', 'sites']",
"script_id": 5,
"sites": "*",
"script_name": "test_check_env",
"order": 1
}, {
"params_values": "['system_env', 'sites']",
"script_id": 7,
"sites": "*",
"script_name": "test_check_env",
"order": 2
}],
"order": 1,
"id": 6
}, { "description": "", "steps": [{ "params_values": "['system_env', 'sites']", "script_id": 5, "sites": "*", "script_name": "test_check_env", "order": 1 }, { "params_values": "['system_env', 'sites']", "script_id": 7, "sites": "*", "script_name": "test_check_env", "order": 2 }], "order": 2, "id": 7 }],
"id": 4
}
var b = {
'name': 'value1-test-trigger',
'snapshot': {
"trigger_day": 2,
"name": "policy1",
"roll_back_steps": [{
"params_values": { 'system_env': 'java_1.7', 'sites': ['172.16.140.168'] },
"script_id": 5,
"sites": ['172.16.140.168'],
"script_name": "test_check_env",
"order": 1
},
{
"params_values": { 'system_env': 'java_1.7', 'sites': ['172.16.140.168'] },
"script_id": 5,
"sites": ['172.16.140.168'],
"script_name": "test_check_env",
"order": 2
}
],
"trigger_time": "00:00",
"trigger_mode": 1,
"flows": [{
"description": "description",
"name": 'flow1',
"steps": [{ "params_values": { 'system_env': 'java_1.7', 'sites': ['172.16.140.168'] }, "script_id": 5, "sites": ['172.16.140.168'], "script_name": "test_check_env", "order": 1 },
{
"params_values": { 'system_env': 'java_1.7', 'sites': ['172.16.140.168'] },
"script_id": 5,
"sites": ['172.16.140.168'],
"script_name": "test_check_env",
"order": 2
}
],
"order": 1,
"id": 6
},
{
"description": "description",
"name": 'flow1',
"steps": [{ "params_values": { 'system_env': 'java_1.7', 'sites': ['172.16.140.168'] }, "script_id": 5, "sites": ['172.16.140.168'], "script_name": "test_check_env", "order": 1 },
{
"params_values": { 'system_env': 'java_1.7', 'sites': ['172.16.140.168'] },
"script_id": 5,
"sites": ['172.16.140.168'],
"script_name": "test_check_env",
"order": 2
}
],
"order": 2,
"id": 7
}
],
"id": 4
},
'project_id': 6,
'sites': ['192.168.0.1', '192.168.0.2'],
}