opencomputeproject / OSF-OSFCI

Open Source Firmware Continuous Integration source code
MIT License
22 stars 11 forks source link

Private Key Download Button #81

Closed vedicpanda closed 1 year ago

vedicpanda commented 1 year ago

Made front end and back end changes to allow a prospective OSFCI user to download private keys to enable them to load their own firmware into the dev ci tool.

Steps to Test Basic Functionality Works (Popup and Download Button appears, and making sure pop up doesn't show up again in your current login instance):

1) Open up the Dev CI homepage. Ensure that the download button or pop up does not appear. 2) Log in. After you complete this process, a pop up should appear along with a Download Private Keys button on the far right (to the left of the drop down). 3) Click acknowledge to make sure the pop up goes away until next log in. You can ensure this by typing mylocalStorage['privKeyInfoAck'] in the console. A value of 1 should be returned. You can test to make sure that the pop up doesn't show up by clicking the home button.

Steps to make sure the download private key button actually sends the correct get request. (Complete these steps after doing the first section)

1) Click the download private key button. The private key binary file should either download or open up in a new tab.

Step to Ensure Download Private Key Button goes away correctly

Situation 1: After logging out

1) Click the logout button. The private key should disappear until you re login.

Situation 2: When you run CI.

1) move your mouse over your username, a drop down should show up. Click any interactive session. Once you get out of the waitlist and the session starts, the download button should disappear on the nav bar.