| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
gRPC client interceptor integration for Allure Java.
Use this module when your tests call gRPC services and you want method calls, metadata, messages, timing, and statuses to appear in Allure Report.
Gradle:
dependencies {
testImplementation(platform("io.qameta.allure:allure-bom:<allure-version>"))
testImplementation("io.qameta.allure:allure-grpc")
}Maven, with allure-bom imported in dependency management:
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-grpc</artifactId>
<scope>test</scope>
</dependency>Attach io.qameta.allure.grpc.AllureGrpc to a gRPC channel or stub as a client interceptor.
ManagedChannel channel = ManagedChannelBuilder.forAddress("localhost", 8080)
.intercept(new AllureGrpc())
.usePlaintext()
.build();Request and response metadata are captured by default. Cookie metadata is represented as structured HTTP exchange cookies, so header and cookie redaction can be configured through the HTTP exchange capture policy.
Use the builder to add application-specific header and cookie redaction:
ClientInterceptor allure = AllureGrpc.builder()
.redactHeader("x-api-key")
.redactCookie("session")
.build();Metadata capture can be disabled independently for either direction:
ClientInterceptor allure = AllureGrpc.builder()
.captureRequestMetadata(false)
.captureResponseMetadata(false)
.build();For other HTTP exchange capture options, configure the underlying exchange builder:
ClientInterceptor allure = AllureGrpc.builder()
.configureExchange(exchange -> exchange.setMaxBodySize(256_000))
.build();| Back | FazBrowse Home | New Git URL |