k2hr3-api 1.0.10 → 1.0.12

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 (121) hide show
  1. package/ChangeLog +24 -0
  2. package/app.js +7 -4
  3. package/bin/run.sh +218 -172
  4. package/bin/watcher +7 -4
  5. package/bin/www +7 -4
  6. package/config/default.json +7 -4
  7. package/config/development.json +7 -4
  8. package/config/dummyuser.json +8 -5
  9. package/config/extdata-dummy.sh.templ +12 -9
  10. package/config/k2hr3-cloud-config.txt.templ +7 -4
  11. package/config/k2hr3-init-error.sh.templ +8 -5
  12. package/config/k2hr3-init.sh.templ +127 -207
  13. package/config/keystone_v2.json +7 -4
  14. package/config/keystone_v3.json +7 -4
  15. package/lib/basicipcheck.js +7 -4
  16. package/lib/cacerts.js +7 -4
  17. package/lib/dbglogging.js +7 -4
  18. package/lib/dummyuserapi.js +7 -4
  19. package/lib/ipwatch.js +7 -4
  20. package/lib/k2hr3acrutil.js +7 -5
  21. package/lib/k2hr3apiutil.js +7 -4
  22. package/lib/k2hr3cliutil.js +7 -4
  23. package/lib/k2hr3config.js +7 -4
  24. package/lib/k2hr3cryptutil.js +7 -4
  25. package/lib/k2hr3dkc.js +7 -4
  26. package/lib/k2hr3extdata.js +7 -4
  27. package/lib/k2hr3keys.js +7 -4
  28. package/lib/k2hr3resutil.js +7 -4
  29. package/lib/k2hr3template.js +7 -4
  30. package/lib/k2hr3tokens.js +7 -4
  31. package/lib/k2hr3userdata.js +8 -5
  32. package/lib/k8soidc.js +41 -16
  33. package/lib/openstackapiv2.js +7 -4
  34. package/lib/openstackapiv3.js +7 -4
  35. package/lib/openstackep.js +7 -4
  36. package/package.json +73 -72
  37. package/routes/acr.js +7 -4
  38. package/routes/debugVerify.js +7 -4
  39. package/routes/extdata.js +7 -4
  40. package/routes/list.js +7 -4
  41. package/routes/policy.js +7 -4
  42. package/routes/resource.js +7 -4
  43. package/routes/role.js +7 -4
  44. package/routes/service.js +7 -4
  45. package/routes/userTokens.js +7 -4
  46. package/routes/userdata.js +7 -4
  47. package/routes/version.js +7 -4
  48. package/templ/Dockerfile.templ +35 -52
  49. package/{test → tests}/auto_acr.js +7 -4
  50. package/{test → tests}/auto_acr_spec.js +7 -4
  51. package/{test → tests}/auto_all_spec.js +7 -4
  52. package/{test → tests}/auto_common.js +7 -4
  53. package/tests/auto_control_subprocess.sh +239 -0
  54. package/{test → tests}/auto_extdata.js +7 -4
  55. package/{test → tests}/auto_extdata_spec.js +7 -4
  56. package/tests/auto_init_config_json.sh +275 -0
  57. package/{test → tests}/auto_k2hdkc_server.ini +7 -4
  58. package/{test → tests}/auto_k2hdkc_slave.ini +7 -4
  59. package/{test → tests}/auto_list.js +7 -4
  60. package/{test → tests}/auto_list_spec.js +7 -4
  61. package/{test → tests}/auto_policy.js +7 -4
  62. package/{test → tests}/auto_policy_spec.js +7 -4
  63. package/{test → tests}/auto_resource.js +7 -4
  64. package/{test → tests}/auto_resource_spec.js +7 -4
  65. package/{test → tests}/auto_role.js +7 -4
  66. package/{test → tests}/auto_role_spec.js +7 -4
  67. package/{test → tests}/auto_service.js +7 -4
  68. package/{test → tests}/auto_service_spec.js +7 -4
  69. package/{test → tests}/auto_subprocesses.js +14 -11
  70. package/tests/auto_template.sh +126 -0
  71. package/{test → tests}/auto_token_util.js +7 -4
  72. package/{test → tests}/auto_userdata.js +7 -4
  73. package/{test → tests}/auto_userdata_spec.js +7 -4
  74. package/{test → tests}/auto_usertokens.js +7 -4
  75. package/{test → tests}/auto_usertokens_spec.js +7 -4
  76. package/{test → tests}/auto_version.js +7 -4
  77. package/{test → tests}/auto_version_spec.js +7 -4
  78. package/{test → tests}/auto_watcher.js +7 -4
  79. package/{test → tests}/auto_watcher_spec.js +7 -4
  80. package/{test → tests}/k2hdkc_test.data +7 -4
  81. package/tests/k2hdkc_test_load.sh +255 -0
  82. package/{test → tests}/k2hr3template_test.js +7 -4
  83. package/tests/k2hr3template_test.sh +339 -0
  84. package/{test → tests}/k2hr3template_test_async.js +7 -4
  85. package/{test → tests}/k2hr3template_test_template.result +14 -8
  86. package/{test → tests}/k2hr3template_test_template.txt +7 -4
  87. package/{test → tests}/k2hr3template_test_vars.js +7 -4
  88. package/{test → tests}/manual_acr_delete.js +7 -4
  89. package/{test → tests}/manual_acr_get.js +7 -4
  90. package/{test → tests}/manual_acr_postput.js +7 -4
  91. package/{test → tests}/manual_allusertenant_get.js +7 -4
  92. package/{test → tests}/manual_extdata_get.js +7 -4
  93. package/{test → tests}/manual_k2hr3keys_get.js +7 -4
  94. package/{test → tests}/manual_list_gethead.js +7 -4
  95. package/{test → tests}/manual_policy_delete.js +7 -4
  96. package/{test → tests}/manual_policy_gethead.js +7 -4
  97. package/{test → tests}/manual_policy_postput.js +7 -4
  98. package/{test → tests}/manual_resource_delete.js +7 -4
  99. package/{test → tests}/manual_resource_gethead.js +7 -4
  100. package/{test → tests}/manual_resource_postput.js +7 -4
  101. package/{test → tests}/manual_role_delete.js +7 -4
  102. package/{test → tests}/manual_role_gethead.js +7 -4
  103. package/{test → tests}/manual_role_postput.js +7 -4
  104. package/{test → tests}/manual_service_delete.js +7 -4
  105. package/{test → tests}/manual_service_gethead.js +7 -4
  106. package/{test → tests}/manual_service_postput.js +7 -4
  107. package/tests/manual_test.sh +338 -0
  108. package/{test → tests}/manual_userdata_get.js +7 -4
  109. package/{test → tests}/manual_usertoken_gethead.js +7 -4
  110. package/{test → tests}/manual_usertoken_postput.js +7 -4
  111. package/{test → tests}/manual_version_get.js +7 -4
  112. package/tests/run_local_test_k2hdkc.sh +174 -0
  113. package/tests/test.sh +331 -0
  114. package/test/auto_control_subprocess.sh +0 -170
  115. package/test/auto_init_config_json.sh +0 -246
  116. package/test/auto_template.sh +0 -127
  117. package/test/auto_test.sh +0 -321
  118. package/test/k2hdkc_test_load.sh +0 -198
  119. package/test/k2hr3template_test.sh +0 -296
  120. package/test/manual_test.sh +0 -321
  121. package/test/run_local_test_k2hdkc.sh +0 -154
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -1570,7 +1570,10 @@ describe('API : POLICY', function(){ // eslint-disable-line no-undef
1570
1570
  });
1571
1571
 
1572
1572
  /*
1573
- * VIM modelines
1574
- *
1575
- * vim:set ts=4 fenc=utf-8:
1573
+ * Local variables:
1574
+ * tab-width: 4
1575
+ * c-basic-offset: 4
1576
+ * End:
1577
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
1578
+ * vim<600: noexpandtab sw=4 ts=4
1576
1579
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -70,7 +70,10 @@ describe('SUB API TEST: POLICY', function(){ // eslint-disable-line no-undef
70
70
  });
71
71
 
72
72
  /*
73
- * VIM modelines
74
- *
75
- * vim:set ts=4 fenc=utf-8:
73
+ * Local variables:
74
+ * tab-width: 4
75
+ * c-basic-offset: 4
76
+ * End:
77
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
78
+ * vim<600: noexpandtab sw=4 ts=4
76
79
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -11008,7 +11008,10 @@ describe('API : RESOURCE', function(){ // eslint-disable-line no-undef
11008
11008
  });
11009
11009
 
11010
11010
  /*
11011
- * VIM modelines
11012
- *
11013
- * vim:set ts=4 fenc=utf-8:
11011
+ * Local variables:
11012
+ * tab-width: 4
11013
+ * c-basic-offset: 4
11014
+ * End:
11015
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
11016
+ * vim<600: noexpandtab sw=4 ts=4
11014
11017
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -70,7 +70,10 @@ describe('SUB API TEST: RESOURCE', function(){ // eslint-disable-line no-undef
70
70
  });
71
71
 
72
72
  /*
73
- * VIM modelines
74
- *
75
- * vim:set ts=4 fenc=utf-8:
73
+ * Local variables:
74
+ * tab-width: 4
75
+ * c-basic-offset: 4
76
+ * End:
77
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
78
+ * vim<600: noexpandtab sw=4 ts=4
76
79
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -6157,7 +6157,10 @@ describe('API : ROLE', function(){ // eslint-disable-line no-undef
6157
6157
  });
6158
6158
 
6159
6159
  /*
6160
- * VIM modelines
6161
- *
6162
- * vim:set ts=4 fenc=utf-8:
6160
+ * Local variables:
6161
+ * tab-width: 4
6162
+ * c-basic-offset: 4
6163
+ * End:
6164
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
6165
+ * vim<600: noexpandtab sw=4 ts=4
6163
6166
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -70,7 +70,10 @@ describe('SUB API TEST: ROLE', function(){ // eslint-disable-line no-undef
70
70
  });
71
71
 
72
72
  /*
73
- * VIM modelines
74
- *
75
- * vim:set ts=4 fenc=utf-8:
73
+ * Local variables:
74
+ * tab-width: 4
75
+ * c-basic-offset: 4
76
+ * End:
77
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
78
+ * vim<600: noexpandtab sw=4 ts=4
76
79
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -761,7 +761,10 @@ describe('API : SERVICE', function(){ // eslint-disable-line no-undef
761
761
  });
762
762
 
763
763
  /*
764
- * VIM modelines
765
- *
766
- * vim:set ts=4 fenc=utf-8:
764
+ * Local variables:
765
+ * tab-width: 4
766
+ * c-basic-offset: 4
767
+ * End:
768
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
769
+ * vim<600: noexpandtab sw=4 ts=4
767
770
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -70,7 +70,10 @@ describe('SUB API TEST: SERVICE', function(){ // eslint-disable-line no-undef
70
70
  });
71
71
 
72
72
  /*
73
- * VIM modelines
74
- *
75
- * vim:set ts=4 fenc=utf-8:
73
+ * Local variables:
74
+ * tab-width: 4
75
+ * c-basic-offset: 4
76
+ * End:
77
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
78
+ * vim<600: noexpandtab sw=4 ts=4
76
79
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -40,25 +40,25 @@ exports.start = function(parentobj)
40
40
  //
41
41
  // Run chmpx for server node
42
42
  //
43
- var result = execSync('test/auto_control_subprocess.sh -start -key server -int 3 chmpx -conf test/auto_k2hdkc_server.ini -ctlport 18021 -d msg');
43
+ var result = execSync('tests/auto_control_subprocess.sh --start --key server --interval 3 -- chmpx -conf tests/auto_k2hdkc_server.ini -ctlport 18021 -d msg');
44
44
  console.log(' - run chmpx for server node: ' + String(result).replace(/\r?\n$/g, ''));
45
45
 
46
46
  //
47
47
  // Run k2hdkc
48
48
  //
49
- result = execSync('test/auto_control_subprocess.sh -start -key server -int 3 k2hdkc -conf test/auto_k2hdkc_server.ini -ctlport 18021 -d msg');
49
+ result = execSync('tests/auto_control_subprocess.sh --start --key server --interval 3 -- k2hdkc -conf tests/auto_k2hdkc_server.ini -ctlport 18021 -d msg');
50
50
  console.log(' - run k2hdkc: ' + String(result).replace(/\r?\n$/g, ''));
51
51
 
52
52
  //
53
53
  // Run chmpx for slave node
54
54
  //
55
- result = execSync('test/auto_control_subprocess.sh -start -key slave -int 3 chmpx -conf test/auto_k2hdkc_slave.ini -ctlport 18031 -d msg');
55
+ result = execSync('tests/auto_control_subprocess.sh --start --key slave --interval 3 -- chmpx -conf tests/auto_k2hdkc_slave.ini -ctlport 18031 -d msg');
56
56
  console.log(' - run chmpx for slave node: ' + String(result).replace(/\r?\n$/g, ''));
57
57
 
58
58
  //
59
59
  // Load default test data to k2hdkc
60
60
  //
61
- result = execSync('test/k2hdkc_test_load.sh --for_auto_test');
61
+ result = execSync('tests/k2hdkc_test_load.sh --for_auto_test');
62
62
  console.log(' - loaded test data : ' + String(result));
63
63
  console.log('');
64
64
 
@@ -83,19 +83,19 @@ exports.stop = function(parentobj)
83
83
  //
84
84
  // Stop chmpx for slave node
85
85
  //
86
- var result = execSync('test/auto_control_subprocess.sh -stop -key slave -int 3 chmpx');
86
+ var result = execSync('tests/auto_control_subprocess.sh --stop --key slave --interval 3 -- chmpx');
87
87
  console.log(' - stop chmpx for slave node: ' + String(result).replace(/\r?\n$/g, ''));
88
88
 
89
89
  //
90
90
  // Stop k2hdkc
91
91
  //
92
- result = execSync('test/auto_control_subprocess.sh -stop -key server -int 3 k2hdkc');
92
+ result = execSync('tests/auto_control_subprocess.sh --stop --key server --interval 3 -- k2hdkc');
93
93
  console.log(' - stop k2hdkc: ' + String(result).replace(/\r?\n$/g, ''));
94
94
 
95
95
  //
96
96
  // Stop chmpx for slave node
97
97
  //
98
- result = execSync('test/auto_control_subprocess.sh -stop -key server -int 3 chmpx');
98
+ result = execSync('tests/auto_control_subprocess.sh --stop --key server --interval 3 -- chmpx');
99
99
  console.log(' - stop chmpx for server node: ' + String(result).replace(/\r?\n$/g, ''));
100
100
 
101
101
  //
@@ -105,7 +105,10 @@ exports.stop = function(parentobj)
105
105
  };
106
106
 
107
107
  /*
108
- * VIM modelines
109
- *
110
- * vim:set ts=4 fenc=utf-8:
108
+ * Local variables:
109
+ * tab-width: 4
110
+ * c-basic-offset: 4
111
+ * End:
112
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
113
+ * vim<600: noexpandtab sw=4 ts=4
111
114
  */
@@ -0,0 +1,126 @@
1
+ #!/bin/sh
2
+ #
3
+ # K2HR3 REST API
4
+ #
5
+ # Copyright 2017 Yahoo Japan Corporation.
6
+ #
7
+ # K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
8
+ # common management information for the cloud.
9
+ # K2HR3 can dynamically manage information as "who", "what", "operate".
10
+ # These are stored as roles, resources, policies in K2hdkc, and the
11
+ # client system can dynamically read and modify these information.
12
+ #
13
+ # For the full copyright and license information, please view
14
+ # the license file that was distributed with this source code.
15
+ #
16
+ # AUTHOR: Takeshi Nakatani
17
+ # CREATE: Wed Jan 17 2018
18
+ # REVISION:
19
+ #
20
+
21
+ #==========================================================
22
+ # Common Variables
23
+ #==========================================================
24
+ PRGNAME=$(basename "$0")
25
+ SCRIPTDIR=$(dirname "$0")
26
+ SCRIPTDIR=$(cd "${SCRIPTDIR}" || exit 1; pwd)
27
+ SRCTOP=$(cd "${SCRIPTDIR}/.." || exit 1; pwd)
28
+
29
+ #
30
+ # Variables
31
+ #
32
+ TEST_PROGRAM="${SRCTOP}/tests/k2hr3template_test.sh"
33
+ VARS_FILE="${SRCTOP}/tests/k2hr3template_test_vars.js"
34
+ TEMPL_FILE="${SRCTOP}/tests/k2hr3template_test_template.txt"
35
+ SUCCESS_FILE="${SRCTOP}/tests/k2hr3template_test_template.result"
36
+ EXPANDED_FILE="/tmp/k2hr3template_test_template.result"
37
+
38
+ #==============================================================
39
+ # Utility functions
40
+ #==============================================================
41
+ #
42
+ # Usage
43
+ #
44
+ PrintUsage()
45
+ {
46
+ echo ""
47
+ echo "Usage: $1 [--debuglevel(-d) DBG/MSG/WARN/ERR/(custom debug level)] [--async(-a)]"
48
+ echo ""
49
+ }
50
+
51
+ #==========================================================
52
+ # Parse options
53
+ #==========================================================
54
+ DEBUG_OPTION=""
55
+ DEBUG_ENV_DBG=0
56
+ ASYNC_OPTION=""
57
+
58
+ while [ $# -ne 0 ]; do
59
+ if [ -z "$1" ]; then
60
+ break
61
+
62
+ elif [ "$1" = "-h" ] || [ "$1" = "-H" ] || [ "$1" = "--help" ] || [ "$1" = "--HELP" ]; then
63
+ PrintUsage "${PRGNAME}"
64
+ exit 0
65
+
66
+ elif [ "$1" = "-d" ] || [ "$1" = "-D" ] || [ "$1" = "--debuglevel" ] || [ "$1" = "--DEBUGLEVEL" ]; then
67
+ if [ -n "${DEBUG_OPTION}" ]; then
68
+ echo "[ERROR] already specified --debuglevel(-d) option"
69
+ exit 1
70
+ fi
71
+ shift
72
+ if [ $# -eq 0 ]; then
73
+ echo "[ERROR] --debuglevel(-d) option needs parameter(dbg/msg/warn/err)"
74
+ exit 1
75
+ fi
76
+
77
+ if [ "$1" = "dbg" ] || [ "$1" = "DBG" ] || [ "$1" = "debug" ] || [ "$1" = "DEBUG" ]; then
78
+ DEBUG_ENV_DBG=1
79
+ fi
80
+ DEBUG_OPTION="-d $1"
81
+
82
+ elif [ "$1" = "-a" ] || [ "$1" = "-A" ] || [ "$1" = "--async" ] || [ "$1" = "--ASYNC" ]; then
83
+ if [ -n "${ASYNC_OPTION}" ]; then
84
+ echo "[ERROR] already specified --async(-a) option"
85
+ exit 1
86
+ fi
87
+ ASYNC_OPTION="--async"
88
+
89
+ else
90
+ echo "[ERROR] Unknown option $1"
91
+ exit 1
92
+ fi
93
+ shift
94
+ done
95
+
96
+ #==========================================================
97
+ # Do work
98
+ #==========================================================
99
+ if [ "${DEBUG_ENV_DBG}" -eq 1 ]; then
100
+ echo "[DEBUG] Run(execute template engine)"
101
+ echo " ${TEST_PROGRAM} -v ${VARS_FILE} -t ${TEMPL_FILE} ${ASYNC_OPTION} > ${EXPANDED_FILE}"
102
+ echo ""
103
+ fi
104
+ if ! /bin/sh -c "${TEST_PROGRAM} -v ${VARS_FILE} -t ${TEMPL_FILE} ${DEBUG_OPTION} ${ASYNC_OPTION} > ${EXPANDED_FILE}"; then
105
+ exit 1
106
+ fi
107
+
108
+ if [ "${DEBUG_ENV_DBG}" -eq 1 ]; then
109
+ echo "[DEBUG] Run(compare result)"
110
+ echo " diff ${EXPANDED_FILE} ${SUCCESS_FILE}"
111
+ echo ""
112
+ fi
113
+ if ! diff "${EXPANDED_FILE}" "${SUCCESS_FILE}"; then
114
+ exit 1
115
+ fi
116
+
117
+ exit 0
118
+
119
+ #
120
+ # Local variables:
121
+ # tab-width: 4
122
+ # c-basic-offset: 4
123
+ # End:
124
+ # vim600: noexpandtab sw=4 ts=4 fdm=marker
125
+ # vim<600: noexpandtab sw=4 ts=4
126
+ #
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -210,7 +210,10 @@ exports.before = function(parentobj, alltoken, done)
210
210
  };
211
211
 
212
212
  /*
213
- * VIM modelines
214
- *
215
- * vim:set ts=4 fenc=utf-8:
213
+ * Local variables:
214
+ * tab-width: 4
215
+ * c-basic-offset: 4
216
+ * End:
217
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
218
+ * vim<600: noexpandtab sw=4 ts=4
216
219
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -280,7 +280,10 @@ describe('API : USERDATA', function(){ // eslint-disable-line no-undef
280
280
  });
281
281
 
282
282
  /*
283
- * VIM modelines
284
- *
285
- * vim:set ts=4 fenc=utf-8:
283
+ * Local variables:
284
+ * tab-width: 4
285
+ * c-basic-offset: 4
286
+ * End:
287
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
288
+ * vim<600: noexpandtab sw=4 ts=4
286
289
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -70,7 +70,10 @@ describe('SUB API TEST: USERDATA', function(){ // eslint-disable-line no-undef
70
70
  });
71
71
 
72
72
  /*
73
- * VIM modelines
74
- *
75
- * vim:set ts=4 fenc=utf-8:
73
+ * Local variables:
74
+ * tab-width: 4
75
+ * c-basic-offset: 4
76
+ * End:
77
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
78
+ * vim<600: noexpandtab sw=4 ts=4
76
79
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -556,7 +556,10 @@ describe('API : USER TOKEN', function(){ // eslint-disable-line no-undef
556
556
  });
557
557
 
558
558
  /*
559
- * VIM modelines
560
- *
561
- * vim:set ts=4 fenc=utf-8:
559
+ * Local variables:
560
+ * tab-width: 4
561
+ * c-basic-offset: 4
562
+ * End:
563
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
564
+ * vim<600: noexpandtab sw=4 ts=4
562
565
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -70,7 +70,10 @@ describe('SUB API TEST: USER TOKEN', function(){ // eslint-disable-line no-unde
70
70
  });
71
71
 
72
72
  /*
73
- * VIM modelines
74
- *
75
- * vim:set ts=4 fenc=utf-8:
73
+ * Local variables:
74
+ * tab-width: 4
75
+ * c-basic-offset: 4
76
+ * End:
77
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
78
+ * vim<600: noexpandtab sw=4 ts=4
76
79
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -102,7 +102,10 @@ describe('API : VERSION', function(){ // eslint-disable-line no-undef
102
102
  });
103
103
 
104
104
  /*
105
- * VIM modelines
106
- *
107
- * vim:set ts=4 fenc=utf-8:
105
+ * Local variables:
106
+ * tab-width: 4
107
+ * c-basic-offset: 4
108
+ * End:
109
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
110
+ * vim<600: noexpandtab sw=4 ts=4
108
111
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -70,7 +70,10 @@ describe('SUB API TEST: VERSION', function(){ // eslint-disable-line no-undef
70
70
  });
71
71
 
72
72
  /*
73
- * VIM modelines
74
- *
75
- * vim:set ts=4 fenc=utf-8:
73
+ * Local variables:
74
+ * tab-width: 4
75
+ * c-basic-offset: 4
76
+ * End:
77
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
78
+ * vim<600: noexpandtab sw=4 ts=4
76
79
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -148,7 +148,10 @@ describe('PROCESS : WATHCER', function(){ // eslint-disable-line no-undef
148
148
  });
149
149
 
150
150
  /*
151
- * VIM modelines
152
- *
153
- * vim:set ts=4 fenc=utf-8:
151
+ * Local variables:
152
+ * tab-width: 4
153
+ * c-basic-offset: 4
154
+ * End:
155
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
156
+ * vim<600: noexpandtab sw=4 ts=4
154
157
  */
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * K2HR3 REST API
3
3
  *
4
- * Copyright 2017 Yahoo! Japan Corporation.
4
+ * Copyright 2017 Yahoo Japan Corporation.
5
5
  *
6
6
  * K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  * common management information for the cloud.
@@ -70,7 +70,10 @@ describe('SUB PROCESS TEST: WATCHER', function(){ // eslint-disable-line no-und
70
70
  });
71
71
 
72
72
  /*
73
- * VIM modelines
74
- *
75
- * vim:set ts=4 fenc=utf-8:
73
+ * Local variables:
74
+ * tab-width: 4
75
+ * c-basic-offset: 4
76
+ * End:
77
+ * vim600: noexpandtab sw=4 ts=4 fdm=marker
78
+ * vim<600: noexpandtab sw=4 ts=4
76
79
  */
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # K2HR3 REST API
3
3
  #
4
- # Copyright 2017 Yahoo! Japan Corporation.
4
+ # Copyright 2017 Yahoo Japan Corporation.
5
5
  #
6
6
  # K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
7
7
  # common management information for the cloud.
@@ -977,7 +977,10 @@ exit
977
977
  # END OF COMMAND
978
978
  ################################################################
979
979
  #
980
- # VIM modelines
981
- #
982
- # vim:set ts=4 fenc=utf-8:
980
+ # Local variables:
981
+ # tab-width: 4
982
+ # c-basic-offset: 4
983
+ # End:
984
+ # vim600: noexpandtab sw=4 ts=4 fdm=marker
985
+ # vim<600: noexpandtab sw=4 ts=4
983
986
  #