Conversation
* Renamed assertion json tag to responseAction. * Refactored related logic and doc.
* Simplified json files for ResponseAction - ResponseActions group and name by method with meaning "group.name". In code this value is separated for more intuitive usage.
* Refactored responseActions logic to accept random parameter names. * Correct parameters are validated in time of project loading.
* Extended json schemas by descriptions and version.
* Implemented full expected methods for Log 'ResponseAction'.
…... part * Implemented methods for Assertion 'ResponseAction' - header-... part * Implemented methods for Assertion 'ResponseAction' - content-type-... part * Updated log message to keep same format - on debug level. * Migrate several Set to Seq to keep order of elements which is required by logic of test design.
# Conflicts: # testApi/src/main/resources/schema/after.schema.json # testApi/src/main/resources/schema/before.schema.json # testApi/src/main/resources/schema/suite.schema.json # testApi/src/main/scala/africa/absa/testing/scapi/json/Requestable.scala # testApi/src/main/scala/africa/absa/testing/scapi/model/Method.scala # testApi/src/main/scala/africa/absa/testing/scapi/model/SuiteTestScenario.scala # testApi/src/main/scala/africa/absa/testing/scapi/rest/response/AssertionResponseAction.scala # testApi/src/main/scala/africa/absa/testing/scapi/rest/response/LogResponseAction.scala # testApi/src/main/scala/africa/absa/testing/scapi/rest/response/Response.scala # testApi/src/test/resources/project_with_issues/suites/aulgui-controller/undefinedConstantIssue.suite.json # testApi/src/test/resources/test_project/suites/gui-controller/deleteQuestion.suite.json # testApi/src/test/resources/test_project/suites/gui-controller/getUserCurrent.after.json # testApi/src/test/resources/test_project/suites/gui-controller/getUserCurrent.before.json # testApi/src/test/resources/test_project/suites/gui-controller/getUserCurrent.suite.json # testApi/src/test/resources/test_project/suites/gui-controller/postQuestion.suite.json # testApi/src/test/resources/test_project/suites/gui-controller/putQuestion.suite.json # testApi/src/test/scala/africa/absa/testing/scapi/json/SuiteFactoryTest.scala # testApi/src/test/scala/africa/absa/testing/scapi/rest/response/ResponseAssertionsTest.scala # testApi/src/test/scala/africa/absa/testing/scapi/rest/response/ResponseExtractTest.scala # testApi/src/test/scala/africa/absa/testing/scapi/rest/response/ResponseLogTest.scala # testApi/src/test/scala/africa/absa/testing/scapi/rest/response/ResponseTest.scala # testApi/src/test/scala/africa/absa/testing/scapi/suite/runner/SuiteRunnerTest.scala
testApi/src/main/scala/africa/absa/testing/scapi/rest/request/sender/ScAPIRequestSender.scala
Outdated
Show resolved
Hide resolved
testApi/src/main/scala/africa/absa/testing/scapi/rest/response/LogResponseAction.scala
Outdated
Show resolved
Hide resolved
testApi/src/main/scala/africa/absa/testing/scapi/rest/response/Response.scala
Outdated
Show resolved
Hide resolved
* Fix not used method parameters review note.
dk1844
left a comment
There was a problem hiding this comment.
Not part of this PR, but the Logger with var level getting set around is very weird.
Some of the intercept[xxx] call do not check the error message, wouldn't it be worth being present everywhere? Or are there some exceptions?
testApi/src/main/scala/africa/absa/testing/scapi/rest/response/LogResponseAction.scala
Outdated
Show resolved
Hide resolved
testApi/src/main/scala/africa/absa/testing/scapi/rest/response/LogResponseAction.scala
Outdated
Show resolved
Hide resolved
testApi/src/main/scala/africa/absa/testing/scapi/rest/response/Response.scala
Outdated
Show resolved
Hide resolved
testApi/src/main/scala/africa/absa/testing/scapi/utils/validation/ContentValidator.scala
Outdated
Show resolved
Hide resolved
testApi/src/main/scala/africa/absa/testing/scapi/rest/response/LogResponseAction.scala
Outdated
Show resolved
Hide resolved
testApi/src/main/scala/africa/absa/testing/scapi/rest/response/Response.scala
Outdated
Show resolved
Hide resolved
* Fix - not used method parameters review note. * Fix - String to Enum * Fix - replace boolean return values in XYZResponseAction methods.
* Fix - replace Log type of response actions by enum. * Fix - replace ExtractJson type of response actions by enum.
…eturn values. * Fix - make response perform method private. * Fix - Update tests checking exceptions to check meesages too. * Fix - Update assert method to assert values with clues where missing.
All intercepts reviewed and now all of them should check message too. |
* Fix - update of visibility on methods and attributes. * Fix - removed old no more used object LoggerConfig.
* Rename of variable in code to fit to real usage.
* Fix - moved Suite related models classes to new suite package in model package.
* Fix - rename SuiteAround to SuitePreAndPostProcessing. * Fix - rename SuiteBefore to BeforeTestSet * Fix - rename SuiteAfter to AfterTestSet * Fix - rename SuiteBundle to Suite * Fix - rename ResponsePerformer to ResponseActions * Fix - move ResponseAction related file into new package action * Fix - rename "endpoint" to "name" as this parameters is used as name for suite not as endpoint.
… name and location.
… name and location. Second part: refactor Enumeration for SuiteResultType.
|
I have finished all review notes. See commits in review note answers. |
dk1844
left a comment
There was a problem hiding this comment.
Looks better, thanks for the fixes from last time.
testApi/src/main/scala/africa/absa/testing/scapi/suite/runner/SuiteRunner.scala
Outdated
Show resolved
Hide resolved
...rc/main/scala/africa/absa/testing/scapi/rest/response/action/ExtractJsonResponseAction.scala
Outdated
Show resolved
Hide resolved
testApi/src/main/scala/africa/absa/testing/scapi/rest/response/action/LogResponseAction.scala
Outdated
Show resolved
Hide resolved
.../main/scala/africa/absa/testing/scapi/rest/response/action/types/LogResponseActionType.scala
Outdated
Show resolved
Hide resolved
...in/scala/africa/absa/testing/scapi/rest/response/action/types/AssertResponseActionType.scala
Outdated
Show resolved
Hide resolved
...ala/africa/absa/testing/scapi/rest/response/action/types/ExtractJsonResponseActionType.scala
Outdated
Show resolved
Hide resolved
testApi/src/test/scala/africa/absa/testing/scapi/json/SuiteFactoryTest.scala
Outdated
Show resolved
Hide resolved
testApi/src/test/scala/africa/absa/testing/scapi/reporter/StdOutReporterTest.scala
Outdated
Show resolved
Hide resolved
testApi/src/test/scala/africa/absa/testing/scapi/rest/response/ResponseExtractTest.scala
Show resolved
Hide resolved
…are used only in tests.
#8 - Implement method ideas
Implemented full expected methods for Log 'ResponseAction'.
Implemented methods for Log 'ResponseAction'.
Done several refactoring changes: