Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added test files to 'azure-arm-rest' #264

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare function ApplicationInsightsTests(): void;
export declare function ApplicationInsightsWebTestsTests(): void;
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import * as ttm from 'azure-pipelines-task-lib/mock-test';
import tl = require('azure-pipelines-task-lib');
import * as path from 'path';

export function ApplicationInsightsTests() {
export function ApplicationInsightsWebTestsTests() {
it('azure-arm-appinsights-webtests ApplicationInsightsWebTests', (done: Mocha.Done) => {
let tp = path.join(__dirname, 'azure-arm-appinsights-webtests-tests.js');
let tr : ttm.MockTestRunner = new ttm.MockTestRunner(tp);
let passed: boolean = true;
try {
tr.run();
assert(tr.succeeded, "azure-arm-appinsights-tests should have passed but failed.");
assert(tr.succeeded, "azure-arm-appinsights-webtests should have passed but failed.");
console.log("\tvalidating list");
list(tr);
console.log("\tvalidating create");
Expand Down
13 changes: 13 additions & 0 deletions common-npm-packages/azure-arm-rest/Tests/L0.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { KuduServiceTests } from "./L0-azure-arm-app-service-kudu-tests";
import { AzureAppServiceMockTests } from "./L0-azure-arm-app-service";
import { ApplicationInsightsTests } from "./L0-azure-arm-appinsights-tests";
import { ApplicationInsightsWebTestsTests } from "./L0-azure-arm-appinsights-webtests-tests";
import { ResourcesTests } from "./L0-azure-arm-resource-tests";

describe("azure-arm-rest suite", async function() {
describe("kuduService", KuduServiceTests);
describe("azureAppService", AzureAppServiceMockTests);
describe("applicationInsihts", ApplicationInsightsTests);
describe("applicationInsightsWebTests", ApplicationInsightsWebTestsTests);
describe("resources", ResourcesTests);
});
Loading