k2hr3-api 1.0.41 → 2.0.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.
- package/config/k2hr3-init.sh.templ +2 -2
- package/dist/.gitkeep +0 -0
- package/dist/src/app.js +262 -0
- package/{bin → dist/src/bin}/run.sh +1 -1
- package/dist/src/bin/watcher.js +113 -0
- package/dist/src/bin/www.js +217 -0
- package/dist/src/lib/basicipcheck.js +392 -0
- package/dist/src/lib/cacerts.js +106 -0
- package/dist/src/lib/dbglogging.js +190 -0
- package/dist/src/lib/dummyuserapi.js +719 -0
- package/dist/src/lib/ipwatch.js +354 -0
- package/dist/src/lib/k2hr3acrutil.js +532 -0
- package/dist/src/lib/k2hr3apiutil.js +1444 -0
- package/dist/src/lib/k2hr3cliutil.js +183 -0
- package/dist/src/lib/k2hr3config.js +832 -0
- package/dist/src/lib/k2hr3cryptutil.js +258 -0
- package/dist/src/lib/k2hr3dkc.js +12121 -0
- package/dist/src/lib/k2hr3extdata.js +198 -0
- package/dist/src/lib/k2hr3keys.js +207 -0
- package/dist/src/lib/k2hr3resutil.js +111 -0
- package/dist/src/lib/k2hr3template.js +6546 -0
- package/dist/src/lib/k2hr3tokens.js +2643 -0
- package/dist/src/lib/k2hr3userdata.js +296 -0
- package/dist/src/lib/k8soidc.js +1000 -0
- package/dist/src/lib/openstackapiv2.js +695 -0
- package/dist/src/lib/openstackapiv3.js +932 -0
- package/dist/src/lib/openstackep.js +667 -0
- package/{tests/auto_common.js → dist/src/lib/types.js} +4 -38
- package/dist/src/routes/acr.js +704 -0
- package/dist/src/routes/debugVerify.js +294 -0
- package/dist/src/routes/extdata.js +219 -0
- package/dist/src/routes/list.js +264 -0
- package/dist/src/routes/policy.js +840 -0
- package/dist/src/routes/resource.js +1489 -0
- package/dist/src/routes/role.js +2627 -0
- package/dist/src/routes/service.js +908 -0
- package/dist/src/routes/tenant.js +1141 -0
- package/dist/src/routes/userTokens.js +482 -0
- package/dist/src/routes/userdata.js +212 -0
- package/dist/src/routes/version.js +103 -0
- package/package.json +152 -121
- package/ChangeLog +0 -372
- package/app.js +0 -292
- package/bin/watcher +0 -122
- package/bin/www +0 -180
- package/eslint.config.mjs +0 -68
- package/lib/basicipcheck.js +0 -376
- package/lib/cacerts.js +0 -71
- package/lib/dbglogging.js +0 -151
- package/lib/dummyuserapi.js +0 -766
- package/lib/ipwatch.js +0 -379
- package/lib/k2hr3acrutil.js +0 -516
- package/lib/k2hr3apiutil.js +0 -1494
- package/lib/k2hr3cliutil.js +0 -191
- package/lib/k2hr3config.js +0 -826
- package/lib/k2hr3cryptutil.js +0 -254
- package/lib/k2hr3dkc.js +0 -12632
- package/lib/k2hr3extdata.js +0 -198
- package/lib/k2hr3keys.js +0 -234
- package/lib/k2hr3resutil.js +0 -100
- package/lib/k2hr3template.js +0 -6925
- package/lib/k2hr3tokens.js +0 -2799
- package/lib/k2hr3userdata.js +0 -312
- package/lib/k8soidc.js +0 -1012
- package/lib/openstackapiv2.js +0 -764
- package/lib/openstackapiv3.js +0 -1032
- package/lib/openstackep.js +0 -553
- package/routes/acr.js +0 -738
- package/routes/debugVerify.js +0 -263
- package/routes/extdata.js +0 -232
- package/routes/list.js +0 -270
- package/routes/policy.js +0 -869
- package/routes/resource.js +0 -1441
- package/routes/role.js +0 -2664
- package/routes/service.js +0 -894
- package/routes/tenant.js +0 -1095
- package/routes/userTokens.js +0 -511
- package/routes/userdata.js +0 -218
- package/routes/version.js +0 -108
- package/templ/Dockerfile.templ +0 -71
- package/tests/auto_acr.js +0 -1101
- package/tests/auto_acr_spec.js +0 -79
- package/tests/auto_all_spec.js +0 -142
- package/tests/auto_control_subprocess.sh +0 -243
- package/tests/auto_extdata.js +0 -220
- package/tests/auto_extdata_spec.js +0 -79
- package/tests/auto_init_config_json.sh +0 -275
- package/tests/auto_k2hdkc_server.ini +0 -109
- package/tests/auto_k2hdkc_slave.ini +0 -83
- package/tests/auto_list.js +0 -439
- package/tests/auto_list_spec.js +0 -79
- package/tests/auto_policy.js +0 -1579
- package/tests/auto_policy_spec.js +0 -79
- package/tests/auto_resource.js +0 -10956
- package/tests/auto_resource_spec.js +0 -79
- package/tests/auto_role.js +0 -6150
- package/tests/auto_role_spec.js +0 -79
- package/tests/auto_service.js +0 -770
- package/tests/auto_service_spec.js +0 -79
- package/tests/auto_subprocesses.js +0 -114
- package/tests/auto_template.sh +0 -126
- package/tests/auto_tenant.js +0 -1100
- package/tests/auto_tenant_spec.js +0 -79
- package/tests/auto_token_util.js +0 -219
- package/tests/auto_userdata.js +0 -292
- package/tests/auto_userdata_spec.js +0 -79
- package/tests/auto_usertokens.js +0 -565
- package/tests/auto_usertokens_spec.js +0 -79
- package/tests/auto_version.js +0 -127
- package/tests/auto_version_spec.js +0 -79
- package/tests/auto_watcher.js +0 -157
- package/tests/auto_watcher_spec.js +0 -79
- package/tests/k2hdkc_test.data +0 -986
- package/tests/k2hdkc_test_load.sh +0 -255
- package/tests/k2hr3template_test.js +0 -187
- package/tests/k2hr3template_test.sh +0 -339
- package/tests/k2hr3template_test_async.js +0 -216
- package/tests/k2hr3template_test_template.result +0 -7117
- package/tests/k2hr3template_test_template.txt +0 -3608
- package/tests/k2hr3template_test_vars.js +0 -194
- package/tests/manual_acr_delete.js +0 -143
- package/tests/manual_acr_get.js +0 -297
- package/tests/manual_acr_postput.js +0 -215
- package/tests/manual_allusertenant_get.js +0 -113
- package/tests/manual_extdata_get.js +0 -191
- package/tests/manual_k2hr3keys_get.js +0 -84
- package/tests/manual_list_gethead.js +0 -230
- package/tests/manual_policy_delete.js +0 -132
- package/tests/manual_policy_gethead.js +0 -275
- package/tests/manual_policy_postput.js +0 -297
- package/tests/manual_resource_delete.js +0 -433
- package/tests/manual_resource_gethead.js +0 -423
- package/tests/manual_resource_postput.js +0 -487
- package/tests/manual_role_delete.js +0 -404
- package/tests/manual_role_gethead.js +0 -547
- package/tests/manual_role_postput.js +0 -544
- package/tests/manual_service_delete.js +0 -153
- package/tests/manual_service_gethead.js +0 -178
- package/tests/manual_service_postput.js +0 -348
- package/tests/manual_tenant_delete.js +0 -186
- package/tests/manual_tenant_gethead.js +0 -268
- package/tests/manual_tenant_postput.js +0 -293
- package/tests/manual_test.sh +0 -352
- package/tests/manual_userdata_get.js +0 -173
- package/tests/manual_usertoken_gethead.js +0 -136
- package/tests/manual_usertoken_postput.js +0 -310
- package/tests/manual_version_get.js +0 -127
- package/tests/run_local_test_k2hdkc.sh +0 -174
- package/tests/test.sh +0 -333
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* K2HR3 REST API
|
|
3
|
-
*
|
|
4
|
-
* Copyright 2017 Yahoo Japan Corporation.
|
|
5
|
-
*
|
|
6
|
-
* K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
|
|
7
|
-
* common management information for the cloud.
|
|
8
|
-
* K2HR3 can dynamically manage information as "who", "what", "operate".
|
|
9
|
-
* These are stored as roles, resources, policies in K2hdkc, and the
|
|
10
|
-
* client system can dynamically read and modify these information.
|
|
11
|
-
*
|
|
12
|
-
* For the full copyright and license information, please view
|
|
13
|
-
* the license file that was distributed with this source code.
|
|
14
|
-
*
|
|
15
|
-
* AUTHOR: Takeshi Nakatani
|
|
16
|
-
* CREATE: Tue Dec 19 2017
|
|
17
|
-
* REVISION:
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
'use strict';
|
|
22
|
-
|
|
23
|
-
var common = require('./auto_common'); // Common objects for Chai
|
|
24
|
-
var chai = common.chai; // eslint-disable-line no-unused-vars
|
|
25
|
-
var chaiHttp = common.chaiHttp; // eslint-disable-line no-unused-vars
|
|
26
|
-
var app = common.app; // eslint-disable-line no-unused-vars
|
|
27
|
-
var assert = common.assert; // eslint-disable-line no-unused-vars
|
|
28
|
-
var expect = common.expect; // eslint-disable-line no-unused-vars
|
|
29
|
-
var subproc = require('./auto_subprocesses');
|
|
30
|
-
|
|
31
|
-
//--------------------------------------------------------------
|
|
32
|
-
// Before in global section
|
|
33
|
-
//--------------------------------------------------------------
|
|
34
|
-
before(function(){ // eslint-disable-line no-undef
|
|
35
|
-
//
|
|
36
|
-
// Start all sub processes
|
|
37
|
-
//
|
|
38
|
-
subproc.start(this);
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
//--------------------------------------------------------------
|
|
42
|
-
// After in global section
|
|
43
|
-
//--------------------------------------------------------------
|
|
44
|
-
after(function(){ // eslint-disable-line no-undef
|
|
45
|
-
//
|
|
46
|
-
// Stop all sub processes
|
|
47
|
-
//
|
|
48
|
-
subproc.stop(this);
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
//--------------------------------------------------------------
|
|
52
|
-
// BeforeEach in global section
|
|
53
|
-
//--------------------------------------------------------------
|
|
54
|
-
beforeEach(function(){ // eslint-disable-line no-undef
|
|
55
|
-
// Nothing to do
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
//--------------------------------------------------------------
|
|
59
|
-
// AfterEach in global section
|
|
60
|
-
//--------------------------------------------------------------
|
|
61
|
-
afterEach(function(){ // eslint-disable-line no-undef
|
|
62
|
-
// Nothing to do
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
//--------------------------------------------------------------
|
|
66
|
-
// Sub describe section
|
|
67
|
-
//--------------------------------------------------------------
|
|
68
|
-
describe('SUB API TEST: SERVICE', function(){ // eslint-disable-line no-undef
|
|
69
|
-
require('./auto_service');
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
/*
|
|
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
|
|
79
|
-
*/
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* K2HR3 REST API
|
|
3
|
-
*
|
|
4
|
-
* Copyright 2017 Yahoo Japan Corporation.
|
|
5
|
-
*
|
|
6
|
-
* K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
|
|
7
|
-
* common management information for the cloud.
|
|
8
|
-
* K2HR3 can dynamically manage information as "who", "what", "operate".
|
|
9
|
-
* These are stored as roles, resources, policies in K2hdkc, and the
|
|
10
|
-
* client system can dynamically read and modify these information.
|
|
11
|
-
*
|
|
12
|
-
* For the full copyright and license information, please view
|
|
13
|
-
* the license file that was distributed with this source code.
|
|
14
|
-
*
|
|
15
|
-
* AUTHOR: Takeshi Nakatani
|
|
16
|
-
* CREATE: Tue Dec 19 2017
|
|
17
|
-
* REVISION:
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
'use strict';
|
|
22
|
-
|
|
23
|
-
//
|
|
24
|
-
// Common Start/Stop sub-processes for before/after in mocha
|
|
25
|
-
//
|
|
26
|
-
var execSync = require('child_process').execSync; // For before section to launching sub processes
|
|
27
|
-
|
|
28
|
-
//
|
|
29
|
-
// Before : Start all sub processes
|
|
30
|
-
//
|
|
31
|
-
exports.start = function(parentobj)
|
|
32
|
-
{
|
|
33
|
-
console.log(' START TEST K2HDKC:');
|
|
34
|
-
|
|
35
|
-
//
|
|
36
|
-
// Change timeout for running sub-processes
|
|
37
|
-
//
|
|
38
|
-
var orgTimeout = parentobj.timeout(10000);
|
|
39
|
-
|
|
40
|
-
//
|
|
41
|
-
// Run chmpx for server node
|
|
42
|
-
//
|
|
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
|
-
console.log(' - run chmpx for server node: ' + String(result).replace(/\r?\n$/g, ''));
|
|
45
|
-
|
|
46
|
-
//
|
|
47
|
-
// Run k2hdkc
|
|
48
|
-
//
|
|
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
|
-
console.log(' - run k2hdkc: ' + String(result).replace(/\r?\n$/g, ''));
|
|
51
|
-
|
|
52
|
-
//
|
|
53
|
-
// Run chmpx for slave node
|
|
54
|
-
//
|
|
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
|
-
console.log(' - run chmpx for slave node: ' + String(result).replace(/\r?\n$/g, ''));
|
|
57
|
-
|
|
58
|
-
//
|
|
59
|
-
// Load default test data to k2hdkc
|
|
60
|
-
//
|
|
61
|
-
result = execSync('tests/k2hdkc_test_load.sh --for_auto_test');
|
|
62
|
-
console.log(' - loaded test data : ' + String(result));
|
|
63
|
-
console.log('');
|
|
64
|
-
|
|
65
|
-
//
|
|
66
|
-
// Reset timeout
|
|
67
|
-
//
|
|
68
|
-
parentobj.timeout(orgTimeout);
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
//
|
|
72
|
-
// After : Stop all sub processes
|
|
73
|
-
//
|
|
74
|
-
exports.stop = function(parentobj)
|
|
75
|
-
{
|
|
76
|
-
console.log(' STOP TEST K2HDKC:');
|
|
77
|
-
|
|
78
|
-
//
|
|
79
|
-
// Change timeout for running sub-processes
|
|
80
|
-
//
|
|
81
|
-
var orgTimeout = parentobj.timeout(10000);
|
|
82
|
-
|
|
83
|
-
//
|
|
84
|
-
// Stop chmpx for slave node
|
|
85
|
-
//
|
|
86
|
-
var result = execSync('tests/auto_control_subprocess.sh --stop --key slave --interval 3 -- chmpx');
|
|
87
|
-
console.log(' - stop chmpx for slave node: ' + String(result).replace(/\r?\n$/g, ''));
|
|
88
|
-
|
|
89
|
-
//
|
|
90
|
-
// Stop k2hdkc
|
|
91
|
-
//
|
|
92
|
-
result = execSync('tests/auto_control_subprocess.sh --stop --key server --interval 3 -- k2hdkc');
|
|
93
|
-
console.log(' - stop k2hdkc: ' + String(result).replace(/\r?\n$/g, ''));
|
|
94
|
-
|
|
95
|
-
//
|
|
96
|
-
// Stop chmpx for slave node
|
|
97
|
-
//
|
|
98
|
-
result = execSync('tests/auto_control_subprocess.sh --stop --key server --interval 3 -- chmpx');
|
|
99
|
-
console.log(' - stop chmpx for server node: ' + String(result).replace(/\r?\n$/g, ''));
|
|
100
|
-
|
|
101
|
-
//
|
|
102
|
-
// Reset timeout
|
|
103
|
-
//
|
|
104
|
-
parentobj.timeout(orgTimeout);
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
/*
|
|
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
|
|
114
|
-
*/
|
package/tests/auto_template.sh
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
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 echo "$1" | grep -q -i -e "^-h$" -e "^--help$"; then
|
|
63
|
-
PrintUsage "${PRGNAME}"
|
|
64
|
-
exit 0
|
|
65
|
-
|
|
66
|
-
elif echo "$1" | grep -q -i -e "^-d$" -e "^--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 echo "$1" | grep -q -i -e "^dbg$" -e "^debug$"; then
|
|
78
|
-
DEBUG_ENV_DBG=1
|
|
79
|
-
fi
|
|
80
|
-
DEBUG_OPTION="-d $1"
|
|
81
|
-
|
|
82
|
-
elif echo "$1" | grep -q -i -e "^-a$" -e "^--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
|
-
#
|