-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add new expect action #501
Closed
Closed
Commits on Jun 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 752266e - Browse repository at this point
Copy the full SHA 752266eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a1070a0 - Browse repository at this point
Copy the full SHA a1070a0View commit details -
Refactored expect.yaml and step.go to remove
type
field from step s……tructs **Changed:** - Refactored `expect.yaml` to remove `type` fields from steps. - Updated `basicstep.go` and `expectstep.go` to remove `type` field from step structs and initialization. - Modified `step.go` to dynamically determine step types without `type` field. - Enhanced `expectstep_test.go` with additional test cases for ExpectStep. **Added:** - Introduced environment and output fields to ExpectStep struct. - Added error handling for missing responses in ExpectStep validation. **Removed:** - Removed redundant log messages from `step.go`.
Configuration menu - View commit details
-
Copy full SHA for 1e2acfe - Browse repository at this point
Copy the full SHA 1e2acfeView commit details -
Configuration menu - View commit details
-
Copy full SHA for bbb284a - Browse repository at this point
Copy the full SHA bbb284aView commit details -
Updated
expectstep.go
andstep.go
with enhanced documentation and…… attributes. **Added:** - Detailed comments for ExpectStep attributes in `expectstep.go` - Detailed comments for Response attributes in `expectstep.go` - Detailed comments for all ExpectStep methods in `expectstep.go` - Check for ambiguous types in ParseAction method of `step.go` - Additional fields (File, TTP, EditFile) in ParseAction method of `step.go` **Changed:** - Renamed error messages in `expectstep.go` to lowercase for consistency - Updated copyright year in `step.go` - Refactored comments to adhere to GoDoc standards in `expectstep.go`
Configuration menu - View commit details
-
Copy full SHA for 832329f - Browse repository at this point
Copy the full SHA 832329fView commit details -
Added directory change handling and refactored test script creation
**Added:** - Directory change handling in ExpectStep `Execute` method with defer function - New test case for ExpectStep with directory change verification - Cleanup step execution in test cases to verify script removal **Changed:** - Refactored `createTestScript` to accept script content as a parameter - Updated test cases to use dynamic script content - Adjusted ExpectStep validation to remove redundant comments **Removed:** - Removed license header from `expectstep_test.go` for simplicity
Configuration menu - View commit details
-
Copy full SHA for 27fabe2 - Browse repository at this point
Copy the full SHA 27fabe2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 377a4f9 - Browse repository at this point
Copy the full SHA 377a4f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9993697 - Browse repository at this point
Copy the full SHA 9993697View commit details -
Configuration menu - View commit details
-
Copy full SHA for df5eae6 - Browse repository at this point
Copy the full SHA df5eae6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6101afe - Browse repository at this point
Copy the full SHA 6101afeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 55fbabb - Browse repository at this point
Copy the full SHA 55fbabbView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.