@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.
Files changed (46) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/adapter.js +118 -0
  3. package/entities/AnnotatedTags/schema.json +13 -2
  4. package/entities/Blobs/schema.json +13 -2
  5. package/entities/CherryPicks/schema.json +13 -2
  6. package/entities/Commits/action.json +21 -0
  7. package/entities/Commits/schema.json +267 -2
  8. package/entities/Diffs/schema.json +13 -2
  9. package/entities/Forks/schema.json +13 -2
  10. package/entities/ImportRequests/schema.json +13 -2
  11. package/entities/Items/mockdatafiles/itemsGetItemsBatch-default.json +7 -5
  12. package/entities/Items/schema.json +13 -2
  13. package/entities/MergeBases/schema.json +13 -2
  14. package/entities/Merges/schema.json +13 -2
  15. package/entities/PolicyConfigurations/schema.json +12 -1
  16. package/entities/PullRequestAttachments/schema.json +13 -2
  17. package/entities/PullRequestCommentLikes/schema.json +13 -2
  18. package/entities/PullRequestCommits/schema.json +13 -2
  19. package/entities/PullRequestIterationChanges/schema.json +13 -2
  20. package/entities/PullRequestIterationStatuses/schema.json +13 -2
  21. package/entities/PullRequestIterations/schema.json +13 -2
  22. package/entities/PullRequestLabels/schema.json +13 -2
  23. package/entities/PullRequestProperties/schema.json +13 -2
  24. package/entities/PullRequestQuery/schema.json +13 -2
  25. package/entities/PullRequestReviewers/schema.json +13 -2
  26. package/entities/PullRequestShare/schema.json +13 -2
  27. package/entities/PullRequestStatuses/schema.json +13 -2
  28. package/entities/PullRequestThreadComments/schema.json +13 -2
  29. package/entities/PullRequestThreads/schema.json +13 -2
  30. package/entities/PullRequestWorkItems/schema.json +13 -2
  31. package/entities/PullRequests/schema.json +13 -2
  32. package/entities/Pushes/schema.json +13 -2
  33. package/entities/Refs/schema.json +13 -2
  34. package/entities/RefsFavorites/schema.json +13 -2
  35. package/entities/Repositories/schema.json +13 -2
  36. package/entities/Reverts/schema.json +13 -2
  37. package/entities/Stats/schema.json +13 -2
  38. package/entities/Statuses/schema.json +13 -2
  39. package/entities/Suggestions/schema.json +13 -2
  40. package/entities/Trees/schema.json +13 -2
  41. package/package.json +1 -1
  42. package/pronghorn.json +294 -0
  43. package/refs?service=git-upload-pack +0 -0
  44. package/report/adapterInfo.json +7 -7
  45. package/test/integration/adapterTestIntegration.js +28 -3
  46. 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 {