-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update daprd, fix invoke it and improve binding it (#823)
* Use app health check in ITs to minimize flakiness. Signed-off-by: Artur Souza <artursouza.ms@outlook.com> * Fix DaprRun and update Dapr runtime ref. Signed-off-by: Artur Souza <artursouza.ms@outlook.com> * Add retry logic to tracing example's validation Signed-off-by: Artur Souza <artursouza.ms@outlook.com> * Printing validation steps. Signed-off-by: Artur Souza <artursouza.ms@outlook.com> * Change retry logic for tracing it Signed-off-by: Artur Souza <artursouza.ms@outlook.com> * Updare Dapr ref. Signed-off-by: Artur Souza <artursouza.ms@outlook.com> * Revert secret.json Signed-off-by: Artur Souza <artursouza.ms@outlook.com> * Add gRPC HealthCheck. Signed-off-by: Artur Souza <artursouza.ms@outlook.com> * Change expectations for invoke tests. Signed-off-by: Artur Souza <artursouza.ms@outlook.com> * Fix typo causing compilation error. Signed-off-by: Artur Souza <asouza.pro@gmail.com> * Update Dapr ref to latest master. Signed-off-by: Artur Souza <asouza.pro@gmail.com> * Fix binding and method invoke ITs. Signed-off-by: Artur Souza <asouza.pro@gmail.com> * Add wait time to reduce flakiness of ApiIT. Signed-off-by: Artur Souza <asouza.pro@gmail.com> * Re-enable health-check. Signed-off-by: Artur Souza <asouza.pro@gmail.com> * Remove AppHealth as it breaks actor ITs. Signed-off-by: Artur Souza <artur.barbalho@outlook.com> Signed-off-by: Artur Souza <artursouza.ms@outlook.com> Signed-off-by: Artur Souza <asouza.pro@gmail.com> Signed-off-by: Artur Souza <artur.barbalho@outlook.com>
- Loading branch information
1 parent
96259e4
commit b83661d
Showing
19 changed files
with
150 additions
and
86 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
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
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 +1 @@ | ||
{} | ||
{} |
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
35 changes: 35 additions & 0 deletions
35
sdk-tests/src/test/java/io/dapr/grpc/GrpcHealthCheckService.java
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright 2023 The Dapr Authors | ||
* Licensed 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. | ||
*/ | ||
|
||
package io.dapr.grpc; | ||
|
||
import io.dapr.v1.AppCallbackHealthCheckGrpc; | ||
import io.dapr.v1.DaprAppCallbackProtos; | ||
|
||
/** | ||
* Handles apps' health check callback. | ||
*/ | ||
public class GrpcHealthCheckService extends AppCallbackHealthCheckGrpc.AppCallbackHealthCheckImplBase { | ||
|
||
/** | ||
* Handler for health check. | ||
* @param request Empty request. | ||
* @param responseObserver Response for gRPC response. | ||
*/ | ||
public void healthCheck( | ||
com.google.protobuf.Empty request, | ||
io.grpc.stub.StreamObserver<io.dapr.v1.DaprAppCallbackProtos.HealthCheckResponse> responseObserver) { | ||
responseObserver.onNext(DaprAppCallbackProtos.HealthCheckResponse.newBuilder().build()); | ||
responseObserver.onCompleted(); | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.