Caideyipi opened a new pull request, #18395:
URL: https://github.com/apache/iotdb/pull/18395

   ## Description
   
   Add integration-test coverage for the pipe receiver authentication and 
session changes in #17741, #18111, and commit `e32465e2` (#18084).
   
   ### Legacy pipe receiver
   
   - Verify legacy handshake, file transfer, and pipe-data RPCs require login 
and `USE_PIPE`.
   - Verify deletion and TsFile loading use the authenticated user's 
permissions.
   - Verify handshake and TsFile loading do not auto-create databases or schema 
when auto creation is disabled.
   
   ### DataNode and ConfigNode receivers
   
   - Verify V1 handshakes are rejected and V2 handshakes validate credentials.
   - Verify unauthenticated requests are rejected while authenticated client 
sessions remain usable.
   - Verify successful DataNode receiver handshakes establish a session that 
can transfer tablets.
   
   ### Two-stage aggregation
   
   - Verify `count-point-processor` uses the source username and password for 
its internal two-stage aggregate sender.
   - Run the source and result sink in separate 1C1D clusters and assert the 
combined count is transferred successfully.
   
   ### Verification
   
   - `mvn clean package -DskipTests -Drat.skip=true -pl integration-test -am -P 
with-integration-tests`
   - `IoTDBLegacyPipeReceiverAutoCreateIT`
   - All added `IoTDBLegacyPipeReceiverSecurityIT` methods
   - `IoTDBPipeReceiverSessionIT`
   - `IoTDBPipeTwoStageAggregateIT#testCountPointProcessorUsesSourceCredentials`
   - Spotless, Checkstyle, and `git diff --check`
   
   <hr>
   
   This PR has:
   - [x] been self-reviewed.
   - [x] added integration tests.
   - [x] been tested in test IoTDB clusters.
   
   <hr>
   
   ##### Key changed/added classes
   
   - `IoTDBLegacyPipeReceiverSecurityIT`
   - `IoTDBLegacyPipeReceiverAutoCreateIT`
   - `IoTDBPipeReceiverSessionIT`
   - `IoTDBPipeTwoStageAggregateIT`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to