Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update performance tests to use new data modules #64

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions distribution/scripts/ballerina/bal/h1_transformation.bal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ballerina/data.xmldata;
import ballerina/http;
import ballerina/log;
import ballerina/xmldata;

configurable string epKeyPath = ?;
configurable string epTrustStorePath = ?;
Expand Down Expand Up @@ -35,9 +35,9 @@ service /transform on securedEP {
if xmlPayload is xmldata:Error? {
return getErrorResponse(xmlPayload, http:STATUS_BAD_REQUEST);
}
http:Request clinetreq = new;
clinetreq.setXmlPayload(xmlPayload);
http:Response|http:ClientError response = nettyEP->post("/service/EchoService", clinetreq);
http:Request clientReq = new;
clientReq.setXmlPayload(xmlPayload);
http:Response|http:ClientError response = nettyEP->/'service/EchoService.post(clientReq);
if response is http:ClientError {
return getErrorResponse(response, http:STATUS_INTERNAL_SERVER_ERROR);
}
Expand Down
8 changes: 4 additions & 4 deletions distribution/scripts/ballerina/bal/h1c_transformation.bal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ballerina/data.xmldata;
import ballerina/http;
import ballerina/log;
import ballerina/xmldata;

final http:Client nettyEP = check new ("http://netty:8688");

Expand All @@ -14,9 +14,9 @@ service /transform on new http:Listener(9090) {
if xmlPayload is xmldata:Error? {
return getErrorResponse(xmlPayload, http:STATUS_BAD_REQUEST);
}
http:Request clinetreq = new;
clinetreq.setXmlPayload(xmlPayload);
http:Response|http:ClientError response = nettyEP->post("/service/EchoService", clinetreq);
http:Request clientReq = new;
clientReq.setXmlPayload(xmlPayload);
http:Response|http:ClientError response = nettyEP->/'service/EchoService.post(clientReq);
if response is http:ClientError {
return getErrorResponse(response, http:STATUS_INTERNAL_SERVER_ERROR);
}
Expand Down