Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"get_schain_status" function returns different types #25

Open
oleksandrSydorenkoJ opened this issue Sep 11, 2024 · 0 comments
Open

"get_schain_status" function returns different types #25

oleksandrSydorenkoJ opened this issue Sep 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@oleksandrSydorenkoJ
Copy link

Describe the bug
The "get_schain_status" function returns String for error messages and Dict for success calls

def get_schain_status(self, schain_name):

Version:
skale-checks:1.0dev17

Preconditions
Schain Medium type
All nodes are up and running

To Reproduce

  1. Connect the Watchdog checks from the Skale-checks
  2. Invoke get_schain_status for node A from the Skale chain
  3. Stop skaled-container for chain on this node A
  4. Invoke get_schain_status for the Skale chain on stopped node A

Expected behavior
Skaled in steps 2 and 4 should return the same Dict type:

  • For running skaled should return the actual Skale chain status
  • For stopped skaled should return empty Dict

Actual state
Skaled in steps 2 and 4 returns:

  • Dict with skaled Statuses
  • String with error message "sChain <schain_name> not found"
@oleksandrSydorenkoJ oleksandrSydorenkoJ added the bug Something isn't working label Sep 11, 2024
@oleksandrSydorenkoJ oleksandrSydorenkoJ changed the title "get_schain_status" function return different types "get_schain_status" function returnі different types Sep 11, 2024
@oleksandrSydorenkoJ oleksandrSydorenkoJ changed the title "get_schain_status" function returnі different types "get_schain_status" function returns different types Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants