| name | test-connectors |
| description | Run Java/Maven tests for the GrokConnect connectors project |
| when-to-use | When user asks to test connectors, run connector tests, or verify GrokConnect |
| context | fork |
| effort | medium |
| argument-hint | [all|<ClassName>|<ClassName>#<method>] |
Test Connectors (GrokConnect)
Run Java/Maven tests for the GrokConnect connectors project.
Usage
/test-connectors [target]
Where target is one of:
all - Run all tests (default)
<ClassName> - Run a specific test class (e.g., PostgresDataProviderTest, SerializationTest)
<ClassName>#<method> - Run a specific test method
Prerequisites
- JDK 8 - Required by the project
- Maven 3+ - Build tool
- Docker - Required for TestContainers-based integration tests (most provider tests)
Instructions
When this skill is invoked, help the user run the appropriate tests for the connectors project.
Project Location
connectors/
Run All Tests
cd connectors && mvn test
Run a Specific Test Class
cd connectors && mvn -Dtest=PostgresDataProviderTest test
Run a Specific Test Method
cd connectors && mvn -Dtest=PostgresDataProviderTest#testMethodName test
Build Without Tests (for quick compilation check)
cd connectors && mvn -Dmaven.test.skip=true package
Run Only Serialization Tests (no Docker needed)
cd connectors && mvn -pl serialization test
Run Only grok_connect Module Tests
cd connectors && mvn -pl grok_connect test
Available Test Classes
Provider Tests (require Docker for TestContainers)
Located in grok_connect/src/test/java/grok_connect/providers/:
| Test Class | Database |
|---|
PostgresDataProviderTest | PostgreSQL |
MySqlDataProviderTest | MySQL |
MariaDbDataProviderTest | MariaDB |
MsSqlDataProviderTest | MS SQL Server |
OracleDataProviderTest | Oracle |
ClickHouseDataProviderTest | ClickHouse |
MongoDbDataProviderTest | MongoDB |
Neo4jDataProviderTest | Neo4j |
CassandraDataProviderTest | Cassandra |
Db2DataProviderTest | DB2 |
VirtuosoDataProviderTest | Virtuoso |
VerticaDataProviderTest | Vertica |
Hive2DataProviderTest | Hive2 |
ImpalaDataProviderTest | Impala |
SnowflakeDataProviderTest | Snowflake |
RedshiftDataProviderTest | Redshift |
AthenaDataProviderTest | Athena |
TeradataDataProviderTest | Teradata |
PIDataProviderTest | PI Data |
Unit Tests (no Docker needed)
| Test Class | Location |
|---|
JdbcDataProviderTest | grok_connect/src/test/.../providers/ |
ComplexTypeConverterManagerTest | grok_connect/src/test/.../managers/complex_column/ |
TableQueryTest | grok_connect/src/test/.../table_query/ |
MsSqlTableQueryTest | grok_connect/src/test/.../table_query/ |
PostgresTableQueryTest | grok_connect/src/test/.../table_query/ |
SqlAnnotatorTest | grok_connect/src/test/.../utils/ |
SerializationTest | serialization/src/test/.../serialization/ |
Behavior
- Ask the user which tests to run if not specified
- Check if Docker is running when integration tests are requested
- Run the appropriate Maven test commands from
connectors/
- Report test results and any failures