@datadog/datadog-ci 2.4.1 → 2.5.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/commands/dsyms/upload.js +2 -1
- package/dist/commands/dsyms/upload.js.map +1 -1
- package/dist/commands/flutter-symbols/helpers.js +1 -1
- package/dist/commands/flutter-symbols/helpers.js.map +1 -1
- package/dist/commands/flutter-symbols/upload.js +1 -1
- package/dist/commands/flutter-symbols/upload.js.map +1 -1
- package/dist/commands/lambda/instrument.js +1 -1
- package/dist/commands/lambda/instrument.js.map +1 -1
- package/dist/commands/lambda/uninstrument.js +1 -1
- package/dist/commands/lambda/uninstrument.js.map +1 -1
- package/dist/commands/react-native/upload.js +2 -2
- package/dist/commands/react-native/upload.js.map +1 -1
- package/dist/commands/react-native/xcode.js +5 -0
- package/dist/commands/react-native/xcode.js.map +1 -1
- package/dist/commands/synthetics/api.d.ts +2 -1
- package/dist/commands/synthetics/api.js +7 -0
- package/dist/commands/synthetics/api.js.map +1 -1
- package/dist/commands/synthetics/command.js +11 -2
- package/dist/commands/synthetics/command.js.map +1 -1
- package/dist/commands/synthetics/interfaces.d.ts +4 -1
- package/dist/commands/synthetics/reporters/default.d.ts +3 -2
- package/dist/commands/synthetics/reporters/default.js +19 -5
- package/dist/commands/synthetics/reporters/default.js.map +1 -1
- package/dist/commands/synthetics/reporters/junit.d.ts +2 -2
- package/dist/commands/synthetics/reporters/junit.js +1 -1
- package/dist/commands/synthetics/reporters/junit.js.map +1 -1
- package/dist/commands/synthetics/run-test.js +9 -1
- package/dist/commands/synthetics/run-test.js.map +1 -1
- package/dist/commands/synthetics/utils.d.ts +4 -2
- package/dist/commands/synthetics/utils.js +14 -5
- package/dist/commands/synthetics/utils.js.map +1 -1
- package/dist/helpers/utils.d.ts +2 -2
- package/dist/helpers/utils.js +9 -5
- package/dist/helpers/utils.js.map +1 -1
- package/package.json +4 -4
- package/dist/commands/dsyms/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/dsyms/__tests__/upload.test.js +0 -297
- package/dist/commands/dsyms/__tests__/upload.test.js.map +0 -1
- package/dist/commands/dsyms/__tests__/utils.test.d.ts +0 -1
- package/dist/commands/dsyms/__tests__/utils.test.js +0 -99
- package/dist/commands/dsyms/__tests__/utils.test.js.map +0 -1
- package/dist/commands/flutter-symbols/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/flutter-symbols/__tests__/upload.test.js +0 -538
- package/dist/commands/flutter-symbols/__tests__/upload.test.js.map +0 -1
- package/dist/commands/git-metadata/__tests__/git.test.d.ts +0 -1
- package/dist/commands/git-metadata/__tests__/git.test.js +0 -148
- package/dist/commands/git-metadata/__tests__/git.test.js.map +0 -1
- package/dist/commands/git-metadata/__tests__/library.test.d.ts +0 -1
- package/dist/commands/git-metadata/__tests__/library.test.js +0 -103
- package/dist/commands/git-metadata/__tests__/library.test.js.map +0 -1
- package/dist/commands/git-metadata/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/git-metadata/__tests__/upload.test.js +0 -60
- package/dist/commands/git-metadata/__tests__/upload.test.js.map +0 -1
- package/dist/commands/junit/__tests__/api.test.d.ts +0 -1
- package/dist/commands/junit/__tests__/api.test.js +0 -9
- package/dist/commands/junit/__tests__/api.test.js.map +0 -1
- package/dist/commands/junit/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/junit/__tests__/upload.test.js +0 -283
- package/dist/commands/junit/__tests__/upload.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/fixtures.d.ts +0 -49
- package/dist/commands/lambda/__tests__/fixtures.js +0 -88
- package/dist/commands/lambda/__tests__/fixtures.js.map +0 -1
- package/dist/commands/lambda/__tests__/functions/commons.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/functions/commons.test.js +0 -716
- package/dist/commands/lambda/__tests__/functions/commons.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/functions/instrument.part1.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/functions/instrument.part1.test.js +0 -350
- package/dist/commands/lambda/__tests__/functions/instrument.part1.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/functions/instrument.part2.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/functions/instrument.part2.test.js +0 -583
- package/dist/commands/lambda/__tests__/functions/instrument.part2.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/functions/uninstrument.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/functions/uninstrument.test.js +0 -477
- package/dist/commands/lambda/__tests__/functions/uninstrument.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/functions/versionChecker.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/functions/versionChecker.test.js +0 -33
- package/dist/commands/lambda/__tests__/functions/versionChecker.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/instrument.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/instrument.test.js +0 -1478
- package/dist/commands/lambda/__tests__/instrument.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/loggroup.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/loggroup.test.js +0 -332
- package/dist/commands/lambda/__tests__/loggroup.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/prompt.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/prompt.test.js +0 -235
- package/dist/commands/lambda/__tests__/prompt.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/tags.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/tags.test.js +0 -253
- package/dist/commands/lambda/__tests__/tags.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/uninstrument.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/uninstrument.test.js +0 -679
- package/dist/commands/lambda/__tests__/uninstrument.test.js.map +0 -1
- package/dist/commands/metric/__tests__/metric.test.d.ts +0 -1
- package/dist/commands/metric/__tests__/metric.test.js +0 -97
- package/dist/commands/metric/__tests__/metric.test.js.map +0 -1
- package/dist/commands/react-native/__tests__/codepush.test.d.ts +0 -1
- package/dist/commands/react-native/__tests__/codepush.test.js +0 -153
- package/dist/commands/react-native/__tests__/codepush.test.js.map +0 -1
- package/dist/commands/react-native/__tests__/interfaces.test.d.ts +0 -1
- package/dist/commands/react-native/__tests__/interfaces.test.js +0 -52
- package/dist/commands/react-native/__tests__/interfaces.test.js.map +0 -1
- package/dist/commands/react-native/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/react-native/__tests__/upload.test.js +0 -176
- package/dist/commands/react-native/__tests__/upload.test.js.map +0 -1
- package/dist/commands/react-native/__tests__/xcode.test.d.ts +0 -1
- package/dist/commands/react-native/__tests__/xcode.test.js +0 -417
- package/dist/commands/react-native/__tests__/xcode.test.js.map +0 -1
- package/dist/commands/sourcemaps/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/sourcemaps/__tests__/upload.test.js +0 -270
- package/dist/commands/sourcemaps/__tests__/upload.test.js.map +0 -1
- package/dist/commands/sourcemaps/__tests__/utils.test.d.ts +0 -1
- package/dist/commands/sourcemaps/__tests__/utils.test.js +0 -31
- package/dist/commands/sourcemaps/__tests__/utils.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/api.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/api.test.js +0 -273
- package/dist/commands/synthetics/__tests__/api.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/cli.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/cli.test.js +0 -391
- package/dist/commands/synthetics/__tests__/cli.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/fixtures.d.ts +0 -119
- package/dist/commands/synthetics/__tests__/fixtures.js +0 -386
- package/dist/commands/synthetics/__tests__/fixtures.js.map +0 -1
- package/dist/commands/synthetics/__tests__/mobile.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/mobile.test.js +0 -228
- package/dist/commands/synthetics/__tests__/mobile.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/reporters/default.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/reporters/default.test.js +0 -202
- package/dist/commands/synthetics/__tests__/reporters/default.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/reporters/junit.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/reporters/junit.test.js +0 -339
- package/dist/commands/synthetics/__tests__/reporters/junit.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/run-test.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/run-test.test.js +0 -419
- package/dist/commands/synthetics/__tests__/run-test.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/tunnel/crypto.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/tunnel/crypto.test.js +0 -21
- package/dist/commands/synthetics/__tests__/tunnel/crypto.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/tunnel/tunnel.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/tunnel/tunnel.test.js +0 -80
- package/dist/commands/synthetics/__tests__/tunnel/tunnel.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/tunnel/websocket.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/tunnel/websocket.test.js +0 -111
- package/dist/commands/synthetics/__tests__/tunnel/websocket.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/utils.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/utils.test.js +0 -933
- package/dist/commands/synthetics/__tests__/utils.test.js.map +0 -1
- package/dist/commands/tag/__tests__/tag.test.d.ts +0 -1
- package/dist/commands/tag/__tests__/tag.test.js +0 -77
- package/dist/commands/tag/__tests__/tag.test.js.map +0 -1
- package/dist/commands/trace/__tests__/trace.test.d.ts +0 -1
- package/dist/commands/trace/__tests__/trace.test.js +0 -64
- package/dist/commands/trace/__tests__/trace.test.js.map +0 -1
- package/dist/helpers/__tests__/ci.test.d.ts +0 -1
- package/dist/helpers/__tests__/ci.test.js +0 -197
- package/dist/helpers/__tests__/ci.test.js.map +0 -1
- package/dist/helpers/__tests__/plist.test.d.ts +0 -1
- package/dist/helpers/__tests__/plist.test.js +0 -31
- package/dist/helpers/__tests__/plist.test.js.map +0 -1
- package/dist/helpers/__tests__/retry.test.d.ts +0 -1
- package/dist/helpers/__tests__/retry.test.js +0 -99
- package/dist/helpers/__tests__/retry.test.js.map +0 -1
- package/dist/helpers/__tests__/tags.test.d.ts +0 -1
- package/dist/helpers/__tests__/tags.test.js +0 -17
- package/dist/helpers/__tests__/tags.test.js.map +0 -1
- package/dist/helpers/__tests__/upload.test.d.ts +0 -1
- package/dist/helpers/__tests__/upload.test.js +0 -185
- package/dist/helpers/__tests__/upload.test.js.map +0 -1
- package/dist/helpers/__tests__/user-provided-git.test.d.ts +0 -1
- package/dist/helpers/__tests__/user-provided-git.test.js +0 -119
- package/dist/helpers/__tests__/user-provided-git.test.js.map +0 -1
- package/dist/helpers/__tests__/utils.test.d.ts +0 -1
- package/dist/helpers/__tests__/utils.test.js +0 -382
- package/dist/helpers/__tests__/utils.test.js.map +0 -1
- package/dist/helpers/__tests__/validation.test.d.ts +0 -1
- package/dist/helpers/__tests__/validation.test.js +0 -21
- package/dist/helpers/__tests__/validation.test.js.map +0 -1
- package/dist/helpers/git/__tests__/format-git-sourcemaps-data.test.d.ts +0 -1
- package/dist/helpers/git/__tests__/format-git-sourcemaps-data.test.js +0 -106
- package/dist/helpers/git/__tests__/format-git-sourcemaps-data.test.js.map +0 -1
- package/dist/helpers/git/__tests__/format-git-span-data.test.d.ts +0 -1
- package/dist/helpers/git/__tests__/format-git-span-data.test.js +0 -67
- package/dist/helpers/git/__tests__/format-git-span-data.test.js.map +0 -1
- package/dist/helpers/git/__tests__/get-git-data.test.d.ts +0 -1
- package/dist/helpers/git/__tests__/get-git-data.test.js +0 -60
- package/dist/helpers/git/__tests__/get-git-data.test.js.map +0 -1
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const get_git_data_1 = require("../get-git-data");
|
|
13
|
-
describe('git', () => {
|
|
14
|
-
describe('gitRemote', () => {
|
|
15
|
-
const createMockSimpleGit = (remotes) => ({
|
|
16
|
-
getRemotes: (arg) => remotes,
|
|
17
|
-
});
|
|
18
|
-
test('should choose the remote named origin', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
const mock = createMockSimpleGit([
|
|
20
|
-
{ name: 'first', refs: { push: 'remote1' } },
|
|
21
|
-
{ name: 'origin', refs: { push: 'remote2' } },
|
|
22
|
-
]);
|
|
23
|
-
const remote = yield get_git_data_1.gitRemote(mock);
|
|
24
|
-
expect(remote).toBe('remote2');
|
|
25
|
-
}));
|
|
26
|
-
test('should choose the first remote', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
27
|
-
const mock = createMockSimpleGit([
|
|
28
|
-
{ name: 'first', refs: { push: 'remote1' } },
|
|
29
|
-
{ name: 'second', refs: { push: 'remote2' } },
|
|
30
|
-
]);
|
|
31
|
-
const remote = yield get_git_data_1.gitRemote(mock);
|
|
32
|
-
expect(remote).toBe('remote1');
|
|
33
|
-
}));
|
|
34
|
-
});
|
|
35
|
-
describe('stripCredentials: git protocol', () => {
|
|
36
|
-
test('should return the same value', () => {
|
|
37
|
-
const input = 'git@github.com:user/project.git';
|
|
38
|
-
expect(get_git_data_1.stripCredentials(input)).toBe(input);
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
describe('stripCredentials: nothing to remove', () => {
|
|
42
|
-
test('should return the same value', () => {
|
|
43
|
-
const input = 'https://gitlab.com/user/project.git';
|
|
44
|
-
expect(get_git_data_1.stripCredentials(input)).toBe(input);
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
describe('stripCredentials: user:pwd', () => {
|
|
48
|
-
test('should return without credentials', () => {
|
|
49
|
-
const input = 'https://token:[MASKED]@gitlab.com/user/project.git';
|
|
50
|
-
expect(get_git_data_1.stripCredentials(input)).toBe('https://gitlab.com/user/project.git');
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
describe('stripCredentials: token', () => {
|
|
54
|
-
test('should return without credentials', () => {
|
|
55
|
-
const input = 'https://token@gitlab.com/user/project.git';
|
|
56
|
-
expect(get_git_data_1.stripCredentials(input)).toBe('https://gitlab.com/user/project.git');
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
//# sourceMappingURL=get-git-data.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-git-data.test.js","sourceRoot":"","sources":["../../../../src/helpers/git/__tests__/get-git-data.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,kDAA2D;AAE3D,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE;IACnB,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;QACzB,MAAM,mBAAmB,GAAG,CAAC,OAAc,EAAE,EAAE,CAAC,CAAC;YAC/C,UAAU,EAAE,CAAC,GAAY,EAAE,EAAE,CAAC,OAAO;SACtC,CAAC,CAAA;QAEF,IAAI,CAAC,uCAAuC,EAAE,GAAS,EAAE;YACvD,MAAM,IAAI,GAAG,mBAAmB,CAAC;gBAC/B,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC,EAAC;gBACxC,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC,EAAC;aAC1C,CAAQ,C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