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

Recent hotfixes #1021

Merged
merged 23 commits into from
Apr 17, 2024
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e67278e
basic implementation of using dependency graph in testing
avneesh-akto Mar 7, 2024
35ff291
removed duplicate files and added API to TestEditorEnums.java
avneesh-akto Mar 11, 2024
21af369
added workflow_filter in testing
avneesh-akto Mar 15, 2024
76c96c2
fixed merge conflicts
avneesh-akto Apr 8, 2024
5e03999
allow get_assets call in templates
avneesh-akto Apr 13, 2024
19e33ab
Merge pull request #1008 from akto-api-security/develop
avneesh-akto Apr 15, 2024
f850f7f
fixed merge conflicts
avneesh-akto Apr 16, 2024
68e9ceb
remove mac-os
ankush-jain-akto Apr 16, 2024
674d2cd
code cleanup
avneesh-akto Apr 16, 2024
a3f89c6
remove bolt
ankush-jain-akto Apr 16, 2024
0869488
support variables in override url input
ayushaga14 Apr 16, 2024
dd1d118
allow variable string in run test input
ayushaga14 Apr 16, 2024
866081b
rever har action changes and null checks for memory.java
avneesh-akto Apr 16, 2024
d0d6f48
Update Constants.java
aktoboy Apr 16, 2024
c62e46b
fixed unit test
avneesh-akto Apr 16, 2024
6b76963
added graceful error handling to workflow tests
avneesh-akto Apr 16, 2024
6c9af33
Merge pull request #1014 from akto-api-security/feature/dp_in_testing
avneesh-akto Apr 16, 2024
a2895d3
add logs
ayushaga14 Apr 17, 2024
1c9294d
Merge pull request #1016 from akto-api-security/feature_var_substitui…
ayushaga14 Apr 17, 2024
d31fe8f
Merge pull request #1019 from akto-api-security/aktoboy-patch-1
aktoboy Apr 17, 2024
1f30fb4
Added changes for test results telemetry
aktoboy Apr 17, 2024
b6365d5
Fixed mongo connection string
aktoboy Apr 17, 2024
5e2e684
Merge pull request #1022 from akto-api-security/feature/ingest-test-r…
aktoboy Apr 17, 2024
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
Prev Previous commit
Next Next commit
add logs
ayushaga14 committed Apr 17, 2024
commit a2895d387612928234718dadc3f615d1d34dd4d4
Original file line number Diff line number Diff line change
@@ -200,6 +200,7 @@ public YamlTestResult execute(ExecutorNode node, RawApi rawApi, Map<String, Obje
public void overrideTestUrl(RawApi rawApi, TestingRunConfig testingRunConfig) {
try {
String url = "";
loggerMaker.infoAndAddToDb("override url received - " + testingRunConfig.getOverriddenTestAppUrl(), LogDb.TESTING);
List<String> originalHostHeaders = rawApi.getRequest().getHeaders().getOrDefault(_HOST, new ArrayList<>());
if (!originalHostHeaders.isEmpty() && testingRunConfig != null
&& !StringUtils.isEmpty(testingRunConfig.getOverriddenTestAppUrl())) {
3 changes: 3 additions & 0 deletions libs/utils/src/main/java/com/akto/testing/ApiExecutor.java
Original file line number Diff line number Diff line change
@@ -151,6 +151,7 @@ public static String replacePathFromConfig(String url, TestingRunConfig testingR
typedUrl = new URI(url);

} catch (URISyntaxException e) {
loggerMaker.errorAndAddToDb(e, "error converting req url to uri " + url, LogDb.TESTING);
throw new RuntimeException(e);
}

@@ -161,6 +162,7 @@ public static String replacePathFromConfig(String url, TestingRunConfig testingR
newUri = new URI(newUrl);

} catch (URISyntaxException e) {
loggerMaker.errorAndAddToDb(e, "error converting override url to uri " + url, LogDb.TESTING);
throw new RuntimeException(e);
}

@@ -181,6 +183,7 @@ public static String replacePathFromConfig(String url, TestingRunConfig testingR

url = new URI(newScheme, null, newHost, newPort, newPath, typedUrl.getQuery(), typedUrl.getFragment()).toString();
} catch (URISyntaxException e) {
loggerMaker.errorAndAddToDb(e, "error building new url using override url", LogDb.TESTING);
throw new RuntimeException(e);
}
}