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

UI: Generate manual run commands with OTP #3195

Merged
merged 5 commits into from
Apr 6, 2023

Conversation

cakekoa
Copy link
Contributor

@cakekoa cakekoa commented Apr 4, 2023

What does this PR do?

Fixes part of #3078.

  • Adds OTP to the Manual Run Monkey commands
  • Adds a button to obtain a new OTP

PR Checklist

  • Have you added an explanation of what your changes do and why you'd like to include them?
  • Is the TravisCI build passing?
  • Was the CHANGELOG.md updated to reflect the changes?
  • Was the documentation framework updated to reflect the changes?
  • Have you checked that you haven't introduced any duplicate code?

Testing Checklist

  • Added relevant unit tests?
  • Do all unit tests pass?
  • Do all end-to-end tests pass?
  • Any other testing performed?

    Running the Island and testing the UI
    Executing the generated commands

  • If applicable, add screenshots or log transcripts of the feature working
    Screen.Recording.2023-04-05.at.10.05.21.AM.mov

@cakekoa cakekoa force-pushed the 3078-manual-run-refresh-button branch from 8472067 to 2d86ab5 Compare April 5, 2023 13:32
@cakekoa cakekoa marked this pull request as ready for review April 5, 2023 14:00
@codecov
Copy link

codecov bot commented Apr 5, 2023

Codecov Report

❗ No coverage uploaded for pull request base (develop@8a07fc3). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #3195   +/-   ##
==========================================
  Coverage           ?   73.05%           
==========================================
  Files              ?      471           
  Lines              ?    13585           
  Branches           ?        0           
==========================================
  Hits               ?     9924           
  Misses             ?     3661           
  Partials           ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cakekoa cakekoa force-pushed the 3078-manual-run-refresh-button branch from 458e546 to 0583355 Compare April 5, 2023 18:15
Comment on lines 60 to 67
function generateCommands() {
if (osType === OS_TYPES.WINDOWS_64) {
return [{type: 'Powershell', command: GenerateLocalWindowsPowershell(selectedIp, customUsername)}]
return [{type: 'Powershell', command: GenerateLocalWindowsPowershell(selectedIp, customUsername, otp)}]
} else {
return [{type: 'CURL', command: GenerateLocalLinuxCurl(selectedIp, customUsername)},
{type: 'WGET', command: GenerateLocalLinuxWget(selectedIp, customUsername)}]
return [{type: 'CURL', command: GenerateLocalLinuxCurl(selectedIp, customUsername, otp)},
{type: 'WGET', command: GenerateLocalLinuxWget(selectedIp, customUsername, otp)}]
}
}
Copy link
Contributor

@ilija-lazoroski ilija-lazoroski Apr 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to hide the OTP and replace it with '*'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants