Describe the bug
Describe the bug
If the local config contains multiple contexts for the same Microcks server,
deleting one of those contexts can remove the shared server config for all of them.
To Reproduce
-
Start Microcks locally:
-
Create another context pointing to the same server:
./microcks login http://localhost:8585 --name dev
-
Delete one of the contexts:
./microcks context dev --delete
-
Inspect the local config:
cat ~/.config/microcks/config
Current behavior
When there is only one server entry in the config and multiple contexts point to
that same server, deleting one context can also remove the shared server-related
metadata. In some cases, the whole config file is deleted(including the metada of the isntance).
Expected behavior
Expected behavior
Deleting one context should remove only that context. The shared server, user, auth,
and instance metadata should remain as long as another context still references the
same server.
Additional context
This was reproduced with multiple contexts pointing to http://localhost:8585.
Actual behavior
No response
How to Reproduce?
No response
Microcks version or git rev
No response
Install method (docker-compose, helm chart, operator, docker-desktop extension,...)
No response
Additional information
No response
Describe the bug
Describe the bug
If the local config contains multiple contexts for the same Microcks server,
deleting one of those contexts can remove the shared server config for all of them.
To Reproduce
Start Microcks locally:
Create another context pointing to the same server:
./microcks login http://localhost:8585 --name dev
Delete one of the contexts:
./microcks context dev --delete
Inspect the local config:
cat ~/.config/microcks/config
Current behavior
When there is only one server entry in the config and multiple contexts point to
that same server, deleting one context can also remove the shared server-related
metadata. In some cases, the whole config file is deleted(including the metada of the isntance).
Expected behavior
Expected behavior
Deleting one context should remove only that context. The shared server, user, auth,
and instance metadata should remain as long as another context still references the
same server.
Additional context
This was reproduced with multiple contexts pointing to http://localhost:8585.
Actual behavior
No response
How to Reproduce?
No response
Microcks version or git rev
No response
Install method (
docker-compose,helm chart,operator,docker-desktop extension,...)No response
Additional information
No response