This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified code in flight integration tests (#1136)
- Loading branch information
1 parent
a080e1a
commit f5f6b7e
Showing
11 changed files
with
291 additions
and
447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
<!--- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
|
||
# Apache Arrow Rust Integration Testing | ||
|
||
See [Integration.rst](../../docs/source/format/Integration.rst) for an overview of integration testing. | ||
|
||
This crate contains the following binaries, which are invoked by Archery during integration testing with other Arrow implementations. | ||
|
||
| Binary | Purpose | | ||
|--------|---------| | ||
| arrow-file-to-stream | Converts an Arrow file to an Arrow stream | | ||
| arrow-stream-to-file | Converts an Arrow stream to an Arrow file | | ||
| arrow-json-integration-test | Converts between Arrow and JSON formats | | ||
# Integration tests | ||
|
||
This directory contains integration tests against official Arrow implementations. | ||
|
||
They are run as part of the CI pipeline, called by apache/arrow/dev/crossbow. | ||
|
||
The IPC files tested on the official pipeline are already tested on our own tests. | ||
|
||
## Flight tests | ||
|
||
To run the flight scenarios across this implementation, use | ||
|
||
```bash | ||
SCENARIO="auth:basic_proto" | ||
cargo run --bin flight-test-integration-server -- --port 3333 --scenario $SCENARIO & | ||
# wait for server to be up | ||
|
||
cargo run --bin flight-test-integration-client -- --host localhost --port 3333 --scenario $SCENARIO | ||
``` | ||
|
||
to run an integration test against a file, use | ||
|
||
```bash | ||
FILE="../testing/arrow-testing/data/arrow-ipc-stream/integration/1.0.0-littleendian/generated_dictionary.json.gz" | ||
gzip -dc $FILE > generated.json | ||
|
||
cargo build --bin flight-test-integration-server | ||
cargo run --bin flight-test-integration-server -- --port 3333 & | ||
cargo run --bin flight-test-integration-client -- --host localhost --port 3333 --path generated.json | ||
# kill with `fg` and stop process | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.