-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade ZIO http client to improve performance (#850)
Signed-off-by: David Poltorak <[email protected]> Signed-off-by: Benjamin Voiturier <[email protected]> Co-authored-by: Benjamin Voiturier <[email protected]> Signed-off-by: Shota Jolbordi <[email protected]>
- Loading branch information
1 parent
348045f
commit cc61eb9
Showing
11 changed files
with
115 additions
and
1 deletion.
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
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
52 changes: 52 additions & 0 deletions
52
tests/integration-tests/src/test/kotlin/features/system/SystemSteps.kt
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,52 @@ | ||
package features.system | ||
|
||
import interactions.Get | ||
import io.cucumber.java.en.Then | ||
import io.cucumber.java.en.When | ||
import io.iohk.atala.automation.extensions.get | ||
import io.iohk.atala.automation.serenity.ensure.Ensure | ||
import io.iohk.atala.prism.models.HealthInfo | ||
import net.serenitybdd.rest.SerenityRest | ||
import net.serenitybdd.screenplay.Actor | ||
import org.apache.http.HttpStatus | ||
|
||
class SystemSteps { | ||
@When("{actor} makes a request to the health endpoint") | ||
fun actorRequestsHealthEndpoint(actor: Actor) { | ||
actor.attemptsTo( | ||
Get.resource("/_system/health") | ||
) | ||
actor.attemptsTo( | ||
Ensure.thatTheLastResponse().statusCode().isEqualTo(HttpStatus.SC_OK) | ||
) | ||
} | ||
|
||
@Then("{actor} knows what version of the service is running") | ||
fun actorUnderstandsVersion(actor: Actor) { | ||
val healthResponse = SerenityRest.lastResponse().get<HealthInfo>() | ||
actor.attemptsTo( | ||
Ensure.that(healthResponse.version).isNotBlank() | ||
) | ||
} | ||
|
||
@When("{actor} makes a request to the metrics endpoint") | ||
fun actorRequestsMetricEndpoint(actor: Actor) { | ||
actor.attemptsTo( | ||
Get.resource("/_system/metrics") | ||
) | ||
actor.attemptsTo( | ||
Ensure.thatTheLastResponse().statusCode().isEqualTo(HttpStatus.SC_OK) | ||
) | ||
} | ||
|
||
@Then("{actor} sees that the metrics contain background job stats") | ||
fun actorSeesMetrics(actor: Actor) { | ||
val metricsResponse = SerenityRest.lastResponse() | ||
actor.attemptsTo( | ||
Ensure.that(metricsResponse.body.asString()).contains("present_proof_flow_did_com_exchange_job_ms_gauge"), | ||
Ensure.that(metricsResponse.body.asString()).contains("connection_flow_did_com_exchange_job_ms_gauge"), | ||
Ensure.that(metricsResponse.body.asString()).contains("issuance_flow_did_com_exchange_job_ms_gauge") | ||
) | ||
} | ||
|
||
} |
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