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

admin/registries, admin/saveRegistry, admin/deleteRegistry #451

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 26 additions & 19 deletions tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,25 +73,32 @@ def test_admin1(self):
# compare_post_request("/admin/deletePlugin", data, headers = {"Accept": "text/plain"}, test_name = "admin_deletePlugin", test_type = test_type)
# test_print("test_admin_deletePlugin completed")

# test_print("test_admin_registries starting")
# #SBH3 throws error
# compare_get_request("admin/registries", headers = {"Accept": "text/plain"}, test_type = test_type, comparison_type="json", fields=["registries", "errors"])
# test_print("test_admin_registries completed")

# test_print("test_admin_saveRegistry starting")
# data={
# 'uri': 'testurl.com',
# 'url' : 'testurl.com',
# }
# compare_post_request("/admin/saveRegistry", data, headers = {"Accept": "text/plain"}, test_name = "admin_saveRegistry", test_type = test_type)
# test_print("test_admin_saveRegistry completed")

# test_print("test_admin_deleteRegistry starting")
# data={
# 'uri': 'testurl.com',
# }
# compare_post_request("/admin/deleteRegistry", data, headers = {"Accept": "text/plain"}, test_name = "admin_deleteRegistry", test_type = test_type)
# test_print("test_admin_deleteRegistry completed")
test_print("test_admin_registries starting")
#SBH3 throws error
compare_get_request("admin/registries", headers = {"Accept": "text/plain"}, test_type = test_type, comparison_type="json", fields=["registries", "errors"])
test_print("test_admin_registries completed")

test_print("test_admin_deleteRegistry starting")
data={
'uri': 'testurl.com',
}
compare_post_request("/admin/deleteRegistry", data, headers = {"Accept": "text/plain"}, test_name = "admin_deleteRegistry_notSaved", test_type = test_type)
test_print("test_admin_deleteRegistry completed")

test_print("test_admin_saveRegistry starting")
data={
'uri': 'testurl.com',
'url' : 'testurl.com',
}
compare_post_request("/admin/saveRegistry", data, headers = {"Accept": "text/plain"}, test_name = "admin_saveRegistry", test_type = test_type)
test_print("test_admin_saveRegistry completed")

test_print("test_admin_deleteRegistry starting")
data={
'uri': 'testurl.com',
}
compare_post_request("/admin/deleteRegistry", data, headers = {"Accept": "text/plain"}, test_name = "admin_deleteRegistry", test_type = test_type)
test_print("test_admin_deleteRegistry completed")

# test_print("test_admin_setAdministratorEmail starting")
# data={
Expand Down