Skip to content

Commit

Permalink
update license key in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners-nr committed Jan 27, 2025
1 parent f871c98 commit 39b0959
Show file tree
Hide file tree
Showing 70 changed files with 72 additions and 72 deletions.
2 changes: 1 addition & 1 deletion test/benchmark/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports.config = {
/**
* Your New Relic license key.
*/
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
/**
* Level at which to log. 'trace' is most useful to New Relic when diagnosing
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/disabled-log/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports.config = {
/**
* Your New Relic license key.
*/
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
/**
* Level at which to log. 'trace' is most useful to New Relic when diagnosing
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/disabled-with-invalid-config/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports.config = {
/**
* Your New Relic license key.
*/
license_key: 'license key here',
license_key: 'test1234567890',

/**
* `high_security` and `security_policies_token` are mutually exclusive and will throw when configured together.
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/disabled-with-log-queue/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports.config = {
/**
* Your New Relic license key.
*/
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
/**
* Level at which to log. 'trace' is most useful to New Relic when diagnosing
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/enabled-with-log-queue/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports.config = {
/**
* Your New Relic license key.
*/
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
/**
* Level at which to log. 'trace' is most useful to New Relic when diagnosing
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports.config = {
/**
* Your New Relic license key.
*/
license_key: 'license key here',
license_key: 'test1234567890',
utilization: {
detect_aws: false,
detect_pcf: false,
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/unwritable-log/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports.config = {
/**
* Your New Relic license key.
*/
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
/**
* Level at which to log. 'trace' is most useful to New Relic when diagnosing
Expand Down
2 changes: 1 addition & 1 deletion test/integration/agent/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/integration/api/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/integration/api/shutdown.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const nock = require('nock')
const helper = require('../../lib/agent_helper')
const API = require('../../../api')
// This key is hardcoded in the agent helper
const EXPECTED_LICENSE_KEY = 'license key here'
const EXPECTED_LICENSE_KEY = 'test1234567890'
const TEST_DOMAIN = 'test-collector.newrelic.com'
const TEST_COLLECTOR_URL = `https://${TEST_DOMAIN}`

Expand Down
2 changes: 1 addition & 1 deletion test/integration/cat/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/integration/core/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/integration/infinite-tracing-connection.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const cert = fakeCert({ commonName: 'localhost' })
const PROTO_PATH = path.join(__dirname, '../..', '/lib/grpc/endpoints/infinite-tracing/v1.proto')
const TEST_DOMAIN = 'test-collector.newrelic.com'
// This key is hardcoded in the agent helper
const EXPECTED_LICENSE_KEY = 'license key here'
const EXPECTED_LICENSE_KEY = 'test1234567890'
const INITIAL_RUN_ID = 'initial_run_id'
const INITIAL_SESSION_ID = 'initial_session_id'

Expand Down
2 changes: 1 addition & 1 deletion test/integration/instrumentation/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/integration/metric/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/integration/newrelic-harvest-limits.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test('Connect calls re-generate harvest limits from original config values', (t,
nockRequest('connect').reply(200, { return_value: { agent_run_id: RUN_ID, ...serverHarvest } })
nockRequest('agent_settings', RUN_ID).reply(200, { return_value: [] })
const agent = helper.loadMockedAgent({
license_key: 'license key here',
license_key: 'test1234567890',
host: TEST_DOMAIN,
application_logging: {
enabled: true
Expand Down
2 changes: 1 addition & 1 deletion test/integration/newrelic-response-handling.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test('New Relic response code handling', async (t) => {
const connecting = false
const started = false
const agent = helper.loadMockedAgent({
license_key: 'license key here',
license_key: 'test1234567890',
apdex_t: Number.MIN_VALUE, // force transaction traces
host: TEST_DOMAIN,
plugins: {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/security-policies-cross-agent.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const TEST_DOMAIN = 'test-collector.newrelic.com'
const RUN_ID = 'runId'

const DEFAULT_CONFIG = {
license_key: 'license key here',
license_key: 'test1234567890',
host: TEST_DOMAIN,
security_policies_token: 'AAAA-TEST-TOKE-NNN',
plugins: {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/transaction/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/integration/uninstrumented/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/integration/utilization/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/lib/agent_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ helper.generateCollectorPath = function generateCollectorPath(method, runID, pro
let fragment =
'/agent_listener/invoke_raw_method?' +
`marshal_format=json&protocol_version=${protocolVersion}&` +
`license_key=license%20key%20here&method=${method}`
`license_key=test1234567890&method=${method}`

if (runID) {
fragment += '&run_id=' + runID
Expand Down
2 changes: 1 addition & 1 deletion test/smoke/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/unit/collector/api-connect.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const RUN_ID = 1337
const baseAgentConfig = {
app_name: ['TEST'],
ssl: true,
license_key: 'license key here',
license_key: 'test1234567890',
utilization: {
detect_aws: false,
detect_pcf: false,
Expand Down
2 changes: 1 addition & 1 deletion test/unit/collector/api-login.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const SECURITY_POLICIES_TOKEN = 'TEST-TEST-TEST-TEST'
const baseAgentConfig = {
app_name: ['TEST'],
ssl: true,
license_key: 'license key here',
license_key: 'test1234567890',
utilization: {
detect_aws: false,
detect_pcf: false,
Expand Down
2 changes: 1 addition & 1 deletion test/unit/collector/api-run-lifecycle.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const RUN_ID = 1337
const baseAgentConfig = {
app_name: ['TEST'],
ssl: true,
license_key: 'license key here',
license_key: 'test1234567890',
utilization: {
detect_aws: false,
detect_pcf: false,
Expand Down
4 changes: 2 additions & 2 deletions test/unit/collector/remote-method.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ test('when posting to collector', async (t) => {
ctx.nr.config = new Config({
ssl: true,
run_id: RUN_ID,
license_key: 'license key here'
license_key: 'test1234567890'
})
ctx.nr.endpoint = { host: collector.host, port: collector.port }

Expand Down Expand Up @@ -602,7 +602,7 @@ test('record data usage supportability metrics', async (t) => {
ctx.nr.collector = collector
await collector.listen()

ctx.nr.config = new Config({ license_key: 'license key here' })
ctx.nr.config = new Config({ license_key: 'test1234567890' })
ctx.nr.endpoint = { host: collector.host, port: collector.port }

ctx.nr.agent = helper.instrumentMockedAgent(collector.agentConfig)
Expand Down
4 changes: 2 additions & 2 deletions test/unit/collector/serverless.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test('ServerlessCollector API', async (t) => {
const baseAgentConfig = {
serverless_mode: { enabled: true },
app_name: ['TEST'],
license_key: 'license key here'
license_key: 'test1234567890'
}
const config = Object.assign({}, baseAgentConfig, collector.agentConfig, {
config: { run_id: RUN_ID }
Expand Down Expand Up @@ -220,7 +220,7 @@ test('ServerlessCollector with output to custom pipe', async (t) => {
const baseAgentConfig = {
serverless_mode: { enabled: true },
app_name: ['TEST'],
license_key: 'license key here',
license_key: 'test1234567890',
NEWRELIC_PIPE_PATH: ctx.nr.destPath
}
const config = Object.assign({}, baseAgentConfig, collector.agentConfig, {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/instrumentation/koa/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/unit/instrumentation/superagent/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/unit/rum.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test('the RUM API', async function (t) {
t.beforeEach(function (ctx) {
ctx.nr = {}
const agent = helper.loadMockedAgent({
license_key: 'license key here',
license_key: 'test1234567890',
browser_monitoring: {
attributes: {
enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion test/versioned/amqplib-esm/newrelic.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/versioned/amqplib/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/versioned/aws-sdk-v2/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/versioned/aws-sdk-v3/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/versioned/bluebird/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/versioned/bunyan/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['New Relic for Node.js tests'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/versioned/cassandra-driver/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
enabled: false,
Expand Down
2 changes: 1 addition & 1 deletion test/versioned/cls/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/versioned/connect/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace',
filepath: '../../../newrelic_agent.log'
Expand Down
2 changes: 1 addition & 1 deletion test/versioned/disabled-instrumentation/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['My Application'],
license_key: 'license key here',
license_key: 'test1234567890',
logging: {
level: 'trace'
},
Expand Down
2 changes: 1 addition & 1 deletion test/versioned/elastic/newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

exports.config = {
app_name: ['elasticsearch test'],
license_key: 'license key here',
license_key: 'test1234567890',
utilization: {
detect_aws: false,
detect_pcf: false,
Expand Down
Loading

0 comments on commit 39b0959

Please sign in to comment.