@itentialopensource/adapter-terraform_enterprise 0.1.2 → 0.2.0

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 (69) hide show
  1. package/.eslintignore +1 -0
  2. package/.eslintrc.js +12 -12
  3. package/AUTH.md +39 -0
  4. package/BROKER.md +199 -0
  5. package/CALLS.md +169 -0
  6. package/CHANGELOG.md +33 -5
  7. package/CODE_OF_CONDUCT.md +12 -17
  8. package/CONTRIBUTING.md +88 -74
  9. package/ENHANCE.md +69 -0
  10. package/PROPERTIES.md +641 -0
  11. package/README.md +251 -420
  12. package/SUMMARY.md +9 -0
  13. package/SYSTEMINFO.md +11 -0
  14. package/TROUBLESHOOT.md +47 -0
  15. package/adapter.js +1220 -119
  16. package/adapterBase.js +1317 -43
  17. package/entities/.generic/action.json +214 -0
  18. package/entities/.generic/schema.json +28 -0
  19. package/entities/.system/action.json +3 -2
  20. package/entities/Account/action.json +2 -0
  21. package/entities/NotificationConfigurations/action.json +4 -0
  22. package/entities/OAuthClients/action.json +3 -0
  23. package/entities/OAuthTokens/action.json +2 -0
  24. package/entities/OrganizationMemberships/action.json +2 -0
  25. package/entities/OrganizationToken/action.json +2 -0
  26. package/entities/PlanExports/action.json +2 -0
  27. package/entities/Policies/action.json +4 -0
  28. package/entities/PolicyChecks/action.json +1 -0
  29. package/entities/PolicySetParameters/action.json +3 -0
  30. package/entities/PolicySets/action.json +8 -0
  31. package/entities/Runs/action.json +5 -0
  32. package/entities/StateVersions/action.json +1 -0
  33. package/entities/Variables/action.json +3 -0
  34. package/entities/Workspaces/action.json +5 -0
  35. package/entities/WorkspacesVariables/action.json +3 -0
  36. package/error.json +12 -0
  37. package/package.json +45 -22
  38. package/pronghorn.json +656 -7
  39. package/propertiesDecorators.json +14 -0
  40. package/propertiesSchema.json +479 -6
  41. package/refs?service=git-upload-pack +0 -0
  42. package/report/Terraform.OpenApi3Json.json +3984 -0
  43. package/report/adapterInfo.json +10 -0
  44. package/report/updateReport1594344536029.json +95 -0
  45. package/report/updateReport1615837746160.json +95 -0
  46. package/report/updateReport1653324214945.json +120 -0
  47. package/sampleProperties.json +147 -21
  48. package/test/integration/adapterTestBasicGet.js +85 -0
  49. package/test/integration/adapterTestConnectivity.js +93 -0
  50. package/test/integration/adapterTestIntegration.js +634 -3369
  51. package/test/unit/adapterBaseTestUnit.js +949 -0
  52. package/test/unit/adapterTestUnit.js +1234 -3329
  53. package/utils/adapterInfo.js +206 -0
  54. package/utils/addAuth.js +94 -0
  55. package/utils/artifactize.js +0 -1
  56. package/utils/basicGet.js +50 -0
  57. package/utils/checkMigrate.js +63 -0
  58. package/utils/entitiesToDB.js +179 -0
  59. package/utils/findPath.js +74 -0
  60. package/utils/modify.js +154 -0
  61. package/utils/packModificationScript.js +1 -1
  62. package/utils/patches2bundledDeps.js +90 -0
  63. package/utils/pre-commit.sh +3 -0
  64. package/utils/removeHooks.js +20 -0
  65. package/utils/tbScript.js +184 -0
  66. package/utils/tbUtils.js +469 -0
  67. package/utils/testRunner.js +16 -16
  68. package/utils/troubleshootingAdapter.js +190 -0
  69. package/gl-code-quality-report.json +0 -1
@@ -0,0 +1,93 @@
1
+ /* @copyright Itential, LLC 2020 */
2
+
3
+ /* global describe it context before after */
4
+ /* eslint no-unused-vars: warn */
5
+
6
+ const mocha = require('mocha');
7
+ const assert = require('assert');
8
+ const diagnostics = require('network-diagnostics');
9
+
10
+ let host;
11
+ process.argv.forEach((val) => {
12
+ if (val.indexOf('--HOST') === 0) {
13
+ [, host] = val.split('=');
14
+ }
15
+ });
16
+
17
+ describe('[integration] Adapter Test', () => {
18
+ context(`Testing network connection on ${host}`, () => {
19
+ before(() => {
20
+ diagnostics.setTestURL(host);
21
+ });
22
+
23
+ after((done) => {
24
+ done();
25
+ });
26
+
27
+ it('DNS resolve', (done) => {
28
+ diagnostics.haveDNS((result) => {
29
+ try {
30
+ assert.equal(result, true);
31
+ done();
32
+ } catch (error) {
33
+ done(error);
34
+ }
35
+ });
36
+ });
37
+
38
+ it('Responds to ping', (done) => {
39
+ diagnostics.havePing((result) => {
40
+ try {
41
+ assert.equal(result, true);
42
+ done();
43
+ } catch (error) {
44
+ done(error);
45
+ }
46
+ });
47
+ });
48
+
49
+ it('Support HTTP on port 80', (done) => {
50
+ diagnostics.haveHTTP((result) => {
51
+ try {
52
+ assert.equal(result, true);
53
+ done();
54
+ } catch (error) {
55
+ done(error);
56
+ }
57
+ });
58
+ });
59
+
60
+ it('Support HTTPS on port 443', (done) => {
61
+ diagnostics.haveHTTPS((result) => {
62
+ try {
63
+ assert.equal(result, true);
64
+ done();
65
+ } catch (error) {
66
+ done(error);
67
+ }
68
+ });
69
+ });
70
+
71
+ it('Support IPv4', (done) => {
72
+ diagnostics.haveIPv4Async((result) => {
73
+ try {
74
+ assert.equal(result, true);
75
+ done();
76
+ } catch (error) {
77
+ done(error);
78
+ }
79
+ });
80
+ });
81
+
82
+ it('Support IPv6', (done) => {
83
+ diagnostics.haveIPv6Async((result) => {
84
+ try {
85
+ assert.equal(result, true);
86
+ done();
87
+ } catch (error) {
88
+ done(error);
89
+ }
90
+ });
91
+ });
92
+ });
93
+ });