aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* Fix dependencies in tests to accomodate project splitJakob Odersky2018-10-091-0/+89
|
* Move database-related functionality to separate projectJakob Odersky2018-10-091-42/+0
| | | | | | | | | | | | | | | | | | | This committ includes a breaking change. The database-specific utility "Converters" trait threw an exception "DatabaseException" defined in the rest package, thus breaking the dependency graph. The solution was to move the DatabaseException class from rest to database and not inherit ServiceExceptio any more. Unfortunately, the rest classes also require the database exception in propagating errors so this funtionality has been removed. The rationale is: 1. Database exceptions are rare and result in 500 errors anyway making the status code opaque to what actual error caused it. 2. In core 2.0, an improved tracing framework will make diagnosing and following database errors easier, thereby attenuating the need to forward details on service exceptions in responses.
* Move REST functionality to separate projectJakob Odersky2018-10-098-1426/+0
|
* Move storage and messaging to separate projectsJakob Odersky2018-10-092-124/+0
|
* Move core types into core-types projectJakob Odersky2018-10-096-465/+0
| | | | | | | | | Note that xyz.driver.core.FutureExtensions was moved to xyz.driver.core.rest as it (only) contained logic that dealt with service exceptions, something that belongs into core-rest and must not be depended upon by core-types. This is a breaking change.
* Improve PhoneNumber (#222)Sergey Nastich2018-09-192-0/+53
| | | | | * Add support for extensions * Add PathMatcher and allow parsing JSON from string * Add a number of convenience methods which are to be used instead of `toString`
* Trait-based initialization and other utilitiesJakob Odersky2018-09-121-11/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the concept of a 'platform', a centralized place in which environment-specific information will be managed, and provides common initialization logic for most "standard" apps. As part of the common initialization, other parts of core have also been reworked: - HTTP-related unmarshallers and path matchers have been factored out from core.json to a new core.rest.directives package (core.json extends those unmarshallers and matchers for backwards compatibility) - CORS handling has also been moved to a dedicated utility trait - Some custom headers have been moved from raw headers to typed ones in core.rest.headers - The concept of a "reporter" has been introduced. A reporter is a context-aware combination of tracing and logging. It is intended to issue diagnostic messages that can be traced across service boundaries. Closes #192 Closes #195
* Add `Trimmed` tag and its logic (revisited) (#215)v1.14.2Sergey Nastich2018-09-126-33/+103
| | | | | | | * Add option and iterable converters for transparent `@@ Trimmed` creation. * Move tagging stuff to a separate package - relieve `core.scala` from some extra code. * Add Tagging stuff and publishing section to README.md
* Add `@@ Trimmed` tag for Strings and Names to support by JSON readers (#211)v1.14.1Sergey Nastich2018-09-102-0/+16
|
* Add `Cache-Control: no-cache` to all responses of DriverRoutes. (#190)Sergey Nastich2018-09-101-1/+11
| | | | This change is intended to battle IE (even IE 11) caching all GET responses (and not making any new ones) that don't list those headers
* Migration to `java.time.Instant` and `java.time.LocalDate`: Part 1 (#200)v1.13.0Sergey Nastich2018-08-241-233/+340
| | | | | | | | | | * Add semi-backwards-compatible JSON formats and path matchers for java.time.Instant and java.time.LocalDate * Use `Clock` in `ApplicationContext` instead of `TimeProvider`, deprecate `TimeProvider` * Add `ChangeableClock` in time package for tests * Add generators for instants and LocalDates
* Add json formats for country code and currency code (#197)v1.12.3Sergey Nastich2018-08-211-2/+32
|
* [RFC] Use akka's built-in authenticate/authorize directives in AuthProvider ↵Zach Smith2018-08-012-16/+35
| | | | | | | | | | (#136) * Use akka's built-in authenticate/authorize directives in AuthProvider * Move AuthProvider companion object to AuthProvider file, move realm to parameter of AuthProvider * Add secondary constructor to maintain ABI compat
* Add message bus and topic abstractions (#181)v1.12.0Jakob Odersky2018-07-311-0/+30
|
* Validate phone numbers when parsing from JSON (#183)v1.11.8Zach Smith2018-07-191-0/+8
| | | | | | * Validate phone numbers when parsing from JSON * Change to intercept for test
* Fix pagination directive failing on empty responses (#182)v1.11.7Sergey Nastich2018-07-111-18/+64
|
* Add `completeWithPagination` directive (#180)Sergey Nastich2018-07-112-4/+36
| | | | | * Extracts pagination from the request * Adds ResourceCount/PageCount headers to the response
* Add `Connection: close` header to all responses in order to mitigate ↵v1.11.2Sergey Nastich2018-06-141-1/+18
| | | | connection pool issues with envoy (#175)
* Full upgrade of build and library dependenciesJakob Odersky2018-06-051-2/+2
|
* Add service exception json formatters and pass through exceptions in ↵v1.9.4zachdriver2018-05-251-8/+25
| | | | HttpRestServiceTransport (#168)
* [API-1584] Change AuthCredentials to accept a string identifier (#166)v1.9.3Arthur Rand2018-05-161-0/+29
| | | | | | | | | | | | * make email optional, add optional phone number to AuthCredentials * make AuthCredentials take a String instead of an email * wrap phone number parsing in Try * add json formatter for AuthCredentials * try val
* [API-1498] add url method to blobStorage (#157)v1.8.24Arthur Rand2018-04-181-0/+5
| | | | | | | | | | | | | | | | * add url method to blobStorage * typo * typo * address comments * address comments * remove * scalafmt
* Fixed merge JsValues when field is absent in old value (#153)v1.8.21Kseniya Tomskikh2018-04-121-0/+9
|
* Use AuthenticationFailedRejection to send 401 back to the client (#151)v1.8.20Satya Boora2018-04-101-1/+2
|
* Merge branch 'master' into FIX-TIME-COMPARISSONAleksandr2018-04-102-0/+102
|\
| * Add convenience methods to work with Tags: `taggedWith` wrapper and a proxy ↵Sergey Nastich2018-04-091-0/+14
| | | | | | | | | | JSON format (#147) * Add convenience methods to work with Tags: `tagged` wrapper and a proxy JSON format
| * Add blob storage abstractionsv1.8.15Jakob Odersky2018-04-061-0/+88
| |
* | Fixed toCalendar method of TimeOfDay classAleksandr2018-04-091-0/+3
|/
* Reduce flakiness of a random-based testv1.8.13Sergey Nastich2018-04-041-1/+1
|
* Add enumeratum support to JSON format and generators (#144)v1.8.12Sergey Nastich2018-04-032-1/+91
| | | | | * Add enumeratum support to JSON format and generators * Move enumeratum serializers into their own object. Add enumeratum unmarshaller. Add entities to derive JsonFormats instead of having to type them externally.
* SCALA-20 Use liphonenumber in `PhoneNumber.parse` to accomodate chinese ↵Sergey Nastich2018-03-281-0/+79
| | | | numbers (and other countries)
* [API-1468] add TimeOfDay (#141)v1.8.11Arthur Rand2018-03-283-1/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add TimeOfDay * add formatter * . * Revert "." This reverts commit 89576de98092dd75d3af7d82d244d5eaa24d31d9. * scalafmt * add before and after to ToD, and tests * rearrage, make fromStrings * add generator * address comments * use explicit string for TimeZoneId * renaming * revert Converters changes * change name of private method * change apply method * use month
* Use patch unmarshallerZach Smith2018-03-251-23/+25
|
* Curry the PatchRetrievable apply methodZach Smith2018-03-201-6/+6
|
* Enforce application/merge-patch+json Content-TypeZach Smith2018-03-201-6/+19
|
* Add implicit ServiceRequestContext to PatchRetrievableZach Smith2018-03-161-5/+5
|
* Add PatchSupport trait and testsZach Smith2018-03-161-0/+77
|
* Review fixKseniya Tomskikh2018-03-071-1/+1
|
* Created directive for optional paginationKseniya Tomskikh2018-03-061-0/+23
|
* Use Akka's parameter directive to extract a paginationJakob Odersky2018-03-011-7/+42
|
* Remove unused abstract config from DriverRouteZach Smith2018-02-261-10/+0
|
* Move cors directives to DriverApp and get rid of custom rejection handlerZach Smith2018-02-222-46/+85
|
* Remove default config valuesZach Smith2018-02-202-100/+59
|
* Remove rejection handler, respond with default set of allowed methods and ↵Zach Smith2018-02-202-13/+51
| | | | origins to all options requests in DriverRoute
* scalfmt, add a testArtRand2018-02-091-0/+10
|
* add expectExistsAndValidArtRand2018-02-091-0/+5
|
* add testArtRand2018-02-081-2/+16
|
* Add expirationTime to AuthTokenUserInfoZach Smith2018-01-251-1/+3
|
* Remove authId from AuthTokenUserInfo and remove AuthUser case classZach Smith2018-01-251-1/+0
|
* Merge pull request #100 from drivergroup/service-exception-test-namesStewart Stewart2018-01-081-2/+2
|\ | | | | Make test descriptions for service exceptions not lie