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

/theme does not match SBH1 GET & POST #375

Open
anjalakaturi opened this issue Apr 6, 2023 · 0 comments · May be fixed by #466
Open

/theme does not match SBH1 GET & POST #375

anjalakaturi opened this issue Apr 6, 2023 · 0 comments · May be fixed by #466
Assignees
Milestone

Comments

@anjalakaturi
Copy link
Contributor

anjalakaturi commented Apr 6, 2023

GET
http://localhost:7777/admin/theme
SBH1

{"instanceName":"Test Synbiohub","frontPageText":"text","firstLaunch":false,"currentTheme":{"title":"Default","description":"The default SynBioHub theme","version":"1.0.0","author":"SynBioHub","url":"http://github.com/SynBioHub/synbiohub","parameters":[{"type":"color","variable":"baseColor","name":"Base Color","default":"#D25627"}]},"themeParameters":[{"name":"Base Color","variable":"baseColor","value":"#D25627"}]}

http://localhost:6789/admin/theme
SBH3

{"instanceName":"Test Synbiohub","frontPageText":"text","theme":"default","themeParameters":{"default":{}},"firstLaunch":false}

RESPONSE CODE TEST PASSED: Response codes matched 200
RESPONSE CONTENT TEST FAILED: Content does not match

POST
logo = os.path.basename('./logo.jpg');
data={
'instanceName': 'test_instance',
'frontPageText' : 'test_instance',
'baseColor' : 'A32423',
'showModuleInteractions' : 'ok',
}
files={
'logo' : (logo, open('./logo.jpg', 'rb')),
}
compare_post_request("/admin/theme", data, headers = {"Accept": "text/plain"}, files = files, test_name = "admin_setAdministratorEmail", test_type = test_type)

[synbiohub test] test_admin_theme starting
http://localhost:7777/admin/theme
SBH1

{"instanceName":"Test Synbiohub","frontPageText":"text","firstLaunch":false,"currentTheme":{"title":"Default","description":"The default SynBioHub theme","version":"1.0.0","author":"SynBioHub","url":"http://github.com/SynBioHub/synbiohub","parameters":[{"type":"color","variable":"baseColor","name":"Base Color","default":"#D25627"}]},"themeParameters":[{"name":"Base Color","variable":"baseColor","value":"#D25627"}]}

http://localhost:6789/admin/theme
SBH3

{"instanceName":"Test Synbiohub","frontPageText":"text","theme":"default","themeParameters":{"default":"#D25627"},"firstLaunch":false}

RESPONSE CODE TEST PASSED: Status Code: 200
RESPONSE CONTENT TEST PASSED: Content matches

[synbiohub test] test_admin_theme completed
[synbiohub test] test_admin_updateTheme starting
http://localhost:7777/admin/theme
SBH1

Theme updated successfully

http://localhost:6789/admin/theme
SBH3

RESPONSE CODE TEST PASSED: Status Code: 200
RESPONSE CONTENT TEST FAILED

[synbiohub test] test_admin_updateTheme completed

@anjalakaturi anjalakaturi changed the title /theme does not match SBH1 /theme does not match SBH1 GET & POST Jun 5, 2023
@anjalakaturi anjalakaturi linked a pull request Jun 5, 2023 that will close this issue
@cjmyers cjmyers added this to the SBH 3.0.0 milestone Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants