hcs-cli 0.1.318__py3-none-any.whl → 0.1.319__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hcs_cli/__init__.py +1 -1
- hcs_cli/cmds/advisor/html_utils.py +30 -26
- hcs_cli/cmds/advisor/recommendation_engine.py +7 -10
- hcs_cli/cmds/daas/tenant/plan.py +1 -1
- hcs_cli/cmds/debug/start.py +0 -1
- hcs_cli/cmds/dev/fs/helper/credential_helper.py +2 -0
- hcs_cli/cmds/dev/fs/helper/k8s_util.py +0 -1
- hcs_cli/cmds/dev/fs/init.py +38 -5
- hcs_cli/cmds/dev/fs/profiler.py +0 -1
- hcs_cli/cmds/dev/fs/provided_files/akka.plan.yml +94 -250
- hcs_cli/cmds/dev/fs/provided_files/azsim.plan.yml +27 -34
- hcs_cli/cmds/dev/fs/provided_files/azure.plan.yml +294 -322
- hcs_cli/cmds/dev/fs/provided_files/mqtt-secret.yaml +188 -93
- hcs_cli/cmds/dev/fs/provided_files/mqtt-server-external.yaml +4 -5
- hcs_cli/cmds/dev/fs/provided_files/patch-mqtt-hostname.yml +3 -3
- hcs_cli/cmds/dev/fs/provided_files/patch-vernemq-ssl-depth.json +1 -1
- hcs_cli/cmds/dev/fs/tailor.py +7 -12
- hcs_cli/cmds/dev/mqtt.py +1 -2
- hcs_cli/cmds/dev/util/mqtt_helper.py +0 -1
- hcs_cli/cmds/hoc/search.py +39 -9
- hcs_cli/cmds/hst/clean.py +2 -1
- hcs_cli/cmds/inventory/assign.py +1 -3
- hcs_cli/cmds/inventory/deassign.py +1 -1
- hcs_cli/cmds/scm/plan.py +131 -3
- hcs_cli/cmds/task.py +2 -4
- hcs_cli/cmds/template/list_usage.py +2 -2
- hcs_cli/cmds/template/usage.py +20 -7
- hcs_cli/cmds/vm/list.py +0 -1
- hcs_cli/config/hcs-deployments.yaml +52 -52
- hcs_cli/main.py +0 -2
- hcs_cli/payload/akka.blueprint.yml +95 -243
- hcs_cli/payload/app/manual.json +19 -19
- hcs_cli/payload/edge/akka.json +6 -6
- hcs_cli/payload/edge/vsphere.json +6 -6
- hcs_cli/payload/hoc/lcm-capcalc.json.template +43 -0
- hcs_cli/payload/hoc/no-spare.json.template +1 -1
- hcs_cli/payload/inventory/assign.json +14 -16
- hcs_cli/payload/inventory/deassign.json +11 -11
- hcs_cli/payload/lcm/akka.json +31 -33
- hcs_cli/payload/lcm/azure-dummy-nt.json +64 -66
- hcs_cli/payload/lcm/azure-dummy.json +64 -66
- hcs_cli/payload/lcm/azure-real.json +13 -11
- hcs_cli/payload/lcm/edge-proxy.json +34 -36
- hcs_cli/payload/lcm/zero-dedicated.json +34 -36
- hcs_cli/payload/lcm/zero-delay-1m-per-vm.json +53 -69
- hcs_cli/payload/lcm/zero-fail-delete-template.json +43 -0
- hcs_cli/payload/lcm/zero-fail-destroy-onthread.json +38 -40
- hcs_cli/payload/lcm/zero-fail-destroy.json +38 -40
- hcs_cli/payload/lcm/zero-fail-prepare-onthread.json +38 -40
- hcs_cli/payload/lcm/zero-fail-prepare.json +38 -40
- hcs_cli/payload/lcm/zero-fail-vm-onthread.json +58 -74
- hcs_cli/payload/lcm/zero-fail-vm.json +58 -74
- hcs_cli/payload/lcm/zero-floating.json +34 -36
- hcs_cli/payload/lcm/zero-manual.json +33 -35
- hcs_cli/payload/lcm/zero-multisession.json +34 -36
- hcs_cli/payload/lcm/zero-nanw.json +31 -33
- hcs_cli/payload/lcm/zero-new-5k-delay.json +69 -78
- hcs_cli/payload/lcm/zero-new-5k.json +36 -38
- hcs_cli/payload/lcm/zero-new-snapshot.json +37 -39
- hcs_cli/payload/lcm/zero-new.json +37 -39
- hcs_cli/payload/lcm/zero-reuse-vm-id.json +33 -35
- hcs_cli/payload/lcm/zero-with-max-id-offset.json +32 -34
- hcs_cli/payload/lcm/zero.json +59 -73
- hcs_cli/payload/provider/ad-stes-vsphere.json +26 -26
- hcs_cli/payload/provider/akka.json +12 -12
- hcs_cli/payload/provider/azure.json +14 -14
- hcs_cli/payload/provider/edgeproxy.json +12 -12
- hcs_cli/payload/provider/vsphere.json +14 -14
- hcs_cli/payload/scm/starter.json +22 -23
- hcs_cli/payload/synt/core/p01-dummy-success.json +11 -15
- hcs_cli/payload/synt/core/p02-dummy-fail.json +12 -15
- hcs_cli/payload/synt/core/p03-dummy-exception.json +12 -15
- hcs_cli/payload/synt/core/p04-dummy-success-repeat.json +12 -15
- hcs_cli/payload/synt/core/p05-dummy-fail-repeat.json +13 -16
- hcs_cli/payload/synt/core/p06-dummy-exception-repeat.json +13 -16
- hcs_cli/payload/synt/core/p07-dummy-delay.json +12 -15
- hcs_cli/payload/synt/core/p08-dummy-property.json +12 -15
- hcs_cli/payload/synt/ext/p20-connect-success.json +12 -15
- hcs_cli/payload/synt/ext/p21-connect-fail.json +12 -15
- hcs_cli/payload/synt/ext/p30-ssl-success.json +12 -15
- hcs_cli/payload/synt/ext/p31-ssl-fail.json +13 -16
- hcs_cli/payload/synt/ext/p40-http-success.json +12 -15
- hcs_cli/payload/synt/ext/p41-http-fail.json +12 -15
- hcs_cli/payload/synt/ext/p42-http-status-code.json +14 -20
- hcs_cli/payload/synt/ext1/p10-ping-success.json +13 -16
- hcs_cli/payload/synt/ext1/p11-ping-fail.json +12 -15
- hcs_cli/payload/synt/ext1/p12-ping-success-repeat.json +14 -17
- hcs_cli/provider/hcs/cert.py +0 -1
- hcs_cli/provider/hcs/edge.py +1 -1
- hcs_cli/provider/hcs/uag.py +1 -1
- hcs_cli/service/hoc/diagnostic.py +0 -3
- hcs_cli/service/lcm/vm.py +0 -1
- hcs_cli/service/task.py +0 -1
- hcs_cli/support/debug_util.py +0 -1
- hcs_cli/support/plan_util.py +0 -1
- hcs_cli/support/predefined_payload.py +4 -1
- hcs_cli/support/template_util.py +0 -1
- hcs_cli/support/test_utils.py +2 -2
- hcs_cli/support/test_utils2.py +536 -0
- {hcs_cli-0.1.318.dist-info → hcs_cli-0.1.319.dist-info}/METADATA +24 -17
- {hcs_cli-0.1.318.dist-info → hcs_cli-0.1.319.dist-info}/RECORD +103 -100
- {hcs_cli-0.1.318.dist-info → hcs_cli-0.1.319.dist-info}/WHEEL +0 -0
- {hcs_cli-0.1.318.dist-info → hcs_cli-0.1.319.dist-info}/entry_points.txt +0 -0
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"exception": "simulated-error"
|
|
3
8
|
},
|
|
4
|
-
"
|
|
5
|
-
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
"enabled": true,
|
|
12
|
-
"labels": {
|
|
13
|
-
},
|
|
14
|
-
"name": "probe03-dummy-exception",
|
|
15
|
-
"type": "TEST_DUMMY"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
9
|
+
"enabled": true,
|
|
10
|
+
"labels": {},
|
|
11
|
+
"name": "probe03-dummy-exception",
|
|
12
|
+
"type": "TEST_DUMMY"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"repeat": "PT2S"
|
|
3
8
|
},
|
|
4
|
-
"
|
|
5
|
-
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
"enabled": true,
|
|
12
|
-
"labels": {
|
|
13
|
-
},
|
|
14
|
-
"name": "probe04-dummy-success-repeat",
|
|
15
|
-
"type": "TEST_DUMMY"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
9
|
+
"enabled": true,
|
|
10
|
+
"labels": {},
|
|
11
|
+
"name": "probe04-dummy-success-repeat",
|
|
12
|
+
"type": "TEST_DUMMY"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"returnCode": "123",
|
|
8
|
+
"repeat": "PT2S"
|
|
3
9
|
},
|
|
4
|
-
"
|
|
5
|
-
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"repeat": "PT2S"
|
|
11
|
-
},
|
|
12
|
-
"enabled": true,
|
|
13
|
-
"labels": {
|
|
14
|
-
},
|
|
15
|
-
"name": "probe05-dummy-fail-repeat",
|
|
16
|
-
"type": "TEST_DUMMY"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"labels": {},
|
|
12
|
+
"name": "probe05-dummy-fail-repeat",
|
|
13
|
+
"type": "TEST_DUMMY"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"exception": "simulated-error",
|
|
8
|
+
"repeat": "PT2S"
|
|
3
9
|
},
|
|
4
|
-
"
|
|
5
|
-
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"repeat": "PT2S"
|
|
11
|
-
},
|
|
12
|
-
"enabled": true,
|
|
13
|
-
"labels": {
|
|
14
|
-
},
|
|
15
|
-
"name": "probe06-dummy-exception-repeat",
|
|
16
|
-
"type": "TEST_DUMMY"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"labels": {},
|
|
12
|
+
"name": "probe06-dummy-exception-repeat",
|
|
13
|
+
"type": "TEST_DUMMY"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"delay": "PT5S"
|
|
3
8
|
},
|
|
4
|
-
"
|
|
5
|
-
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
"enabled": true,
|
|
12
|
-
"labels": {
|
|
13
|
-
},
|
|
14
|
-
"name": "probe07-dummy-delay",
|
|
15
|
-
"type": "TEST_DUMMY"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
9
|
+
"enabled": true,
|
|
10
|
+
"labels": {},
|
|
11
|
+
"name": "probe07-dummy-delay",
|
|
12
|
+
"type": "TEST_DUMMY"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"my-message": "hello"
|
|
3
8
|
},
|
|
4
|
-
"
|
|
5
|
-
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
"enabled": true,
|
|
12
|
-
"labels": {
|
|
13
|
-
},
|
|
14
|
-
"name": "probe08-dummy-property",
|
|
15
|
-
"type": "TEST_DUMMY"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
9
|
+
"enabled": true,
|
|
10
|
+
"labels": {},
|
|
11
|
+
"name": "probe08-dummy-property",
|
|
12
|
+
"type": "TEST_DUMMY"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"target": "www.omnissa.com:443"
|
|
3
8
|
},
|
|
4
|
-
"
|
|
5
|
-
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
"enabled": true,
|
|
12
|
-
"labels": {
|
|
13
|
-
},
|
|
14
|
-
"name": "probe20-connect-success",
|
|
15
|
-
"type": "TEST_CONNECT"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
9
|
+
"enabled": true,
|
|
10
|
+
"labels": {},
|
|
11
|
+
"name": "probe20-connect-success",
|
|
12
|
+
"type": "TEST_CONNECT"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"target": "www.vmware123456.com:12345"
|
|
3
8
|
},
|
|
4
|
-
"
|
|
5
|
-
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
"enabled": true,
|
|
12
|
-
"labels": {
|
|
13
|
-
},
|
|
14
|
-
"name": "probe21-connect-fail",
|
|
15
|
-
"type": "TEST_CONNECT"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
9
|
+
"enabled": true,
|
|
10
|
+
"labels": {},
|
|
11
|
+
"name": "probe21-connect-fail",
|
|
12
|
+
"type": "TEST_CONNECT"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"target": "https://www.omnissa.com/",
|
|
8
|
+
"verify_ssl": true
|
|
3
9
|
},
|
|
4
|
-
"
|
|
5
|
-
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"target": "https://www.omnissa.com/",
|
|
10
|
-
"verify_ssl": true
|
|
11
|
-
},
|
|
12
|
-
"enabled": true,
|
|
13
|
-
"labels": {
|
|
14
|
-
},
|
|
15
|
-
"name": "probe30-ssl-success",
|
|
16
|
-
"type": "TEST_SSL"
|
|
17
|
-
}
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"labels": {},
|
|
12
|
+
"name": "probe30-ssl-success",
|
|
13
|
+
"type": "TEST_SSL"
|
|
14
|
+
}
|
|
18
15
|
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"target": "https://self-signed.badssl.com/",
|
|
8
|
+
"verify_ssl": true
|
|
3
9
|
},
|
|
4
|
-
"
|
|
5
|
-
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"verify_ssl": true
|
|
11
|
-
},
|
|
12
|
-
"enabled": true,
|
|
13
|
-
"labels": {
|
|
14
|
-
},
|
|
15
|
-
"name": "probe31-ssl-fail",
|
|
16
|
-
"type": "TEST_SSL"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"labels": {},
|
|
12
|
+
"name": "probe31-ssl-fail",
|
|
13
|
+
"type": "TEST_SSL"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"target": "https://www.omnissa.com/"
|
|
3
8
|
},
|
|
4
|
-
"
|
|
5
|
-
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
"enabled": true,
|
|
12
|
-
"labels": {
|
|
13
|
-
},
|
|
14
|
-
"name": "probe40-http-success",
|
|
15
|
-
"type": "TEST_HTTP"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
9
|
+
"enabled": true,
|
|
10
|
+
"labels": {},
|
|
11
|
+
"name": "probe40-http-success",
|
|
12
|
+
"type": "TEST_HTTP"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"target": "https://www.omnissa.com/some-inexist-url"
|
|
3
8
|
},
|
|
4
|
-
"
|
|
5
|
-
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
"enabled": true,
|
|
12
|
-
"labels": {
|
|
13
|
-
},
|
|
14
|
-
"name": "probe41-http-fail",
|
|
15
|
-
"type": "TEST_HTTP"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
9
|
+
"enabled": true,
|
|
10
|
+
"labels": {},
|
|
11
|
+
"name": "probe41-http-fail",
|
|
12
|
+
"type": "TEST_HTTP"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"enabled": true,
|
|
17
|
-
"labels": {},
|
|
18
|
-
"name": "probe42-http-status-code",
|
|
19
|
-
"type": "TEST_HTTP"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"target": "https://www.omnissa.com/some-inexist-url",
|
|
8
|
+
"expected_status_codes": [404, 403, 202, 200, 301]
|
|
9
|
+
},
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"labels": {},
|
|
12
|
+
"name": "probe42-http-status-code",
|
|
13
|
+
"type": "TEST_HTTP"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"target": "localhost",
|
|
8
|
+
"count": 1
|
|
3
9
|
},
|
|
4
|
-
"
|
|
5
|
-
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"count": 1
|
|
11
|
-
},
|
|
12
|
-
"enabled": true,
|
|
13
|
-
"labels": {
|
|
14
|
-
},
|
|
15
|
-
"name": "probe10-ping-success",
|
|
16
|
-
"type": "TEST_PING"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"labels": {},
|
|
12
|
+
"name": "probe10-ping-success",
|
|
13
|
+
"type": "TEST_PING"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"target": "127.0.0.333",
|
|
8
|
+
"count": 1
|
|
3
9
|
},
|
|
4
|
-
"
|
|
5
|
-
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"target": "127.0.0.333",
|
|
10
|
-
"count": 1
|
|
11
|
-
},
|
|
12
|
-
"enabled": true,
|
|
13
|
-
"labels": {
|
|
14
|
-
},
|
|
15
|
-
"name": "probe11-ping-fail",
|
|
16
|
-
"type": "TEST_PING"
|
|
17
|
-
}
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"labels": {},
|
|
12
|
+
"name": "probe11-ping-fail",
|
|
13
|
+
"type": "TEST_PING"
|
|
14
|
+
}
|
|
18
15
|
}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"alertPolicy": {},
|
|
3
|
+
"notificationConfig": {},
|
|
4
|
+
"outpostIds": [],
|
|
5
|
+
"testConfig": {
|
|
6
|
+
"data": {
|
|
7
|
+
"target": "localhost",
|
|
8
|
+
"count": 1,
|
|
9
|
+
"repeat": "PT2S"
|
|
3
10
|
},
|
|
4
|
-
"
|
|
5
|
-
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"count": 1,
|
|
11
|
-
"repeat": "PT2S"
|
|
12
|
-
},
|
|
13
|
-
"enabled": true,
|
|
14
|
-
"labels": {
|
|
15
|
-
},
|
|
16
|
-
"name": "probe12-ping-success-repeat",
|
|
17
|
-
"type": "TEST_PING"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
11
|
+
"enabled": true,
|
|
12
|
+
"labels": {},
|
|
13
|
+
"name": "probe12-ping-success-repeat",
|
|
14
|
+
"type": "TEST_PING"
|
|
15
|
+
}
|
|
16
|
+
}
|
hcs_cli/provider/hcs/cert.py
CHANGED
hcs_cli/provider/hcs/edge.py
CHANGED
|
@@ -150,7 +150,7 @@ def refresh(data: dict, state: dict) -> dict:
|
|
|
150
150
|
if id:
|
|
151
151
|
edge = admin.edge.get(id, org_id)
|
|
152
152
|
if not edge:
|
|
153
|
-
edges = admin.edge.list(org_id, search=f
|
|
153
|
+
edges = admin.edge.list(org_id, search=f"name $eq {data['name']}")
|
|
154
154
|
if edges:
|
|
155
155
|
edge = edges[0]
|
|
156
156
|
|
hcs_cli/provider/hcs/uag.py
CHANGED
|
@@ -48,7 +48,7 @@ def refresh(data: dict, state: dict) -> dict:
|
|
|
48
48
|
ret = admin.uag.get(id, org_id)
|
|
49
49
|
if ret:
|
|
50
50
|
return ret
|
|
51
|
-
search = f
|
|
51
|
+
search = f"name $eq {data['name']}"
|
|
52
52
|
uags = admin.uag.list(org_id, search=search)
|
|
53
53
|
if uags:
|
|
54
54
|
return uags[0]
|
|
@@ -11,13 +11,11 @@ _client = hdc_service_client("hoc-diagnostic")
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def search(payload: dict, size: int = 100):
|
|
14
|
-
|
|
15
14
|
pointer_timestamp = timeutil.iso_date_to_timestamp(payload["from"])
|
|
16
15
|
end_timestamp = timeutil.iso_date_to_timestamp(payload["to"])
|
|
17
16
|
|
|
18
17
|
count = 0
|
|
19
18
|
while pointer_timestamp < end_timestamp and count < size:
|
|
20
|
-
|
|
21
19
|
payload["from"] = timeutil.timestamp_to_iso_date(pointer_timestamp)
|
|
22
20
|
# log.info(f"range: from={payload['from']}, to={payload['to']}")
|
|
23
21
|
|
|
@@ -33,7 +31,6 @@ def search(payload: dict, size: int = 100):
|
|
|
33
31
|
|
|
34
32
|
# _old = count
|
|
35
33
|
for item in page:
|
|
36
|
-
|
|
37
34
|
data = item["data"]
|
|
38
35
|
|
|
39
36
|
count += 1
|
hcs_cli/service/lcm/vm.py
CHANGED
hcs_cli/service/task.py
CHANGED
hcs_cli/support/debug_util.py
CHANGED
|
@@ -44,7 +44,6 @@ def restart_service(service_name: str, old_pod_id: str):
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
def kubectl_patch(service_name: str, patch_params: list):
|
|
47
|
-
|
|
48
47
|
service_full_name = get_service_full_name(service_name)
|
|
49
48
|
# Formulate the Kubernetes patch command
|
|
50
49
|
patch_command = ["kubectl", "patch", service_full_name] + patch_params
|
hcs_cli/support/plan_util.py
CHANGED
|
@@ -2,6 +2,7 @@ import json
|
|
|
2
2
|
import os
|
|
3
3
|
import os.path as path
|
|
4
4
|
import sys
|
|
5
|
+
from typing import cast
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
def load(name: str, as_json: bool = False) -> str:
|
|
@@ -11,7 +12,7 @@ def load(name: str, as_json: bool = False) -> str:
|
|
|
11
12
|
if path.exists(file_name):
|
|
12
13
|
with open(file_name, "rt") as f:
|
|
13
14
|
if as_json:
|
|
14
|
-
return json.load(f)
|
|
15
|
+
return cast(str, json.load(f))
|
|
15
16
|
return f.read()
|
|
16
17
|
|
|
17
18
|
# payload file not found.
|
|
@@ -24,6 +25,8 @@ def load(name: str, as_json: bool = False) -> str:
|
|
|
24
25
|
continue
|
|
25
26
|
if file.endswith(".json"):
|
|
26
27
|
file = file[:-5]
|
|
28
|
+
elif file.endswith(".json.template"):
|
|
29
|
+
file = file[:-14]
|
|
27
30
|
items.append(file)
|
|
28
31
|
items.sort()
|
|
29
32
|
for file in items:
|
hcs_cli/support/template_util.py
CHANGED
|
@@ -7,7 +7,6 @@ from typing import Callable
|
|
|
7
7
|
def with_template_file(
|
|
8
8
|
name: str, substitutions: dict, fn: Callable, base_path: str = None, use_temp_file: bool = False, delete_after: bool = False
|
|
9
9
|
):
|
|
10
|
-
|
|
11
10
|
if base_path:
|
|
12
11
|
if os.path.isfile(base_path):
|
|
13
12
|
base_path = os.path.dirname(os.path.realpath(base_path))
|
hcs_cli/support/test_utils.py
CHANGED
|
@@ -16,7 +16,7 @@ limitations under the License.
|
|
|
16
16
|
import json
|
|
17
17
|
import os
|
|
18
18
|
import subprocess
|
|
19
|
-
from typing import Callable
|
|
19
|
+
from typing import Any, Callable
|
|
20
20
|
from unittest import TestCase
|
|
21
21
|
|
|
22
22
|
|
|
@@ -68,7 +68,7 @@ class CliTest(TestCase):
|
|
|
68
68
|
def verify(
|
|
69
69
|
self,
|
|
70
70
|
cmd: str,
|
|
71
|
-
expected_stdout:
|
|
71
|
+
expected_stdout: Any,
|
|
72
72
|
expected_return_code: int = 0,
|
|
73
73
|
expect_stderr_empty: bool = True,
|
|
74
74
|
verify_stderr: Callable = None,
|