* Improved relative path checking based on file existence
If the file exists at the relative path, then use it. If not, then use the path as is.
* Apply File.Exists logic to ReadResponseBodyAsString as well
* Make path handling more robust since path is user defined
* Unit tests for relative path feature
* Replace all back and forward slashes with system dependent DirectorySeparatorChar
* Attempt fix broken directory separator chars for Unix platforms
* Revert wrapping GetMappingFolder with CleanPath
* Move CleanPath logic to its own class
* Remove whitespace
* Remove more whitespace
* Improve CleanPath method
* Move PathUtils tests to separate class
Add another test to ResponseWithBodyFromFileTests
* Fix Response_ProvideResponse_WithBodyFromFile_InAdminMappingFolder
* Debug Linux CI build
* Debug Linux CI
* print all files from admin mappings folder
* Debug CleanPath
* Fix removed leading directory separator char in Linux breaks file path
Remove debugging statements
* Move combine to PathUtils
* PathUtils + PathUtilsTests
* Remove replicated (3x) tests throughout ResponseWithBodyFromFileTests
Co-authored-by: Stef Heyenrath <Stef.Heyenrath@gmail.com>
* XPath transformer, added handlerbars helper to select nodes using xpath and setting the outerxml value in response
* Added test to select attribute value and node text
* Removed extra empty lines
* Fix recorded requests skipped request logger.
- When proxy is enabled the recorded requests are mistaken (IMO) for admin requests and skipped
* Add unit test
* Use different solution
* Introduce IsRecordedByProxy property on Mapping class
* Cleanup empty lines
* Refactored fix suggested way
* Add Test for Proxy with binary request
* Fix binary parsing in BodyParser
* Fix binary Matching in RequestMessageBodyMatcher
* Improved Binary Matching in RequestMessageBodyMatcher
* BodyParser: Add test for Content Autodetection
* RequestMessageBodyMatcherTests: Make Code more pretty :)
* BodyParserChanges: Revert white space changes
* Fixed test for different behavior in request matching
* Dynamic response files using Handlebars templating
(#270)
* * Response templating / transformation using Handlebars and extensions
* Add unit test for JsonPath and BodyAsFile mapping (#272)
* fix merge issue
* [265] Add file upload to allow mocking of file operations
* [265] Fix failing test
* Update code + add tests
* LocalFileSystemHandlerTests
* 1.0.13
* Fixed the file post to create the mapping folder if none exists to begin with, otherwise the file upload fails with 404 (can't find the folder to upload to).
* fix tests
* add more tests for LocalFileSystemHandler
* Added the head method for files to check if a file exists without returning it as a body.
* Add a test and fix the response message (head requires no body).
* Fix newline
* Fix newline.
* Fix the number of mapping tests
* Update tests and update client-interface-api
* Cleanup "MappingConverter.cs"