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
11 changes: 10 additions & 1 deletion manifests/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,16 @@ tests/:
TestPathParameter:
'*': missing_feature
test_sql_row.py:
TestSqlRow: missing_feature
TestSqlRow:
'*': v1.46.0
akka-http: missing_feature (endpoint not implemented)
jersey-grizzly2: missing_feature (endpoint not implemented)
play: missing_feature (endpoint not implemented)
ratpack: missing_feature (endpoint not implemented)
resteasy-netty3: missing_feature (endpoint not implemented)
spring-boot-3-native: missing_feature (GraalVM. Tracing support only)
vertx3: missing_feature (endpoint not implemented)
vertx4: missing_feature (endpoint not implemented)
test_uri.py:
TestURI:
'*': v1.23.0
Expand Down
2 changes: 1 addition & 1 deletion tests/appsec/iast/source/test_sql_row.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ class TestSqlRow(BaseSourceTest):

endpoint = "/iast/source/sql/test"
source_type = "sql.row.value"
source_names = ["0.username"]
source_names = ["0.username", "USERNAME"]
requests_kwargs = [{"method": "GET"}]
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.function.Function;
import java.util.function.Predicate;
Expand Down Expand Up @@ -163,6 +164,15 @@ public ResponseEntity<String> kafkaValue() throws Exception {
return kafka("iast-group-value", "key", "hello value!", record -> Paths.get(record.value()).toString());
}

@GetMapping("/sql/test")
public String sourceSql() {
final List<Map<String, Object>> queryResult = (List<Map<String, Object>>) sql.secureSql("shaquille_oatmeal", "123456");
final String username = (String) queryResult.get(0).get("USERNAME");

sql.insecureSql(username);
return "OK";
}

private ResponseEntity<String> kafka(final String group, final String key, final String value, final KafkaRecordHandler op) throws Exception {
final KafkaConnector connector = new KafkaConnector();
final long timeout = TimeUnit.SECONDS.toMillis(10);
Expand Down
Loading