projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update helm repo after adding the repo
[osm/N2VC.git]
/
n2vc
/
tests
/
unit
/
test_k8s_helm3_conn.py
diff --git
a/n2vc/tests/unit/test_k8s_helm3_conn.py
b/n2vc/tests/unit/test_k8s_helm3_conn.py
index
91e1729
..
775b0a7
100644
(file)
--- a/
n2vc/tests/unit/test_k8s_helm3_conn.py
+++ b/
n2vc/tests/unit/test_k8s_helm3_conn.py
@@
-86,7
+86,7
@@
class TestK8sHelm3Conn(asynctest.TestCase):
async def test_repo_add(self):
repo_name = "bitnami"
repo_url = "https://charts.bitnami.com/bitnami"
async def test_repo_add(self):
repo_name = "bitnami"
repo_url = "https://charts.bitnami.com/bitnami"
- self.helm_conn._local_async_exec = asynctest.CoroutineMock(return_value=(
"", 0
))
+ self.helm_conn._local_async_exec = asynctest.CoroutineMock(return_value=(
0, ""
))
await self.helm_conn.repo_add(self.cluster_uuid, repo_name, repo_url)
await self.helm_conn.repo_add(self.cluster_uuid, repo_name, repo_url)
@@
-110,24
+110,24
@@
class TestK8sHelm3Conn(asynctest.TestCase):
call0_kargs = calls[0][1]
self.assertEqual(
call0_kargs.get("command"),
call0_kargs = calls[0][1]
self.assertEqual(
call0_kargs.get("command"),
- repo_
update
_command,
- "Invalid repo
update
command: {}".format(call0_kargs.get("command")),
+ repo_
add
_command,
+ "Invalid repo
add
command: {}".format(call0_kargs.get("command")),
)
self.assertEqual(
call0_kargs.get("env"),
self.env,
)
self.assertEqual(
call0_kargs.get("env"),
self.env,
- "Invalid env for
update
command: {}".format(call0_kargs.get("env")),
+ "Invalid env for
add
command: {}".format(call0_kargs.get("env")),
)
call1_kargs = calls[1][1]
self.assertEqual(
call1_kargs.get("command"),
)
call1_kargs = calls[1][1]
self.assertEqual(
call1_kargs.get("command"),
- repo_
add
_command,
- "Invalid repo
add
command: {}".format(call1_kargs.get("command")),
+ repo_
update
_command,
+ "Invalid repo
update
command: {}".format(call1_kargs.get("command")),
)
self.assertEqual(
call1_kargs.get("env"),
self.env,
)
self.assertEqual(
call1_kargs.get("env"),
self.env,
- "Invalid env for
add
command: {}".format(call1_kargs.get("env")),
+ "Invalid env for
update
command: {}".format(call1_kargs.get("env")),
)
@asynctest.fail_on(active_handles=True)
)
@asynctest.fail_on(active_handles=True)