k2hr3-api 1.0.23 → 1.0.25
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 +12 -0
- package/app.js +63 -30
- package/bin/run.sh +14 -0
- package/config/default.json +3 -2
- package/lib/k2hr3config.js +12 -0
- package/lib/k2hr3dkc.js +903 -13
- package/lib/k2hr3keys.js +1 -0
- package/lib/k2hr3tokens.js +53 -0
- package/package.json +11 -6
- package/routes/tenant.js +1014 -0
- package/tests/auto_all_spec.js +4 -0
- package/tests/auto_extdata.js +2 -0
- package/tests/auto_tenant.js +989 -0
- package/tests/auto_tenant_spec.js +79 -0
- package/tests/auto_userdata.js +15 -12
- package/tests/manual_acr_delete.js +1 -0
- package/tests/manual_acr_get.js +1 -0
- package/tests/manual_acr_postput.js +1 -0
- package/tests/manual_allusertenant_get.js +58 -3
- package/tests/manual_extdata_get.js +1 -0
- package/tests/manual_list_gethead.js +1 -0
- package/tests/manual_policy_delete.js +1 -0
- package/tests/manual_policy_gethead.js +3 -1
- package/tests/manual_policy_postput.js +1 -0
- package/tests/manual_resource_delete.js +1 -0
- package/tests/manual_resource_gethead.js +1 -0
- package/tests/manual_resource_postput.js +1 -0
- package/tests/manual_role_delete.js +2 -0
- package/tests/manual_role_gethead.js +4 -0
- package/tests/manual_role_postput.js +2 -0
- package/tests/manual_service_delete.js +1 -0
- package/tests/manual_service_gethead.js +1 -0
- package/tests/manual_service_postput.js +1 -0
- package/tests/manual_tenant_delete.js +152 -0
- package/tests/manual_tenant_gethead.js +268 -0
- package/tests/manual_tenant_postput.js +293 -0
- package/tests/manual_test.sh +21 -7
- package/tests/manual_userdata_get.js +1 -0
- package/tests/manual_usertoken_gethead.js +1 -0
- package/tests/manual_usertoken_postput.js +1 -0
- package/tests/manual_version_get.js +1 -0
- package/tests/test.sh +2 -0
package/tests/auto_all_spec.js
CHANGED
|
@@ -107,6 +107,10 @@ describe('ALL K2HR3 API TEST', function(){ // eslint-disable-line no-undef
|
|
|
107
107
|
require('./auto_role');
|
|
108
108
|
});
|
|
109
109
|
|
|
110
|
+
describe('SUB API TEST: TENANT', function(){ // eslint-disable-line no-undef
|
|
111
|
+
require('./auto_tenant');
|
|
112
|
+
});
|
|
113
|
+
|
|
110
114
|
describe('SUB API TEST: ACR', function(){ // eslint-disable-line no-undef
|
|
111
115
|
require('./auto_acr');
|
|
112
116
|
});
|
package/tests/auto_extdata.js
CHANGED
|
@@ -174,6 +174,7 @@ describe('API : EXTDATA', function(){ // eslint-disable-line no-undef
|
|
|
174
174
|
|
|
175
175
|
chai.request(app)
|
|
176
176
|
.get(uri)
|
|
177
|
+
.set('user-agent', '')
|
|
177
178
|
.set('content-type', 'application/octet-stream')
|
|
178
179
|
.set('user-agent', ua)
|
|
179
180
|
.set('accept-encoding', 'identity') // Chai send gzip encoding as default, thus we set 'identity'
|
|
@@ -194,6 +195,7 @@ describe('API : EXTDATA', function(){ // eslint-disable-line no-undef
|
|
|
194
195
|
|
|
195
196
|
chai.request(app)
|
|
196
197
|
.get(uri)
|
|
198
|
+
.set('user-agent', '')
|
|
197
199
|
.set('content-type', 'application/octet-stream')
|
|
198
200
|
.set('accept-encoding', 'identity') // Chai send gzip encoding as default, thus we set 'identity'
|
|
199
201
|
.end(function(err, res){
|