use utall variable
MODIFY
test/api/SettingTest.ts
test/api/SettingTest.ts
@@ -25,7 +25,7 @@ describe('Setting tests', function() {
before(async function() {
// Init values
testData.superCentralService = new CentralServerService(null, { email: config.get('superadmin.username'), password: config.get('superadmin.password') });
- testData.centralService = new CentralServerService('utall', { email: config.get('admin.username'), password: config.get('admin.password') });
+ testData.centralService = new CentralServerService(ContextDefinition.TENANT_CONTEXTS.TENANT_WITH_ALL_COMPONENTS, { email: config.get('admin.username'), password: config.get('admin.password') });
testData.credentials.email = config.get('admin.username');
// Retrieve the tenant id from the name
const response = await testData.superCentralService.tenantApi.readAll({ 'Search' : ContextDefinition.TENANT_CONTEXTS.TENANT_WITH_ALL_COMPONENTS }, { limit: TestConstants.UNLIMITED, skip: 0 });
@@ -102,7 +102,7 @@ describe('Setting tests', function() {
let activation = await testData.superCentralService.updateEntity(testData.centralService.tenantApi, testData.data);
expect(activation.status).to.equal(200);
// Login again
- testData.centralService = new CentralServerService('utall', { email: config.get('admin.username'), password: config.get('admin.password') });
+ testData.centralService = new CentralServerService(ContextDefinition.TENANT_CONTEXTS.TENANT_WITH_ALL_COMPONENTS, { email: config.get('admin.username'), password: config.get('admin.password') });
// Update convergent charging setting
testData.data = JSON.parse(`{
"id":"${read.data.result[0].id}",

use utall variable