@itentialopensource/adapter-azure_devops 0.1.3 → 0.1.5
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/CHANGELOG.md +16 -0
- package/adapter.js +118 -0
- package/entities/AnnotatedTags/schema.json +13 -2
- package/entities/Blobs/schema.json +13 -2
- package/entities/CherryPicks/schema.json +13 -2
- package/entities/Commits/action.json +21 -0
- package/entities/Commits/schema.json +267 -2
- package/entities/Diffs/schema.json +13 -2
- package/entities/Forks/schema.json +13 -2
- package/entities/ImportRequests/schema.json +13 -2
- package/entities/Items/mockdatafiles/itemsGetItemsBatch-default.json +7 -5
- package/entities/Items/schema.json +13 -2
- package/entities/MergeBases/schema.json +13 -2
- package/entities/Merges/schema.json +13 -2
- package/entities/PolicyConfigurations/schema.json +12 -1
- package/entities/PullRequestAttachments/schema.json +13 -2
- package/entities/PullRequestCommentLikes/schema.json +13 -2
- package/entities/PullRequestCommits/schema.json +13 -2
- package/entities/PullRequestIterationChanges/schema.json +13 -2
- package/entities/PullRequestIterationStatuses/schema.json +13 -2
- package/entities/PullRequestIterations/schema.json +13 -2
- package/entities/PullRequestLabels/schema.json +13 -2
- package/entities/PullRequestProperties/schema.json +13 -2
- package/entities/PullRequestQuery/schema.json +13 -2
- package/entities/PullRequestReviewers/schema.json +13 -2
- package/entities/PullRequestShare/schema.json +13 -2
- package/entities/PullRequestStatuses/schema.json +13 -2
- package/entities/PullRequestThreadComments/schema.json +13 -2
- package/entities/PullRequestThreads/schema.json +13 -2
- package/entities/PullRequestWorkItems/schema.json +13 -2
- package/entities/PullRequests/schema.json +13 -2
- package/entities/Pushes/schema.json +13 -2
- package/entities/Refs/schema.json +13 -2
- package/entities/RefsFavorites/schema.json +13 -2
- package/entities/Repositories/schema.json +13 -2
- package/entities/Reverts/schema.json +13 -2
- package/entities/Stats/schema.json +13 -2
- package/entities/Statuses/schema.json +13 -2
- package/entities/Suggestions/schema.json +13 -2
- package/entities/Trees/schema.json +13 -2
- package/package.json +1 -1
- package/pronghorn.json +294 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +7 -7
- package/test/integration/adapterTestIntegration.js +28 -3
- package/test/unit/adapterTestUnit.js +63 -0
|
@@ -4768,6 +4768,69 @@ describe('[unit] Azure_devops Adapter Test', () => {
|
|
|
4768
4768
|
}).timeout(attemptTimeout);
|
|
4769
4769
|
});
|
|
4770
4770
|
|
|
4771
|
+
describe('#commitsGetCommits - errors', () => {
|
|
4772
|
+
it('should have a commitsGetCommits function', (done) => {
|
|
4773
|
+
try {
|
|
4774
|
+
assert.equal(true, typeof a.commitsGetCommits === 'function');
|
|
4775
|
+
done();
|
|
4776
|
+
} catch (error) {
|
|
4777
|
+
log.error(`Test Failure: ${error}`);
|
|
4778
|
+
done(error);
|
|
4779
|
+
}
|
|
4780
|
+
}).timeout(attemptTimeout);
|
|
4781
|
+
it('should error if - missing organization', (done) => {
|
|
4782
|
+
try {
|
|
4783
|
+
a.commitsGetCommits(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
4784
|
+
try {
|
|
4785
|
+
const displayE = 'organization is required';
|
|
4786
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-azure_devops-adapter-commitsGetCommits', displayE);
|
|
4787
|
+
done();
|
|
4788
|
+
} catch (err) {
|
|
4789
|
+
log.error(`Test Failure: ${err}`);
|
|
4790
|
+
done(err);
|
|
4791
|
+
}
|
|
4792
|
+
});
|
|
4793
|
+
} catch (error) {
|
|
4794
|
+
log.error(`Adapter Exception: ${error}`);
|
|
4795
|
+
done(error);
|
|
4796
|
+
}
|
|
4797
|
+
}).timeout(attemptTimeout);
|
|
4798
|
+
it('should error if - missing repositoryId', (done) => {
|
|
4799
|
+
try {
|
|
4800
|
+
a.commitsGetCommits('fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
4801
|
+
try {
|
|
4802
|
+
const displayE = 'repositoryId is required';
|
|
4803
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-azure_devops-adapter-commitsGetCommits', displayE);
|
|
4804
|
+
done();
|
|
4805
|
+
} catch (err) {
|
|
4806
|
+
log.error(`Test Failure: ${err}`);
|
|
4807
|
+
done(err);
|
|
4808
|
+
}
|
|
4809
|
+
});
|
|
4810
|
+
} catch (error) {
|
|
4811
|
+
log.error(`Adapter Exception: ${error}`);
|
|
4812
|
+
done(error);
|
|
4813
|
+
}
|
|
4814
|
+
}).timeout(attemptTimeout);
|
|
4815
|
+
it('should error if - missing apiVersion', (done) => {
|
|
4816
|
+
try {
|
|
4817
|
+
a.commitsGetCommits('fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
4818
|
+
try {
|
|
4819
|
+
const displayE = 'apiVersion is required';
|
|
4820
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-azure_devops-adapter-commitsGetCommits', displayE);
|
|
4821
|
+
done();
|
|
4822
|
+
} catch (err) {
|
|
4823
|
+
log.error(`Test Failure: ${err}`);
|
|
4824
|
+
done(err);
|
|
4825
|
+
}
|
|
4826
|
+
});
|
|
4827
|
+
} catch (error) {
|
|
4828
|
+
log.error(`Adapter Exception: ${error}`);
|
|
4829
|
+
done(error);
|
|
4830
|
+
}
|
|
4831
|
+
}).timeout(attemptTimeout);
|
|
4832
|
+
});
|
|
4833
|
+
|
|
4771
4834
|
describe('#commitsGetCommitsBatch - errors', () => {
|
|
4772
4835
|
it('should have a commitsGetCommitsBatch function', (done) => {
|
|
4773
4836
|
try {
|