@azure/arm-confidentialledger 1.3.0-alpha.20230425.2 → 1.3.0-alpha.20230504.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-esm/test/confidentialledger_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/confidentialledger_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/confidentialledger_operations_test.spec.js +76 -0
- package/dist-esm/test/confidentialledger_operations_test.spec.js.map +1 -0
- package/package.json +1 -1
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"confidentialledger_operations_test.spec.d.ts","sourceRoot":"","sources":["../../test/confidentialledger_operations_test.spec.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
9
|
+
import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
|
10
|
+
import { createTestCredential } from "@azure-tools/test-credential";
|
11
|
+
import { ConfidentialLedgerClient } from "../src/confidentialLedgerClient";
|
12
|
+
const replaceableVariables = {
|
13
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
14
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
15
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
16
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
17
|
+
};
|
18
|
+
const recorderOptions = {
|
19
|
+
envSetupForPlayback: replaceableVariables
|
20
|
+
};
|
21
|
+
export const testPollingOptions = {
|
22
|
+
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
23
|
+
};
|
24
|
+
describe("ConfidentialLedger test", () => {
|
25
|
+
let recorder;
|
26
|
+
let subscriptionId;
|
27
|
+
let client;
|
28
|
+
let location;
|
29
|
+
let resourceGroup;
|
30
|
+
let resourcename;
|
31
|
+
beforeEach(function () {
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
33
|
+
recorder = new Recorder(this.currentTest);
|
34
|
+
yield recorder.start(recorderOptions);
|
35
|
+
subscriptionId = env.SUBSCRIPTION_ID || '';
|
36
|
+
// This is an example of how the environment variables are used
|
37
|
+
const credential = createTestCredential();
|
38
|
+
client = new ConfidentialLedgerClient(credential, subscriptionId, recorder.configureClientOptions({}));
|
39
|
+
location = "eastus";
|
40
|
+
resourceGroup = "myjstest";
|
41
|
+
resourcename = "resourcetest";
|
42
|
+
});
|
43
|
+
});
|
44
|
+
afterEach(function () {
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
46
|
+
yield recorder.stop();
|
47
|
+
});
|
48
|
+
});
|
49
|
+
it("operation list test", function () {
|
50
|
+
var _a, e_1, _b, _c;
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
52
|
+
const resArray = new Array();
|
53
|
+
try {
|
54
|
+
for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
55
|
+
_c = _f.value;
|
56
|
+
_d = false;
|
57
|
+
try {
|
58
|
+
let item = _c;
|
59
|
+
resArray.push(item);
|
60
|
+
}
|
61
|
+
finally {
|
62
|
+
_d = true;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
67
|
+
finally {
|
68
|
+
try {
|
69
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
70
|
+
}
|
71
|
+
finally { if (e_1) throw e_1.error; }
|
72
|
+
}
|
73
|
+
});
|
74
|
+
});
|
75
|
+
});
|
76
|
+
//# sourceMappingURL=confidentialledger_operations_test.spec.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"confidentialledger_operations_test.spec.js","sourceRoot":"","sources":["../../test/confidentialledger_operations_test.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACvC,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAAgC,CAAC;IACrC,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAC1B,IAAI,YAAoB,CAAC;IAEzB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YACtC,cAAc,GAAG,GAAG,CAAC,eAAe,IAAI,EAAE,CAAC;YAC3C,+DAA+D;YAC/D,MAAM,UAAU,GAAG,oBAAoB,EAAE,CAAC;YAC1C,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,EAAE,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC,CAAC;YACvG,QAAQ,GAAG,QAAQ,CAAC;YACpB,aAAa,GAAG,UAAU,CAAC;YAC3B,YAAY,GAAG,cAAc,CAAC;QAEhC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,qBAAqB,EAAE;;;YACxB,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;gBAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;oBAAxB,cAAwB;oBAAxB,WAAwB;;wBAApC,IAAI,IAAI,KAAA,CAAA;wBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;iBACrB;;;;;;;;;;KAEF,CAAC,CAAC;AAEL,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
*
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
-
*/
|
8
|
-
import { __awaiter } from "tslib";
|
9
|
-
import { Recorder } from "@azure-tools/test-recorder";
|
10
|
-
const replaceableVariables = {
|
11
|
-
AZURE_CLIENT_ID: "azure_client_id",
|
12
|
-
AZURE_CLIENT_SECRET: "azure_client_secret",
|
13
|
-
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
14
|
-
SUBSCRIPTION_ID: "azure_subscription_id"
|
15
|
-
};
|
16
|
-
const recorderOptions = {
|
17
|
-
envSetupForPlayback: replaceableVariables
|
18
|
-
};
|
19
|
-
describe("My test", () => {
|
20
|
-
let recorder;
|
21
|
-
beforeEach(function () {
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
23
|
-
recorder = new Recorder(this.currentTest);
|
24
|
-
yield recorder.start(recorderOptions);
|
25
|
-
});
|
26
|
-
});
|
27
|
-
afterEach(function () {
|
28
|
-
return __awaiter(this, void 0, void 0, function* () {
|
29
|
-
yield recorder.stop();
|
30
|
-
});
|
31
|
-
});
|
32
|
-
it("sample test", function () {
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
34
|
-
console.log("Hi, I'm a test!");
|
35
|
-
});
|
36
|
-
});
|
37
|
-
});
|
38
|
-
//# sourceMappingURL=sampleTest.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|