-
-
Notifications
You must be signed in to change notification settings - Fork 718
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
automation & sequence: fix use of default policies and set Sequence as default sequence policy #5897
Conversation
5d954f9
to
a4deb50
Compare
I had to rename one of the UnitTest classes so that Eclipse would properly find it and run it as a JUnit test. |
Still needs changelog and help updates I guess |
addOns/automation/src/main/java/org/zaproxy/addon/automation/jobs/PolicyDefinition.java
Outdated
Show resolved
Hide resolved
addOns/automation/src/test/java/org/zaproxy/addon/automation/jobs/ActiveScanJobUnitTest.java
Outdated
Show resolved
Hide resolved
...uence/src/main/java/org/zaproxy/zap/extension/sequence/automation/SequenceActiveScanJob.java
Show resolved
Hide resolved
addOns/automation/src/test/java/org/zaproxy/addon/automation/jobs/ActiveScanJobUnitTest.java
Outdated
Show resolved
Hide resolved
ebd5ac4
to
02430c9
Compare
This comment was marked as resolved.
This comment was marked as resolved.
addOns/automation/src/main/java/org/zaproxy/addon/automation/jobs/PolicyDefinition.java
Outdated
Show resolved
Hide resolved
02430c9
to
9b95891
Compare
addOns/automation/src/main/java/org/zaproxy/addon/automation/jobs/ActiveScanJob.java
Show resolved
Hide resolved
...mation/src/main/javahelp/org/zaproxy/addon/automation/resources/help/contents/job-ascan.html
Outdated
Show resolved
Hide resolved
...src/main/javahelp/org/zaproxy/zap/extension/sequence/resources/help/contents/automation.html
Show resolved
Hide resolved
9b95891
to
0203cab
Compare
addOns/automation/src/test/java/org/zaproxy/addon/automation/jobs/ActiveScanJobUnitTest.java
Outdated
Show resolved
Hide resolved
0203cab
to
7caef4f
Compare
a14df14
to
d2a97d4
Compare
9850833
to
9f85171
Compare
Okay I think I'm caught up to all the feedback now 😉 |
Call parse from verify? |
Then I believe it's already covered. Both activeScanJob and sequenceActiveScanJob call parse in verifyParameters. |
8734388
to
454ec06
Compare
They need to call it always, currently when not present that method is not called and the null strength is not set. |
454ec06
to
b196075
Compare
Done |
addOns/automation/src/main/java/org/zaproxy/addon/automation/jobs/PolicyDefinition.java
Outdated
Show resolved
Hide resolved
addOns/automation/src/main/java/org/zaproxy/addon/automation/jobs/PolicyDefinition.java
Outdated
Show resolved
Hide resolved
addOns/automation/src/test/java/org/zaproxy/addon/automation/jobs/PolicyDefinitionUnitTest.java
Outdated
Show resolved
Hide resolved
addOns/automation/src/main/java/org/zaproxy/addon/automation/jobs/ActiveScanJob.java
Outdated
Show resolved
Hide resolved
b196075
to
c8cd054
Compare
Done x4 |
c8cd054
to
228b9f8
Compare
addOns/automation/src/test/java/org/zaproxy/addon/automation/jobs/PolicyDefinitionUnitTest.java
Outdated
Show resolved
Hide resolved
addOns/automation/src/main/java/org/zaproxy/addon/automation/jobs/PolicyDefinition.java
Outdated
Show resolved
Hide resolved
228b9f8
to
a8a8e6e
Compare
Fixed....I dunno why I over complicated it 👍 |
a8a8e6e
to
be0de1a
Compare
Thank you! |
Now has conflicts |
Signed-off-by: kingthorin <kingthorin@users.noreply.github.com> # Conflicts: # addOns/sequence/CHANGELOG.md
Signed-off-by: kingthorin <kingthorin@users.noreply.github.com>
be0de1a
to
e79bd6f
Compare
Tweaked |
Overview
Modify automation and sequence to properly build and use a policy from policyDefinition if present in the plan. If neither policy nor policyDefinition are defined fall back to
Default Policy
orSequence
respectively.Related Issues
n/a
Checklist
./gradlew spotlessApply
for code formatting