2019-01-03 22:18:19 +00:00
|
|
|
// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
const pulumi = require("@pulumi/pulumi");
|
|
|
|
|
2019-01-31 00:22:37 +00:00
|
|
|
const config = new pulumi.Config();
|
2019-01-03 22:18:19 +00:00
|
|
|
const iterations = config.getNumber("count") || 1000;
|
|
|
|
|
|
|
|
// Emit many, many diagnostic events from the engine to stress test the
|
|
|
|
// ability to record those events on the Pulumi Service.
|
|
|
|
console.log("Starting to spam a bunch of diagnostic messages...");
|
|
|
|
for (let i = 0; i < iterations; i++) {
|
|
|
|
console.log(`${i}: The current time is ${new Date()}`);
|
|
|
|
}
|
|
|
|
console.log("done");
|