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

runCommand feature + integration tests #359

Merged
merged 23 commits into from
Dec 14, 2022
Merged

runCommand feature + integration tests #359

merged 23 commits into from
Dec 14, 2022

Conversation

xlcheng1
Copy link
Contributor

@xlcheng1 xlcheng1 commented Dec 7, 2022

Motivation

Modifications

Change summary

Please describe what changes are included in this pull request.

Revision diff summary

If there is more than one revision, please explain what has been changed since the last revision.

Testing

Is your change tested? If not, please justify the reason.

  • Unit tests and integration tests included.
    Please list your testing steps and test results.
  • CI test run result:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@xlcheng1 xlcheng1 changed the title Run cmd runCommand feature + integration tests Dec 7, 2022
@xlcheng1 xlcheng1 marked this pull request as ready for review December 8, 2022 02:01
@xlcheng1 xlcheng1 merged commit fb17eae into main Dec 14, 2022
@xlcheng1 xlcheng1 deleted the runCmd branch December 14, 2022 17:29
RogerZhongAWS pushed a commit that referenced this pull request Jan 3, 2023
* runCommand test

* Added code branch to execute commands without user and sudo, fixed sudo verification and jobdocument validation

* refactoring

* updated input struct, added unit tests

* Addressed comments from previous revision, added another unit test for command contains space

* Addressed comments

* Added SplitByComma for command

* updated README for runCommand, fixed SIGFAULT when command is empty

* fixed a typo

* added README part asking user not to provide sudo inside command field

* addressed comments, changed type of command from console and job doc to string, added a sample doc for runCommand

* moved string manipulation functions to StringUtils, added unit tests

* Added trimming spaces for command field

* fixed a typo in sample job doc

* fixed wrong command type in README

* added integration tests for runCmd

* fixed typo in job doc for integration test

* testing

* resolved old job doc causing seg fault

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

Successfully merging this pull request may close these issues.

3 participants