Skip to content
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
1 change: 1 addition & 0 deletions api/src/main/java/io/keploy/service/GrpcService.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ public static void denoise(String id, Service.TestCaseReq testCaseReq) {
testReqBuilder.setAppID(k.getCfg().getApp().getName());
testReqBuilder.setTestCasePath(k.getCfg().getApp().getTestPath());
testReqBuilder.setMockPath(k.getCfg().getApp().getMockPath());
testReqBuilder.setType(HTTP_EXPORT.value);
Service.TestReq bin2 = testReqBuilder.build();

// send de-noise request to server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class Kcontext {

private io.keploy.regression.Mode.ModeType Mode = io.keploy.regression.Mode.ModeType.MODE_RECORD;

private Boolean FileExport;
private Boolean FileExport = false;

private String TestId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ public static Object execute(
.build();

// for mock library
new GrpcService(); // to initialize the grpcClient
if (GrpcService.blockingStub != null && kctx.getFileExport() && !Config.MockId.containsKey(kctx.getTestId())) {
final boolean recorded = MockLib.PutMock(Config.MockPath, httpMock);
String CAPTURE = "\uD83D\uDFE0";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ public static CloseableHttpResponse doProceed(@Origin Method method, @SuperCall


// for mock library
new GrpcService(); // to initialize the grpcClient
if (GrpcService.blockingStub != null && kctx.getFileExport() && !Config.MockId.containsKey(kctx.getTestId())) {
final boolean recorded = MockLib.PutMock(Config.MockPath, httpMock);
String CAPTURE = "\uD83D\uDFE0";
Expand Down
10 changes: 7 additions & 3 deletions models/src/main/java/io/keploy/grpc/proto/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ message TestCaseReq {
string TestCasePath = 7;
string MockPath = 8;
repeated Mock Mocks = 9;
string Type = 10;
GrpcReq GrpcReq = 11;
GrpcResp GrpcResp = 12;
repeated string Remove = 10;
map<string, string> Replace = 11;
string Type = 12;
GrpcReq GrpcReq = 13;
GrpcResp GrpcResp = 14;
}


Expand Down Expand Up @@ -201,6 +203,8 @@ message SqlCol {
message PutMockReq {
Mock Mock = 1;
string Path = 2;
repeated string Remove = 3;
map<string, string> Replace = 4;
}

message PutMockResp {
Expand Down
Loading