Jose Manuel Heredia Hidalgo
118158b6f9
Make sure parsed body is an array when expecting Sequence ( #385 )
...
* Make sure parsed body is an array when expecting Sequence
* Update lib/serviceClient.ts
Co-Authored-By: Ramya Rao <ramya.rao.a@outlook.com>
* Update changelog and constants
* Add test
* update changelog
* Remove unecessary format changes
Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>
2020-04-30 16:22:14 -07:00
Sarangan Rajamanickam
c8e6bd165d
Minor change II
2020-04-29 02:09:32 -07:00
Sarangan Rajamanickam
3dfbc7e91a
Minor addition
2020-04-29 02:06:32 -07:00
Sarangan Rajamanickam
9bb98e07b4
Added Test cases
2020-04-29 01:40:28 -07:00
Sarangan Rajamanickam
4feb5c1d8d
Remove trailing space
2020-04-22 11:31:25 -07:00
Sarangan Rajamanickam
a84f5460e5
Merge remote-tracking branch 'origin/master' into Issue4244
2020-04-22 11:29:43 -07:00
Sarangan Rajamanickam
0fe3c7714d
PR Comments
2020-04-15 15:57:56 -07:00
Sarangan Rajamanickam
2114b223c7
Added one more test with parameters with commas
2020-04-15 12:48:10 -07:00
Sarangan Rajamanickam
8f0294a4bb
Code changes to modify encoding step
2020-04-15 12:37:40 -07:00
Jeff Fisher
90053fa355
Widen usage of WebResource to interface
2020-04-14 15:35:46 -07:00
David Wilson
22e6f41a73
Fix defaultHttpClient test that depends on example.com source
2020-01-07 16:11:02 -08:00
Amar Zavery
21541e9c06
updating the structure of defining additionalProperties properties in the mapper, the way it is done in autorest.typescript
2019-07-11 13:43:38 -07:00
Amar Zavery
c50cc0d5f1
- compare model property name and the clientName of the polymorphic discriminator
...
- check explicitly that defaultValue is not undefined
- unskip test
2019-07-10 20:06:22 -07:00
Amar Zavery
cb0c0a5279
serialization updates
2019-07-10 16:44:40 -07:00
Amar Zavery
71e156dd57
updated dependencies and dev dependencies. made modifications based on updated type definitions and modified rollup.config.ts as required by the latest version of node resolve rollup plugin.
2019-07-05 18:07:51 -07:00
Kamil Pajdzik
5f3395fb8d
Update tests to include Pattern constraint
2019-06-25 16:47:13 -07:00
Kamil Pajdzik
7b065ccaab
Add support for Fetch in Node.js environment ( #351 )
...
* Update version
* Add Fetch HTTP client (#342 )
* Add Fetch HTTP client
* Reset version
* Update version
* Fix isNode method to return true in Electron apps
* Update Constants
* Fix incorrect undefined check in Axios client
* Add TSLint check. Fix TSLint errors (#344 )
* Add TSLint check. Fix TSLint errors
* Add type to delay callback
* Update TypeScript
* Remove unnecessary types/xhr-mock package
* Fix missing delay import
* Reformat Fetch client
* Fix wrong union type
* Fix tests
* Normalize the safe-check
* Add script to run tests on dependent projects (#345 )
* Add script to run tests on dependent projects
* Bump the version
* Fix logging statements
* Update constants
* Update Azure Pipelines configuration
* Fix Azure Pipeline job name
* Add gulp build command
* Add npm run local
* Flip order
* Add build step
* Add more logging
* Fix undefined result print
* Remove inheriting stdio
* Change to spawnSync
* Add more logging
* Remove build step
* Change exec to run from JS dev tools
* Add logger-js package
* Add build step back
* Add process.exit
* Add logging
* Change error logging
* Add command printing
* Extract options object
* Add fullOptions parameter
* Change NPM command name
* Remove logging
* Remove npm run test
* Await additional commands
* Add test command to package.json
* Add timeout
* Add test as separate task
* Change foreach to for
* Remove test from package.json command
* Uncomment npm install commands
* Add latest ms-rest-js to npm install
* Add autorest.typescript DevOps task
* Add npm link
* Change link to install
* Remove prepack script
* Change package name to ../..
* Remove rm -rf
* Add build step
* Add git checkout
* Add dependent project directory
* Remove git branch checkout
* Bump the version to 1.8.6
* Add git checkout
* Change branch name
* Add execution directory
* Remove git checkout
* Add tsc --version command
* Remove local ms-rest-js install
* Move .tmp folder
* Change .tmp path creation
* Fix path in Azure DevOps config
* Renable logging
* Add run to build command
* Move scripts back to TypeScript
* Improve logging
* Fixed #347 and #348
* nit fix
* bump version in the constant file.
* Address reiew feedback
* upgrade ci to run node 8, 10, 12 versions. Remove 6.x.
* Reformat mockHttp
* Add Fetch to browser
* Add Firefox Karma configuration
* Switch from isomorphic-fetch to cross-fetch
* Add cross-fetch to rollup configuration
* Remove buffer and streams from webpack test configuration
* Add Firefox karma launcher
* Add FetchMock for browser scenarios
* Extract platform specific code to child classes
* Bump the version
* Add proxy support to fetch client (#350 )
* Remove cross-fetch
* Add proxy support
* Fix stream upload tests
* Extract ProxyAgent
* Bring XHR as default client for browsers
* Address feedback
* Bring back browser mock
* Add type
* Fix pass through mock
* Change import type
* Fix fetch import
* Change fetch reference
* Remove cross fetch from rollup config
* Remote unit.ts
* Add fallback fetch reference
* Fix constants
* Fix fetch bugs
* Upgrade TypeScript
* Remove unnecessary code from mock class
* Remove type
* Change vresion to preview
* Remove Method import
* Fix user agent tests
* Remove Method casting
* Remove Method type
* Disable ms-rest-azure-js installation in CI
* Fix pack order
* Add keep-alive support (#362 )
* Remove remaining axios references
* Update documentation
* Add missing external packages in rollup config
* Add Keep-Alive changelog
* Bump the version
2019-06-24 09:01:20 -07:00
Amar Zavery
d7ed995e6b
bring back changes to the mock http adapter
2019-06-06 17:08:46 -07:00
Amar Zavery
0e1c327a8f
Bumped version of axios to 0.19.0
2019-06-01 18:12:07 -07:00
Kamil Pajdzik
62d85bfeb8
Add TSLint check. Fix TSLint errors ( #344 )
...
* Add TSLint check. Fix TSLint errors
* Add type to delay callback
* Update TypeScript
* Remove unnecessary types/xhr-mock package
* Fix missing delay import
2019-05-07 11:40:22 -07:00
a-hohaze
e7fa52ff13
Fix http over https bug ( #341 )
...
* Fix http over https bug
* Update version
* Fix unit tests
2019-04-25 09:48:03 -07:00
Dan Schulte
7a46155276
Improve tests
2019-02-11 10:13:35 -08:00
Dan Schulte
c71008a095
Add userAgentHeaderName to ServiceClientOptions
2019-02-11 10:06:57 -08:00
Kamil Pajdzik
fafa26180e
Fix including proxy policy in browser ( #328 )
...
* Fix including proxy policy in browser
* Add browser tests
2019-01-30 13:21:26 -08:00
Kamil Pajdzik
c1742fe6a8
Bring Axios interceptors back ( #325 )
...
* Bring Axios interceptors back
* Bump the constant version
2019-01-25 17:28:39 -08:00
Kamil Pajdzik
1ee5a40d50
Add HTTP(S) over HTTP(S) proxy support ( #322 )
...
* Add proxy support using tunnel package
# Conflicts:
# lib/axiosHttpClient.ts
# lib/policies/proxyPolicy.ts
# lib/serviceClient.ts
# package.json
* Fix incorrect merge
* Add tests
* Remove commented code
* Add tunnel to rollup configuration
* Fix test title casing
* Remove only
* Add axios client tests
* Mock buffer
* Remove rewire
* Fix default HTTP client tests
* Add some proxy tests
* Add support for HTTPS proxy
* Address PR comments
2019-01-25 09:22:30 -08:00
Kamil Pajdzik
4c2b1c5390
Fix default HTTP client tests ( #321 )
...
* Enable CORS
* Add empty line
* Add mock http proxy
* Fix few tests
* Remove axios workaround that was fixed in current release
* Fix all tests except download/upload progress
* Fix stream HTTP tests
* Delete testserver
* Remove reporting skipped tests as warning
* Remove .only
* Add nodeIt
* Fix Constants.ts
* Remove it.skip()
2019-01-22 11:46:55 -08:00
Kamil Pajdzik
1d960e1ad6
Add support for HTTP proxy ( #315 )
...
* Add support for HTTP proxy
* Fix overriding existing properties
* Bump the version to 1.5.0
2019-01-15 16:47:43 -08:00
Kamil Pajdzik
6b217db81d
Add karma for browser tests ( #316 )
...
* Add karma dependency
* Add karma extensions
* Add karma configuration
* Add karma script
* Add karma types
* Format configs
* Working TS scripts
* Move tests around
* Add nodeDescribe and browserDescribe
* Working karma bundle
* Add maps
* Trying to make karma-webpack working
* Fix uuid import
* Trying to make rollup work
* Working debug maps (not working regular tests)
* Working headless Chrome
* Add chrome debugging
* Fix config sharing
* Add TS mappings
* Fix rollup config
* Add TypeScript typings
* Rename multi entry typings
* Fix semicolon
* Make webpack work
* Working webpack
* Add webpack scripts
* Start XHR mocks
* Fix another test
* Skip defaultHttpClient tests
* Add browser test to the test script
* Update the version to 1.4.1
2019-01-15 15:00:06 -08:00
Dan Schulte
a9a0e75710
Fix user agent tests
2019-01-15 13:02:22 -08:00
Dan Schulte
4590730607
Modify a couple of tests to use the function version of requestPolicyFactories
2019-01-15 11:05:00 -08:00
Dan Schulte
e87925fe8f
Allow ServiceClientOptions.userAgent property to be a function
2019-01-15 10:29:07 -08:00
Dan Schulte
790de0fa2e
Fix serialization bug for ie11
2018-12-26 10:35:17 -08:00
Dan Schulte
df41e95c7d
Enable test coverage reporting
2018-12-14 10:23:41 -08:00
Dan Schulte
0c27cf5128
Add test results to pipeline
2018-12-13 15:28:51 -08:00
Kamil Pajdzik
120e3f553b
Add deserializing missing properties ( #289 )
...
* Boostrap LRO deserialization tests
* Add new test
* Reset everything to master
* Handling edge cases
* Add support for header collection prefix
* Fix nested deserialization
* Remove unnecessary method
* Address PR comments
* Change way of saving handled properties
* Change way of saving handled properties
* Remove unnecessary method
* Bump the version
2018-12-03 20:11:31 -08:00
Kamil Pajdzik
5e5a0c16dc
Upgrade all dependencies ( #285 )
...
* Upgrade all dependencies
* Add should import
* Fix should import in serialization tests
* Update npm-run-all
* Update version
* Move from should.js to chai
2018-11-29 09:00:36 -08:00
Dan Schulte
1f68aa8b54
Make unit tests stable
2018-11-27 13:36:56 -08:00
Kamil Pajdzik
afdad40478
Add throttle handling policy ( #277 )
2018-11-19 10:09:10 -08:00
Sergey Shandar
4a19567fe6
Build matrix ( #269 )
...
* matrix
* no default pool
* typo
* typo
* No Node 11 yet.
* no `prepare` script. Run `prepack`.
* Node 11
* run build before test
* Better displayName for `Install Node`.
* script in travis-ci
* install chromium
* sudo apt-get update
* Publish everithings
* no need to run build on test
* no need to run build
* minor
* drop
* build dist
* build everithing but rollup
* download artifact
* dependency
* no test result publishin
* script instead of NPM task
* alloc
* minor
* stop test-server
* only one job
* timeout for mocha-chrome
* pipelines.
* tree-kill
* one process?
* logging.
* no idea
* maxParallel = 1
* multiple jobs instead of matrix
* another try
* Template
* unique job name
* the same key?
* syntax
* parameter syntax
* parameters.
* no idea
* name
* name
* 6 & 8
2018-11-13 13:47:00 -08:00
Kamil Pajdzik
91fce83166
Fix (de)serializing polymorphic elements in an array ( #262 )
...
* Prepare additional test case
* Fix array element's name
* Fix serializing polymorphic elements in array
* Address code review comments
2018-11-07 10:55:35 -08:00
Kamil Pajdzik
059c685e07
Fix deserializing nested composite types with no polymorphic discriminator specified ( #258 )
2018-11-05 13:55:00 -08:00
Kamil Pajdzik
2bbdcf857f
Revert "Fix missing renaming in ServiceClient ( #256 )"
...
This reverts commit 576e7f791a
.
2018-11-02 13:05:44 -07:00
Kamil Pajdzik
576e7f791a
Fix missing renaming in ServiceClient ( #256 )
...
* Fix missing renaming in ServiceClient
* Rename references in unit tests
* Fix failing test
2018-11-02 12:06:59 -07:00
Kamil Pajdzik
1ea02dac61
Reorganize user agent telemetry construction ( #254 )
...
* Restructure value of user agent telemetry
* Add option to set empty telemetry
* Simplify if condition
2018-11-01 09:26:55 -07:00
Kamil Pajdzik
523b891b4d
Add browser telemetry ( #252 )
2018-10-26 13:59:05 -07:00
Dan Schulte
33a44e4dcb
Apply ignore headers scenario to numbers
2018-10-17 09:30:42 -07:00
Dan Schulte
fc4fab8fea
Add another test
2018-10-16 19:59:32 -07:00
Dan Schulte
c8ed724a4c
Ignore XML headers when deserializing XML elements with headers and text
2018-10-16 18:49:18 -07:00
Dan Schulte
2b2fb53eb6
Change arrow functions in tests back to regular functions
2018-10-15 15:47:42 -07:00