Skip to content

Commit c352249

Browse files
edmundmillerclaude
andcommitted
test: require AWS credentials for Athena integration test
Add @requires annotation to skip AWS Athena test when required environment variables are not available, preventing test failures in environments without AWS credentials configured. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent c6b2fec commit c352249

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugins/nf-sqldb/src/test/nextflow/sql/SqlDslTest.groovy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ class SqlDslTest extends Dsl2Spec {
209209
@Requires({System.getenv('NF_SQLDB_TEST_ATHENA_REGION')})
210210
@Requires({System.getenv('NF_SQLDB_ATHENA_TEST_S3_BUCKET')})
211211
@IgnoreIf({ System.getenv('NXF_SMOKE') })
212+
@Requires({
213+
System.getenv('NF_SQLDB_TEST_ATHENA_USERNAME') &&
214+
System.getenv('NF_SQLDB_TEST_ATHENA_PASSWORD') &&
215+
System.getenv('NF_SQLDB_TEST_ATHENA_REGION') &&
216+
System.getenv('NF_SQLDB_ATHENA_TEST_S3_BUCKET')
217+
})
212218
@Timeout(60)
213219
def 'should perform a query for AWS Athena and create a channel'() {
214220
given:

0 commit comments

Comments
 (0)