Skip to content

Commit

Permalink
exclude running test on GH windows runners
Browse files Browse the repository at this point in the history
those tests are the ones defined in the list of modules in .github/workflows/tav.yml
  • Loading branch information
v1v committed Mar 30, 2023
1 parent 0dfefed commit 1b54c5f
Show file tree
Hide file tree
Showing 49 changed files with 246 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

process.env.ELASTIC_APM_TEST_ESCLIENT_PACKAGE_NAME = '@elastic/elasticsearch-canary'
require('./elasticsearch.test.js')
5 changes: 5 additions & 0 deletions test/instrumentation/modules/@elastic/elasticsearch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

process.env.ELASTIC_APM_TEST = true
const agent = require('../../../..').start({
serviceName: 'test-elasticsearch',
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/apollo-server-express.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

var agent = require('../../..').start({
serviceName: 'test',
secretToken: 'test',
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/aws-sdk/aws4-retries.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

// Test the fix for bug #2134, that AWS4 signature auth with the aws-sdk
// and *retries* works as expected.

Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/aws-sdk/dynamodb.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

const agent = require('../../../..').start({
serviceName: 'test-dynamodb',
captureExceptions: false,
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/aws-sdk/s3.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

// Test S3 instrumentation of the 'aws-sdk' module.
//
// Note that this uses localstack for testing, which mimicks the S3 API but
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/aws-sdk/sns.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

const agent = require('../../../..').start({
serviceName: 'test',
secretToken: 'test',
Expand Down
6 changes: 6 additions & 0 deletions test/instrumentation/modules/aws-sdk/sqs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
*/

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

const agent = require('../../../..').start({
serviceName: 'test',
secretToken: 'test',
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/bluebird/bluebird.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

// The unhandledRejection will be fired by our bluebird tests, which is to be
// expected.
require('../../../_promise_rejection').remove()
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/bluebird/cancel.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

var agent = require('../../../..').start({
serviceName: 'test',
secretToken: 'test',
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/cassandra-driver/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

const agent = require('../../../..').start({
serviceName: 'test',
secretToken: 'test',
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/elasticsearch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

process.env.ELASTIC_APM_TEST = true
var host = (process.env.ES_HOST || 'localhost') + ':9200'

Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/express-graphql.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

var agent = require('../../..').start({
serviceName: 'test',
secretToken: 'test',
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/express-queue.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

var agent = require('../../..').start({
serviceName: 'test',
secretToken: 'test',
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/express/basic.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

var agent = require('../../../..').start({
serviceName: 'test',
secretToken: 'test',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

const agent = require('../../../..').start({
captureExceptions: false,
metricsInterval: 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

const agent = require('../../../..').start({
captureExceptions: true,
metricsInterval: 0,
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/express/set-framework.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

const agent = require('../../../..').start({
captureExceptions: true,
metricsInterval: 0,
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/fastify/async-await.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

require('../../../..').start({
captureExceptions: false,
metricsInterval: 0,
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/fastify/fastify.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

const agent = require('../../../..').start({
captureExceptions: false,
metricsInterval: 0,
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/fastify/set-framework.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

const agent = require('../../../..').start({
captureExceptions: true,
metricsInterval: 0,
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/finalhandler.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

var agent = require('../../..').start({
serviceName: 'test',
secretToken: 'test',
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/generic-pool.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

var agent = require('../../..').start({
serviceName: 'test',
secretToken: 'test',
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/graphql.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

var agent = require('../../..').start({
serviceName: 'test',
secretToken: 'test',
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/handlebars.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

process.env.ELASTIC_APM_TEST = true

var agent = require('../../..').start({
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/ioredis.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

var agent = require('../../..').start({
serviceName: 'test-ioredis',
captureExceptions: false,
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/koa-router/new-name.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

require('./shared')('@koa/router')
5 changes: 5 additions & 0 deletions test/instrumentation/modules/koa-router/old-name.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

require('./shared')('koa-router')
5 changes: 5 additions & 0 deletions test/instrumentation/modules/mimic-response.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

var agent = require('../../..').start({
serviceName: 'test',
captureExceptions: false,
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/mongodb-core.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

var agent = require('../../..').start({
serviceName: 'test-mongodb-core',
captureExceptions: false,
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/mongodb.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

const agent = require('../../..').start({
serviceName: 'test-mongodb',
captureExceptions: false,
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/mysql/mysql.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

var agent = require('../../../..').start({
serviceName: 'test',
secretToken: 'test',
Expand Down
5 changes: 5 additions & 0 deletions test/instrumentation/modules/mysql/pool-release-1.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

'use strict'

if (process.env.GITHUB_ACTIONS === 'true' && process.platform === 'win32') {
console.log('# SKIP: GH Actions do not support docker services on Windows')
process.exit(0)
}

var agent = require('../../../..').start({
serviceName: 'test',
secretToken: 'test',
Expand Down
Loading

0 comments on commit 1b54c5f

Please sign in to comment.