summaryrefslogtreecommitdiffstats
path: root/vespaclient-java/src/test/java
Commit message (Collapse)AuthorAgeFilesLines
* Move Jackson util from vespajlib to container-core.Henning Baldersheim2023-11-241-1/+1
|
* jackson 2.16 changes some of its default settings so we consolidate our use ↵Henning Baldersheim2023-11-231-3/+2
| | | | | | of the ObjectMapper. Unless special options are used, use a common instance, or create via factory metod.
* Update copyrightJon Bratseth2023-10-0916-16/+16
|
* Use consistent timer instance, and set meaningful message timestampsjonmv2023-07-101-6/+6
|
* Create crypto tool output streams with RW permissions for owner onlyTor Brede Vekterli2023-05-021-3/+8
|
* pick up create flag for put operationsHåvard Pettersen2023-04-281-0/+3
|
* Add a "null-rendering" option to `vespa-visit`Tor Brede Vekterli2023-03-061-0/+23
| | | | | | | | | | This makes it easy to benchmark whether document rendering is a bottleneck when visiting. For instance, large floating point tensor fields are notoriously expensive to render as JSON. This is more accurate than just redirecting the visit output to `/dev/null` as that still requires documents to be rendered before being evicted into the void.
* Backport visit slicing to `vespa-visit` CLI toolTor Brede Vekterli2023-03-011-20/+40
| | | | | | | | | | Allows for efficient parallelization across multiple visitor instances, mirroring the existing support in Document V1. Also clean up some legacy option value parsing code. Note: changing the parsed type for `maxtotalhits` from `int` to `long` is intentional; the internal limit is already a `long` and a cluster may have a lot more than `INT32_MAX` documents.
* Add JSONL output support to `vespa-visit` CLI toolTor Brede Vekterli2023-02-231-12/+68
| | | | | JSONL output is enabled via new `--jsonl` argument. Mutually exclusive with `--jsonoutput` and (deprecated) `--xmloutput`.
* Json it is..Henning Baldersheim2023-01-301-1/+1
|
* Support direct tensor renderingJon Bratseth2023-01-141-7/+7
|
* Support Zstd (un)compression during crypto CLI encryption and decryptionTor Brede Vekterli2023-01-041-0/+44
| | | | | Simplifies working with compressed plaintext, as it removes the need for piping via `unzstd` or using a temporary file.
* Rename short tensor output CLI optionTor Brede Vekterli2022-12-052-2/+2
| | | | | `tensor-short-form` -> `shorttensors` to be in line with existing option formatting.
* Add tensor short form output option to vespa-getTor Brede Vekterli2022-12-052-1/+4
|
* Add tensor short form output option to vespa-visit toolTor Brede Vekterli2022-12-052-4/+64
| | | | | | Specified with `--tensor-short-form`. No single-char option alias, as short form output will be the default on Vespa 9 and we're running out of usable option characters for this tool anyway.
* Use latest junitHenning Baldersheim2022-12-021-2/+3
|
* Move vespa-status-filedistribution to where the other clients are and use a ↵Henning Baldersheim2022-12-021-0/+59
| | | | common jar file.
* Use latest junit.Henning Baldersheim2022-11-293-16/+16
|
* Collapse the vespa_feed_perf into the other feed clients.Henning Baldersheim2022-11-293-0/+571
|
* No need to bring in container dependencies in the feeder client.Henning Baldersheim2022-11-281-0/+1
|
* Support interactive private key entry when not using stdio redirectionTor Brede Vekterli2022-11-181-3/+24
| | | | | | Avoids having to use a file indirection for inputting a private key. Only available when the JVM is running under an interactive console and none of the input/output files use standard streams.
* Support auto-resolving private key files based on token key IDTor Brede Vekterli2022-11-171-9/+124
| | | | | | | | Lets a user specify a private key directory either with a command line argument or via an environment variable. If a directory is provided, the private key to use will be attempted auto-resolved based on the key ID stored in the token. This only applies if the key ID is comprised of exclusively path-safe characters.
* Add support for token resealingTor Brede Vekterli2022-11-111-22/+59
| | | | | | | | | Adds underlying support--and tooling--for resealing a token for another recipient. This allows for delegating decryption to another party without having to reveal the private key of the original recipient (or having to send the raw underlying secret key over a potentially insecure channel). Key ID can/should change as part of this operation.
* Use Base62 for tokens and Base58 for keysTor Brede Vekterli2022-11-091-4/+4
| | | | | | | | * Base62 minimizes extra size overhead relative to Base64. * Base58 removes ambiguous characters from key encodings. Common for both bases is that they do not emit any characters that interfer with easily selecting them on web pages or in the CLI.
* Add a simple base conversion toolTor Brede Vekterli2022-11-081-0/+31
| | | | | | | | Currently supports converting from and to any combination of base {16, 58, 62, 64}. Input is read from STDIN and is intentionally limited in length due to the algorithmic complexity of base conversions that are not a power of two. Converted value is written to STDOUT.
* Add simple token info dumping toolTor Brede Vekterli2022-11-011-0/+26
| | | | Dumps key version, ID and HPKE components
* Let token key IDs be UTF-8 byte strings instead of just an integerTor Brede Vekterli2022-11-011-9/+9
| | | | | | | | | | | | | | This makes key IDs vastly more expressive. Max size is 255 bytes, and UTF-8 form is enforced by checking that the byte sequence can be identity-transformed to and from a string with UTF-8 encoding. In addition, we now protect the integrity of the key ID by supplying it as the AAD parameter to the key sealing and opening operations. Reduce v1 token max length of `enc` part to 255, since this is always an X25519 public key, which is never bigger than 32 bytes (but may be _less_ if the random `BigInteger` is small enough, so we still have to encode the length).
* Don't use legacy file existence checking APITor Brede Vekterli2022-11-011-6/+6
|
* Support standard IO streams for several encryption tool commandsTor Brede Vekterli2022-10-311-8/+65
| | | | | | | | | | | | Useful for avoiding the need for intermediate files, such as when piping the output of decryption to a Zstd decompressor. Adds stdio support to: * Encryption input * Decryption input * Decryption output Specified by substituting the file name with a single `-` character.
* Add basic tooling for public key encryption and decryptionTor Brede Vekterli2022-10-271-0/+296
| | | | | | | Adds support for: * X25519 key pair generation * HPKE stream encryption with public key and token generation * HPKE stream decryption with private key
* Simplify and unify the use of Timers.Henning Baldersheim2022-09-142-24/+10
|
* Convert vespaclient-java to junit5Bjørn Christian Seime2022-07-2811-222/+229
|
* Bump full removal of priorities to Vespa 9Tor Brede Vekterli2022-06-082-7/+7
| | | | | Streaming search still uses this to ensure low latencies, and we don't have a replacement for priorities for this use case yet.
* Use DocumentOnly-fieldset by defaultTor Brede Vekterli2022-06-081-2/+2
| | | | Also remove deprecated and unsupported header-only visitor parameter
* use [document] not [all]Arne H Juul2022-06-081-2/+1
|
* Remove top-level <clients> element and LoadType conceptTor Brede Vekterli2022-06-082-25/+1
| | | | | | | Load types have not been properly supported for some time, so remove the remaining API surfaces exposing them. Since load type config was the last remaining use of <clients> in services.xml, remove that one as well.
* Deprecate load types from Java APIsTor Brede Vekterli2022-04-051-2/+1
| | | | | | | | | | | Load types have not been used in practice for years, and supporting them in backend metrics etc. has long since been lacking. Prepare for removing these on Vespa 8. Most callsites are unchanged, aside from presumed safe changes such as constructors used by dependency injection. Have added new overloads without load types where these did not already exist to allow for an orderly transition.
* Deprecate DocumentAPI methods using explicit operation priorityTor Brede Vekterli2022-04-012-3/+6
| | | | | This is functionality that made more sense when we had spinning drives and no async write scheduling in the backend. Going away on Vespa 8.
* add special DocumentOnly fieldset in Java as wellArne H Juul2022-02-151-0/+2
| | | | | | * should have same behavior in Java and C++ * extend unit tests to verify * note various places where we want to change the default on Vespa 8 branch
* GC use of deprecated junit assertThat and unifyHenning Baldersheim2021-12-213-0/+3
|
* Update 2018 copyright notices.gjoranv2021-10-071-1/+1
|
* Update 2017 copyright notices.gjoranv2021-10-0710-10/+10
|
* Use "[Content:cluster=...]" for routes instead of (only-sometimes-)generated ↵Jon Marius Venstad2021-01-052-3/+3
| | | | -direct route
* Revert "Revert "Jonmv/remove storage policy""Jon Marius Venstad2021-01-052-12/+12
| | | | This reverts commit 75b2e4c11ea6463c335f1c77dab3fdb5493e5600.
* Revert "Jonmv/remove storage policy"Jon Marius Venstad2021-01-052-12/+12
|
* Use clustername-direct routes for visitorsJon Marius Venstad2021-01-042-3/+3
|
* Use just content cluster name as routeJon Marius Venstad2020-12-302-3/+3
|
* Replace use of [Storage... with [Content... and avoid overriding config idJon Marius Venstad2020-12-302-12/+12
|
* Use named constants instead of strings sprinkled all over.Henning Baldersheim2020-08-043-11/+21
|
* Remove the unused [header] and [body] fieldsets to simplify backend ↵Henning Baldersheim2020-08-041-1/+1
| | | | optimization during get.