@datadog/datadog-ci 2.40.1 → 2.40.3
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/__tests__/cli.test.d.ts +1 -0
- package/dist/__tests__/cli.test.js +41 -0
- package/dist/__tests__/cli.test.js.map +1 -0
- package/dist/commands/cloud-run/__tests__/fixtures.d.ts +2 -0
- package/dist/commands/cloud-run/__tests__/fixtures.js +12 -0
- package/dist/commands/cloud-run/__tests__/fixtures.js.map +1 -0
- package/dist/commands/cloud-run/__tests__/flare.test.d.ts +1 -0
- package/dist/commands/cloud-run/__tests__/flare.test.js +557 -0
- package/dist/commands/cloud-run/__tests__/flare.test.js.map +1 -0
- package/dist/commands/deployment/__tests__/mark.test.d.ts +1 -0
- package/dist/commands/deployment/__tests__/mark.test.js +47 -0
- package/dist/commands/deployment/__tests__/mark.test.js.map +1 -0
- package/dist/commands/dora/__tests__/deployment.test.d.ts +1 -0
- package/dist/commands/dora/__tests__/deployment.test.js +201 -0
- package/dist/commands/dora/__tests__/deployment.test.js.map +1 -0
- package/dist/commands/dsyms/__tests__/upload.test.d.ts +1 -0
- package/dist/commands/dsyms/__tests__/upload.test.js +346 -0
- package/dist/commands/dsyms/__tests__/upload.test.js.map +1 -0
- package/dist/commands/dsyms/__tests__/utils.test.d.ts +1 -0
- package/dist/commands/dsyms/__tests__/utils.test.js +103 -0
- package/dist/commands/dsyms/__tests__/utils.test.js.map +1 -0
- package/dist/commands/dsyms/utils.js +4 -2
- package/dist/commands/dsyms/utils.js.map +1 -1
- package/dist/commands/elf-symbols/__tests__/elf.test.d.ts +1 -0
- package/dist/commands/elf-symbols/__tests__/elf.test.js +813 -0
- package/dist/commands/elf-symbols/__tests__/elf.test.js.map +1 -0
- package/dist/commands/elf-symbols/__tests__/upload.test.d.ts +1 -0
- package/dist/commands/elf-symbols/__tests__/upload.test.js +249 -0
- package/dist/commands/elf-symbols/__tests__/upload.test.js.map +1 -0
- package/dist/commands/flutter-symbols/__tests__/upload.test.d.ts +1 -0
- package/dist/commands/flutter-symbols/__tests__/upload.test.js +617 -0
- package/dist/commands/flutter-symbols/__tests__/upload.test.js.map +1 -0
- package/dist/commands/gate/__tests__/evaluate.test.d.ts +1 -0
- package/dist/commands/gate/__tests__/evaluate.test.js +398 -0
- package/dist/commands/gate/__tests__/evaluate.test.js.map +1 -0
- package/dist/commands/gate/__tests__/scope.test.d.ts +1 -0
- package/dist/commands/gate/__tests__/scope.test.js +29 -0
- package/dist/commands/gate/__tests__/scope.test.js.map +1 -0
- package/dist/commands/git-metadata/__tests__/git.test.d.ts +1 -0
- package/dist/commands/git-metadata/__tests__/git.test.js +132 -0
- package/dist/commands/git-metadata/__tests__/git.test.js.map +1 -0
- package/dist/commands/git-metadata/__tests__/gitdb.test.d.ts +1 -0
- package/dist/commands/git-metadata/__tests__/gitdb.test.js +1386 -0
- package/dist/commands/git-metadata/__tests__/gitdb.test.js.map +1 -0
- package/dist/commands/git-metadata/__tests__/library.test.d.ts +1 -0
- package/dist/commands/git-metadata/__tests__/library.test.js +118 -0
- package/dist/commands/git-metadata/__tests__/library.test.js.map +1 -0
- package/dist/commands/git-metadata/__tests__/upload.test.d.ts +1 -0
- package/dist/commands/git-metadata/__tests__/upload.test.js +52 -0
- package/dist/commands/git-metadata/__tests__/upload.test.js.map +1 -0
- package/dist/commands/junit/__tests__/id.test.d.ts +1 -0
- package/dist/commands/junit/__tests__/id.test.js +24 -0
- package/dist/commands/junit/__tests__/id.test.js.map +1 -0
- package/dist/commands/junit/__tests__/upload.test.d.ts +1 -0
- package/dist/commands/junit/__tests__/upload.test.js +495 -0
- package/dist/commands/junit/__tests__/upload.test.js.map +1 -0
- package/dist/commands/lambda/__tests__/fixtures.d.ts +51 -0
- package/dist/commands/lambda/__tests__/fixtures.js +146 -0
- package/dist/commands/lambda/__tests__/fixtures.js.map +1 -0
- package/dist/commands/lambda/__tests__/flare.test.d.ts +1 -0
- package/dist/commands/lambda/__tests__/flare.test.js +730 -0
- package/dist/commands/lambda/__tests__/flare.test.js.map +1 -0
- package/dist/commands/lambda/__tests__/functions/commons.test.d.ts +1 -0
- package/dist/commands/lambda/__tests__/functions/commons.test.js +791 -0
- package/dist/commands/lambda/__tests__/functions/commons.test.js.map +1 -0
- package/dist/commands/lambda/__tests__/functions/instrument.part1.test.d.ts +1 -0
- package/dist/commands/lambda/__tests__/functions/instrument.part1.test.js +386 -0
- package/dist/commands/lambda/__tests__/functions/instrument.part1.test.js.map +1 -0
- package/dist/commands/lambda/__tests__/functions/instrument.part2.test.d.ts +1 -0
- package/dist/commands/lambda/__tests__/functions/instrument.part2.test.js +721 -0
- package/dist/commands/lambda/__tests__/functions/instrument.part2.test.js.map +1 -0
- package/dist/commands/lambda/__tests__/functions/uninstrument.test.d.ts +1 -0
- package/dist/commands/lambda/__tests__/functions/uninstrument.test.js +513 -0
- package/dist/commands/lambda/__tests__/functions/uninstrument.test.js.map +1 -0
- package/dist/commands/lambda/__tests__/functions/versionChecker.test.d.ts +1 -0
- package/dist/commands/lambda/__tests__/functions/versionChecker.test.js +33 -0
- package/dist/commands/lambda/__tests__/functions/versionChecker.test.js.map +1 -0
- package/dist/commands/lambda/__tests__/instrument.test.d.ts +1 -0
- package/dist/commands/lambda/__tests__/instrument.test.js +1511 -0
- package/dist/commands/lambda/__tests__/instrument.test.js.map +1 -0
- package/dist/commands/lambda/__tests__/loggroup.test.d.ts +1 -0
- package/dist/commands/lambda/__tests__/loggroup.test.js +340 -0
- package/dist/commands/lambda/__tests__/loggroup.test.js.map +1 -0
- package/dist/commands/lambda/__tests__/prompt.test.d.ts +1 -0
- package/dist/commands/lambda/__tests__/prompt.test.js +206 -0
- package/dist/commands/lambda/__tests__/prompt.test.js.map +1 -0
- package/dist/commands/lambda/__tests__/tags.test.d.ts +1 -0
- package/dist/commands/lambda/__tests__/tags.test.js +305 -0
- package/dist/commands/lambda/__tests__/tags.test.js.map +1 -0
- package/dist/commands/lambda/__tests__/uninstrument.test.d.ts +1 -0
- package/dist/commands/lambda/__tests__/uninstrument.test.js +722 -0
- package/dist/commands/lambda/__tests__/uninstrument.test.js.map +1 -0
- package/dist/commands/measure/__tests__/measure.test.d.ts +1 -0
- package/dist/commands/measure/__tests__/measure.test.js +110 -0
- package/dist/commands/measure/__tests__/measure.test.js.map +1 -0
- package/dist/commands/react-native/__tests__/codepush.test.d.ts +1 -0
- package/dist/commands/react-native/__tests__/codepush.test.js +161 -0
- package/dist/commands/react-native/__tests__/codepush.test.js.map +1 -0
- package/dist/commands/react-native/__tests__/interfaces.test.d.ts +1 -0
- package/dist/commands/react-native/__tests__/interfaces.test.js +33 -0
- package/dist/commands/react-native/__tests__/interfaces.test.js.map +1 -0
- package/dist/commands/react-native/__tests__/upload.test.d.ts +1 -0
- package/dist/commands/react-native/__tests__/upload.test.js +238 -0
- package/dist/commands/react-native/__tests__/upload.test.js.map +1 -0
- package/dist/commands/react-native/__tests__/utils.test.d.ts +1 -0
- package/dist/commands/react-native/__tests__/utils.test.js +27 -0
- package/dist/commands/react-native/__tests__/utils.test.js.map +1 -0
- package/dist/commands/react-native/__tests__/xcode.test.d.ts +1 -0
- package/dist/commands/react-native/__tests__/xcode.test.js +465 -0
- package/dist/commands/react-native/__tests__/xcode.test.js.map +1 -0
- package/dist/commands/sarif/__tests__/upload.test.d.ts +1 -0
- package/dist/commands/sarif/__tests__/upload.test.js +228 -0
- package/dist/commands/sarif/__tests__/upload.test.js.map +1 -0
- package/dist/commands/sbom/__tests__/payload.test.d.ts +1 -0
- package/dist/commands/sbom/__tests__/payload.test.js +262 -0
- package/dist/commands/sbom/__tests__/payload.test.js.map +1 -0
- package/dist/commands/sbom/__tests__/validation.test.d.ts +1 -0
- package/dist/commands/sbom/__tests__/validation.test.js +41 -0
- package/dist/commands/sbom/__tests__/validation.test.js.map +1 -0
- package/dist/commands/sourcemaps/__tests__/upload.test.d.ts +1 -0
- package/dist/commands/sourcemaps/__tests__/upload.test.js +270 -0
- package/dist/commands/sourcemaps/__tests__/upload.test.js.map +1 -0
- package/dist/commands/sourcemaps/__tests__/utils.test.d.ts +1 -0
- package/dist/commands/sourcemaps/__tests__/utils.test.js +31 -0
- package/dist/commands/sourcemaps/__tests__/utils.test.js.map +1 -0
- package/dist/commands/stepfunctions/__tests__/awsCommands.test.d.ts +1 -0
- package/dist/commands/stepfunctions/__tests__/awsCommands.test.js +192 -0
- package/dist/commands/stepfunctions/__tests__/awsCommands.test.js.map +1 -0
- package/dist/commands/stepfunctions/__tests__/fixtures/aws-resources.d.ts +6 -0
- package/dist/commands/stepfunctions/__tests__/fixtures/aws-resources.js +45 -0
- package/dist/commands/stepfunctions/__tests__/fixtures/aws-resources.js.map +1 -0
- package/dist/commands/stepfunctions/__tests__/fixtures/cli.d.ts +5 -0
- package/dist/commands/stepfunctions/__tests__/fixtures/cli.js +19 -0
- package/dist/commands/stepfunctions/__tests__/fixtures/cli.js.map +1 -0
- package/dist/commands/stepfunctions/__tests__/helpers.test.d.ts +1 -0
- package/dist/commands/stepfunctions/__tests__/helpers.test.js +205 -0
- package/dist/commands/stepfunctions/__tests__/helpers.test.js.map +1 -0
- package/dist/commands/stepfunctions/__tests__/instrument.test.d.ts +1 -0
- package/dist/commands/stepfunctions/__tests__/instrument.test.js +431 -0
- package/dist/commands/stepfunctions/__tests__/instrument.test.js.map +1 -0
- package/dist/commands/stepfunctions/__tests__/uninstrument.test.d.ts +1 -0
- package/dist/commands/stepfunctions/__tests__/uninstrument.test.js +166 -0
- package/dist/commands/stepfunctions/__tests__/uninstrument.test.js.map +1 -0
- package/dist/commands/synthetics/__tests__/api.test.d.ts +1 -0
- package/dist/commands/synthetics/__tests__/api.test.js +422 -0
- package/dist/commands/synthetics/__tests__/api.test.js.map +1 -0
- package/dist/commands/synthetics/__tests__/cli.test.d.ts +1 -0
- package/dist/commands/synthetics/__tests__/cli.test.js +1325 -0
- package/dist/commands/synthetics/__tests__/cli.test.js.map +1 -0
- package/dist/commands/synthetics/__tests__/fixtures.d.ts +149 -0
- package/dist/commands/synthetics/__tests__/fixtures.js +507 -0
- package/dist/commands/synthetics/__tests__/fixtures.js.map +1 -0
- package/dist/commands/synthetics/__tests__/mobile.test.d.ts +1 -0
- package/dist/commands/synthetics/__tests__/mobile.test.js +376 -0
- package/dist/commands/synthetics/__tests__/mobile.test.js.map +1 -0
- package/dist/commands/synthetics/__tests__/reporters/default.test.d.ts +1 -0
- package/dist/commands/synthetics/__tests__/reporters/default.test.js +354 -0
- package/dist/commands/synthetics/__tests__/reporters/default.test.js.map +1 -0
- package/dist/commands/synthetics/__tests__/reporters/junit.test.d.ts +1 -0
- package/dist/commands/synthetics/__tests__/reporters/junit.test.js +353 -0
- package/dist/commands/synthetics/__tests__/reporters/junit.test.js.map +1 -0
- package/dist/commands/synthetics/__tests__/reporters/mobile/app-upload.test.d.ts +1 -0
- package/dist/commands/synthetics/__tests__/reporters/mobile/app-upload.test.js +232 -0
- package/dist/commands/synthetics/__tests__/reporters/mobile/app-upload.test.js.map +1 -0
- package/dist/commands/synthetics/__tests__/run-tests-lib.test.d.ts +1 -0
- package/dist/commands/synthetics/__tests__/run-tests-lib.test.js +735 -0
- package/dist/commands/synthetics/__tests__/run-tests-lib.test.js.map +1 -0
- package/dist/commands/synthetics/__tests__/test.test.d.ts +1 -0
- package/dist/commands/synthetics/__tests__/test.test.js +33 -0
- package/dist/commands/synthetics/__tests__/test.test.js.map +1 -0
- package/dist/commands/synthetics/__tests__/tunnel/crypto.test.d.ts +1 -0
- package/dist/commands/synthetics/__tests__/tunnel/crypto.test.js +21 -0
- package/dist/commands/synthetics/__tests__/tunnel/crypto.test.js.map +1 -0
- package/dist/commands/synthetics/__tests__/tunnel/tunnel.test.d.ts +1 -0
- package/dist/commands/synthetics/__tests__/tunnel/tunnel.test.js +80 -0
- package/dist/commands/synthetics/__tests__/tunnel/tunnel.test.js.map +1 -0
- package/dist/commands/synthetics/__tests__/tunnel/websocket.test.d.ts +1 -0
- package/dist/commands/synthetics/__tests__/tunnel/websocket.test.js +109 -0
- package/dist/commands/synthetics/__tests__/tunnel/websocket.test.js.map +1 -0
- package/dist/commands/synthetics/__tests__/utils/internal.test.d.ts +1 -0
- package/dist/commands/synthetics/__tests__/utils/internal.test.js +186 -0
- package/dist/commands/synthetics/__tests__/utils/internal.test.js.map +1 -0
- package/dist/commands/synthetics/__tests__/utils/public.test.d.ts +1 -0
- package/dist/commands/synthetics/__tests__/utils/public.test.js +1526 -0
- package/dist/commands/synthetics/__tests__/utils/public.test.js.map +1 -0
- package/dist/commands/synthetics/api.d.ts +1 -1
- package/dist/commands/synthetics/api.js +10 -5
- package/dist/commands/synthetics/api.js.map +1 -1
- package/dist/commands/synthetics/run-tests-command.d.ts +1 -0
- package/dist/commands/synthetics/run-tests-command.js +3 -2
- package/dist/commands/synthetics/run-tests-command.js.map +1 -1
- package/dist/commands/synthetics/run-tests-lib.js +0 -4
- package/dist/commands/synthetics/run-tests-lib.js.map +1 -1
- package/dist/commands/synthetics/test.js +9 -1
- package/dist/commands/synthetics/test.js.map +1 -1
- package/dist/commands/synthetics/utils/public.js +1 -1
- package/dist/commands/synthetics/utils/public.js.map +1 -1
- package/dist/commands/tag/__tests__/tag.test.d.ts +1 -0
- package/dist/commands/tag/__tests__/tag.test.js +75 -0
- package/dist/commands/tag/__tests__/tag.test.js.map +1 -0
- package/dist/commands/trace/__tests__/trace.test.d.ts +1 -0
- package/dist/commands/trace/__tests__/trace.test.js +145 -0
- package/dist/commands/trace/__tests__/trace.test.js.map +1 -0
- package/dist/commands/unity-symbols/__tests__/upload.test.d.ts +1 -0
- package/dist/commands/unity-symbols/__tests__/upload.test.js +369 -0
- package/dist/commands/unity-symbols/__tests__/upload.test.js.map +1 -0
- package/dist/helpers/__tests__/app.test.d.ts +1 -0
- package/dist/helpers/__tests__/app.test.js +31 -0
- package/dist/helpers/__tests__/app.test.js.map +1 -0
- package/dist/helpers/__tests__/ci.test.d.ts +1 -0
- package/dist/helpers/__tests__/ci.test.js +252 -0
- package/dist/helpers/__tests__/ci.test.js.map +1 -0
- package/dist/helpers/__tests__/fixtures.d.ts +33 -0
- package/dist/helpers/__tests__/fixtures.js +71 -0
- package/dist/helpers/__tests__/fixtures.js.map +1 -0
- package/dist/helpers/__tests__/flare.test.d.ts +1 -0
- package/dist/helpers/__tests__/flare.test.js +226 -0
- package/dist/helpers/__tests__/flare.test.js.map +1 -0
- package/dist/helpers/__tests__/fs.test.d.ts +1 -0
- package/dist/helpers/__tests__/fs.test.js +189 -0
- package/dist/helpers/__tests__/fs.test.js.map +1 -0
- package/dist/helpers/__tests__/plist.test.d.ts +1 -0
- package/dist/helpers/__tests__/plist.test.js +43 -0
- package/dist/helpers/__tests__/plist.test.js.map +1 -0
- package/dist/helpers/__tests__/prompt.test.d.ts +1 -0
- package/dist/helpers/__tests__/prompt.test.js +71 -0
- package/dist/helpers/__tests__/prompt.test.js.map +1 -0
- package/dist/helpers/__tests__/retry.test.d.ts +1 -0
- package/dist/helpers/__tests__/retry.test.js +99 -0
- package/dist/helpers/__tests__/retry.test.js.map +1 -0
- package/dist/helpers/__tests__/tags.test.d.ts +1 -0
- package/dist/helpers/__tests__/tags.test.js +71 -0
- package/dist/helpers/__tests__/tags.test.js.map +1 -0
- package/dist/helpers/__tests__/upload.test.d.ts +1 -0
- package/dist/helpers/__tests__/upload.test.js +231 -0
- package/dist/helpers/__tests__/upload.test.js.map +1 -0
- package/dist/helpers/__tests__/user-provided-git.test.d.ts +1 -0
- package/dist/helpers/__tests__/user-provided-git.test.js +119 -0
- package/dist/helpers/__tests__/user-provided-git.test.js.map +1 -0
- package/dist/helpers/__tests__/utils.test.d.ts +1 -0
- package/dist/helpers/__tests__/utils.test.js +429 -0
- package/dist/helpers/__tests__/utils.test.js.map +1 -0
- package/dist/helpers/__tests__/validation.test.d.ts +1 -0
- package/dist/helpers/__tests__/validation.test.js +25 -0
- package/dist/helpers/__tests__/validation.test.js.map +1 -0
- package/dist/helpers/git/__tests__/format-git-sourcemaps-data.test.d.ts +1 -0
- package/dist/helpers/git/__tests__/format-git-sourcemaps-data.test.js +103 -0
- package/dist/helpers/git/__tests__/format-git-sourcemaps-data.test.js.map +1 -0
- package/dist/helpers/git/__tests__/format-git-span-data.test.d.ts +1 -0
- package/dist/helpers/git/__tests__/format-git-span-data.test.js +121 -0
- package/dist/helpers/git/__tests__/format-git-span-data.test.js.map +1 -0
- package/dist/helpers/git/__tests__/get-git-data.test.d.ts +1 -0
- package/dist/helpers/git/__tests__/get-git-data.test.js +72 -0
- package/dist/helpers/git/__tests__/get-git-data.test.js.map +1 -0
- package/package.json +5 -7
|
@@ -0,0 +1,121 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const simple_git_1 = __importDefault(require("simple-git"));
|
|
16
|
+
const tags_1 = require("../../tags");
|
|
17
|
+
const format_git_span_data_1 = require("../format-git-span-data");
|
|
18
|
+
jest.mock('simple-git');
|
|
19
|
+
describe('getGitMetadata', () => {
|
|
20
|
+
it('reads git metadata successfully', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
|
+
;
|
|
22
|
+
simple_git_1.default.mockImplementation(() => ({
|
|
23
|
+
branch: () => ({ current: 'main' }),
|
|
24
|
+
listRemote: (git) => __awaiter(void 0, void 0, void 0, function* () { return 'repository_url'; }),
|
|
25
|
+
revparse: () => 'commitSHA',
|
|
26
|
+
show: (input) => {
|
|
27
|
+
if (input[1] === '--format=%s') {
|
|
28
|
+
return 'commit message';
|
|
29
|
+
}
|
|
30
|
+
return 'authorName,authorEmail,authorDate,committerName,committerEmail,committerDate';
|
|
31
|
+
},
|
|
32
|
+
}));
|
|
33
|
+
const result = yield (0, format_git_span_data_1.getGitMetadata)();
|
|
34
|
+
expect(result).toEqual({
|
|
35
|
+
[tags_1.GIT_REPOSITORY_URL]: 'repository_url',
|
|
36
|
+
[tags_1.GIT_BRANCH]: 'main',
|
|
37
|
+
[tags_1.GIT_SHA]: 'commitSHA',
|
|
38
|
+
[tags_1.GIT_COMMIT_MESSAGE]: 'commit message',
|
|
39
|
+
[tags_1.GIT_COMMIT_COMMITTER_DATE]: 'committerDate',
|
|
40
|
+
[tags_1.GIT_COMMIT_COMMITTER_EMAIL]: 'committerEmail',
|
|
41
|
+
[tags_1.GIT_COMMIT_COMMITTER_NAME]: 'committerName',
|
|
42
|
+
[tags_1.GIT_COMMIT_AUTHOR_DATE]: 'authorDate',
|
|
43
|
+
[tags_1.GIT_COMMIT_AUTHOR_EMAIL]: 'authorEmail',
|
|
44
|
+
[tags_1.GIT_COMMIT_AUTHOR_NAME]: 'authorName',
|
|
45
|
+
});
|
|
46
|
+
}));
|
|
47
|
+
it('does not crash when git is not available', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
48
|
+
;
|
|
49
|
+
simple_git_1.default.mockImplementation(() => ({
|
|
50
|
+
branch: () => {
|
|
51
|
+
throw new Error();
|
|
52
|
+
},
|
|
53
|
+
listRemote: () => {
|
|
54
|
+
throw new Error();
|
|
55
|
+
},
|
|
56
|
+
revparse: () => {
|
|
57
|
+
throw new Error();
|
|
58
|
+
},
|
|
59
|
+
show: () => {
|
|
60
|
+
throw new Error();
|
|
61
|
+
},
|
|
62
|
+
}));
|
|
63
|
+
const result = yield (0, format_git_span_data_1.getGitMetadata)();
|
|
64
|
+
expect(result).toEqual({});
|
|
65
|
+
}));
|
|
66
|
+
it('scrubs credentials from https repository url', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
67
|
+
;
|
|
68
|
+
simple_git_1.default.mockImplementation(() => ({
|
|
69
|
+
branch: () => ({ current: 'main' }),
|
|
70
|
+
listRemote: (git) => __awaiter(void 0, void 0, void 0, function* () { return 'https://x-oauth-basic:ghp_safe_characters@github.com/datadog/safe-repository.git'; }),
|
|
71
|
+
revparse: () => 'commitSHA',
|
|
72
|
+
show: (input) => {
|
|
73
|
+
if (input[1] === '--format=%s') {
|
|
74
|
+
return 'commit message';
|
|
75
|
+
}
|
|
76
|
+
return 'authorName,authorEmail,authorDate,committerName,committerEmail,committerDate';
|
|
77
|
+
},
|
|
78
|
+
}));
|
|
79
|
+
const result = yield (0, format_git_span_data_1.getGitMetadata)();
|
|
80
|
+
expect(result).toEqual({
|
|
81
|
+
[tags_1.GIT_REPOSITORY_URL]: 'https://github.com/datadog/safe-repository.git',
|
|
82
|
+
[tags_1.GIT_BRANCH]: 'main',
|
|
83
|
+
[tags_1.GIT_SHA]: 'commitSHA',
|
|
84
|
+
[tags_1.GIT_COMMIT_MESSAGE]: 'commit message',
|
|
85
|
+
[tags_1.GIT_COMMIT_COMMITTER_DATE]: 'committerDate',
|
|
86
|
+
[tags_1.GIT_COMMIT_COMMITTER_EMAIL]: 'committerEmail',
|
|
87
|
+
[tags_1.GIT_COMMIT_COMMITTER_NAME]: 'committerName',
|
|
88
|
+
[tags_1.GIT_COMMIT_AUTHOR_DATE]: 'authorDate',
|
|
89
|
+
[tags_1.GIT_COMMIT_AUTHOR_EMAIL]: 'authorEmail',
|
|
90
|
+
[tags_1.GIT_COMMIT_AUTHOR_NAME]: 'authorName',
|
|
91
|
+
});
|
|
92
|
+
}));
|
|
93
|
+
it('scrubs credentials from ssh repository url', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
94
|
+
;
|
|
95
|
+
simple_git_1.default.mockImplementation(() => ({
|
|
96
|
+
branch: () => ({ current: 'main' }),
|
|
97
|
+
listRemote: (git) => __awaiter(void 0, void 0, void 0, function* () { return 'ssh://username@host.xz:port/path/to/repo.git/'; }),
|
|
98
|
+
revparse: () => 'commitSHA',
|
|
99
|
+
show: (input) => {
|
|
100
|
+
if (input[1] === '--format=%s') {
|
|
101
|
+
return 'commit message';
|
|
102
|
+
}
|
|
103
|
+
return 'authorName,authorEmail,authorDate,committerName,committerEmail,committerDate';
|
|
104
|
+
},
|
|
105
|
+
}));
|
|
106
|
+
const result = yield (0, format_git_span_data_1.getGitMetadata)();
|
|
107
|
+
expect(result).toEqual({
|
|
108
|
+
[tags_1.GIT_REPOSITORY_URL]: 'ssh://host.xz:port/path/to/repo.git/',
|
|
109
|
+
[tags_1.GIT_BRANCH]: 'main',
|
|
110
|
+
[tags_1.GIT_SHA]: 'commitSHA',
|
|
111
|
+
[tags_1.GIT_COMMIT_MESSAGE]: 'commit message',
|
|
112
|
+
[tags_1.GIT_COMMIT_COMMITTER_DATE]: 'committerDate',
|
|
113
|
+
[tags_1.GIT_COMMIT_COMMITTER_EMAIL]: 'committerEmail',
|
|
114
|
+
[tags_1.GIT_COMMIT_COMMITTER_NAME]: 'committerName',
|
|
115
|
+
[tags_1.GIT_COMMIT_AUTHOR_DATE]: 'authorDate',
|
|
116
|
+
[tags_1.GIT_COMMIT_AUTHOR_EMAIL]: 'authorEmail',
|
|
117
|
+
[tags_1.GIT_COMMIT_AUTHOR_NAME]: 'authorName',
|
|
118
|
+
});
|
|
119
|
+
}));
|
|
120
|
+
});
|
|
121
|
+
//# sourceMappingURL=format-git-span-data.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-git-span-data.test.js","sourceRoot":"","sources":["../../../../src/helpers/git/__tests__/format-git-span-data.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,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YAC9C,CAAC,gCAAyB,CAAC,EAAE,eAAe;YAC5C,CAAC,6BAAsB,CAAC,EAAE,YAAY;YACtC,CAAC,8BAAuB,CAAC,EAAE,aAAa;YACxC,CAAC,6BAAsB,CAAC,EAAE,YAAY;SACvC,CAAC,CAAA;IACJ,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,72 @@
|
|
|
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, defaultOrigin) => ({
|
|
16
|
+
getRemotes: (arg) => remotes,
|
|
17
|
+
getConfig: (arg) => ({
|
|
18
|
+
// eslint-disable-next-line no-null/no-null
|
|
19
|
+
value: defaultOrigin !== null && defaultOrigin !== void 0 ? defaultOrigin : null,
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
22
|
+
test('should choose the remote named origin if no default is specified', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
23
|
+
const mock = createMockSimpleGit([
|
|
24
|
+
{ name: 'first', refs: { push: 'remote1' } },
|
|
25
|
+
{ name: 'origin', refs: { push: 'remote2' } },
|
|
26
|
+
], undefined);
|
|
27
|
+
const remote = yield (0, get_git_data_1.gitRemote)(mock);
|
|
28
|
+
expect(remote).toBe('remote2');
|
|
29
|
+
}));
|
|
30
|
+
test('should choose the remote named first if that is the default origin', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
31
|
+
const mock = createMockSimpleGit([
|
|
32
|
+
{ name: 'first', refs: { push: 'remote1' } },
|
|
33
|
+
{ name: 'origin', refs: { push: 'remote2' } },
|
|
34
|
+
], 'first');
|
|
35
|
+
const remote = yield (0, get_git_data_1.gitRemote)(mock);
|
|
36
|
+
expect(remote).toBe('remote1');
|
|
37
|
+
}));
|
|
38
|
+
test('should choose the first remote', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
39
|
+
const mock = createMockSimpleGit([
|
|
40
|
+
{ name: 'first', refs: { push: 'remote1' } },
|
|
41
|
+
{ name: 'second', refs: { push: 'remote2' } },
|
|
42
|
+
], undefined);
|
|
43
|
+
const remote = yield (0, get_git_data_1.gitRemote)(mock);
|
|
44
|
+
expect(remote).toBe('remote1');
|
|
45
|
+
}));
|
|
46
|
+
});
|
|
47
|
+
describe('stripCredentials: git protocol', () => {
|
|
48
|
+
test('should return the same value', () => {
|
|
49
|
+
const input = 'git@github.com:user/project.git';
|
|
50
|
+
expect((0, get_git_data_1.stripCredentials)(input)).toBe(input);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
describe('stripCredentials: nothing to remove', () => {
|
|
54
|
+
test('should return the same value', () => {
|
|
55
|
+
const input = 'https://gitlab.com/user/project.git';
|
|
56
|
+
expect((0, get_git_data_1.stripCredentials)(input)).toBe(input);
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
describe('stripCredentials: user:pwd', () => {
|
|
60
|
+
test('should return without credentials', () => {
|
|
61
|
+
const input = 'https://token:[MASKED]@gitlab.com/user/project.git';
|
|
62
|
+
expect((0, get_git_data_1.stripCredentials)(input)).toBe('https://gitlab.com/user/project.git');
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
describe('stripCredentials: token', () => {
|
|
66
|
+
test('should return without credentials', () => {
|
|
67
|
+
const input = 'https://token@gitlab.com/user/project.git';
|
|
68
|
+
expect((0, get_git_data_1.stripCredentials)(input)).toBe('https://gitlab.com/user/project.git');
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=get-git-data.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,aAAiC,EAAE,EAAE,CAAC,CAAC;YAClF,UAAU,EAAE,CAAC,GAAY,EAAE,EAAE,CAAC,OAAO;YACrC,SAAS,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC;gBAC3B,2CAA2C;gBAC3C,KAAK,EAAE,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,IAAI;aAC7B,CAAC;SACH,CAAC,CAAA;QAEF,IAAI,CAAC,kEAAkE,EAAE,GAAS,EAAE;YAClF,MAAM,IAAI,GAAG,mBAAmB,CAC9B;gBACE,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,EACD,SAAS,CACH,CAAA;YACR,MAAM,MAAM,GAAG,MAAM,IAAA,wBAAS,EAAC,IAAI,CAAC,CAAA;YAEpC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QA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AC,qCAAqC,EAAE,GAAG,EAAE;QACnD,IAAI,CAAC,8BAA8B,EAAE,GAAG,EAAE;YACxC,MAAM,KAAK,GAAG,qCAAqC,CAAA;YAEnD,MAAM,CAAC,IAAA,+BAAgB,EAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC7C,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IACF,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;QAC1C,IAAI,CAAC,mCAAmC,EAAE,GAAG,EAAE;YAC7C,MAAM,KAAK,GAAG,oDAAoD,CAAA;YAElE,MAAM,CAAC,IAAA,+BAAgB,EAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAA;QAC7E,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IACF,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;QACvC,IAAI,CAAC,mCAAmC,EAAE,GAAG,EAAE;YAC7C,MAAM,KAAK,GAAG,2CAA2C,CAAA;YAEzD,MAAM,CAAC,IAAA,+BAAgB,EAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAA;QAC7E,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datadog/datadog-ci",
|
|
3
|
-
"version": "2.40.
|
|
3
|
+
"version": "2.40.3",
|
|
4
4
|
"description": "Run datadog actions from the CI.",
|
|
5
5
|
"repository": "https://github.com/DataDog/datadog-ci",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"@types/retry": "0.12.0",
|
|
27
27
|
"aws-sdk-client-mock": "2.1.1",
|
|
28
28
|
"aws-sdk-client-mock-jest": "2.1.1",
|
|
29
|
-
"fast-xml-parser@npm:4.2.4": "4.2.5",
|
|
30
29
|
"ini": "1.3.7",
|
|
31
30
|
"kind-of@^6.0.0": "6.0.3"
|
|
32
31
|
},
|
|
@@ -87,18 +86,18 @@
|
|
|
87
86
|
"datadog-metrics": "0.9.3",
|
|
88
87
|
"deep-extend": "0.6.0",
|
|
89
88
|
"deep-object-diff": "^1.1.9",
|
|
90
|
-
"fast-xml-parser": "^4.
|
|
89
|
+
"fast-xml-parser": "^4.4.1",
|
|
91
90
|
"form-data": "4.0.0",
|
|
92
91
|
"fuzzy": "^0.1.3",
|
|
93
|
-
"glob": "7.1.4",
|
|
94
|
-
"google-auth-library": "^
|
|
92
|
+
"glob": "^7.1.4",
|
|
93
|
+
"google-auth-library": "^9.12.0",
|
|
95
94
|
"inquirer": "^8.2.5",
|
|
96
95
|
"inquirer-checkbox-plus-prompt": "^1.4.2",
|
|
97
96
|
"js-yaml": "3.13.1",
|
|
98
97
|
"jszip": "^3.10.1",
|
|
99
98
|
"ora": "5.4.1",
|
|
100
99
|
"proxy-agent": "^6.4.0",
|
|
101
|
-
"rimraf": "^
|
|
100
|
+
"rimraf": "^6.0.1",
|
|
102
101
|
"semver": "^7.5.3",
|
|
103
102
|
"simple-git": "3.16.0",
|
|
104
103
|
"ssh2": "^1.15.0",
|
|
@@ -125,7 +124,6 @@
|
|
|
125
124
|
"@types/jest": "29.5.3",
|
|
126
125
|
"@types/js-yaml": "^4.0.5",
|
|
127
126
|
"@types/node": "14.18.34",
|
|
128
|
-
"@types/rimraf": "^3.0.2",
|
|
129
127
|
"@types/semver": "^7.3.12",
|
|
130
128
|
"@types/ssh2": "1.11.6",
|
|
131
129
|
"@types/ssh2-streams": "0.1.9",
|