Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
@webex/test-helper-test-users
Advanced tools
npm install --save @webex/test-helper-test-users
The test-helper-test-users
package is a helper for mocha tests that handles the creation and deletion of test users in integration tests.
import webex from 'webex';
import testUsers from '@webex/test-helper-test-users';
describe('My Amazing Integration Test Suite', () => {
let testUserA, testUserB, testUserC;
before('create users', () => {
// Create Three Test Users
return testUsers.create({count: 3})
})
.then((createdTestUsers) => {
// Save the created test users
[testUserA, testUserB, testUserC] = createdTestUsers;
// Create a new sdk instance for the test user
testUserA.webex = webex.init({
config: {
credentials: {
authorization: testUserA.token
}
}
});
it('can do things with a test user', () => {
testUserA.people.get('me')
});
The test users package defaults to certain environment variables if the values aren't specified in the "create" command. Those variables are:
WEBEX_CLIENT_ID
- The Webex client ID that has access to create test usersWEBEX_CLIENT_SECRET
- The Webex client secret for the given client idWEBEX_TEST_USERS_CI_GATEWAY_SERVICE_URL
- The Webex url for conversation service to create test usersWEBEX_SCOPE
- The Webex scope the test users should be created withIDBROKER_BASE_URL
- The Webex auth endpoint to get a client based access tokenThese variables can been passed in to the create
command as a config
object as well:
const createConfig = {
clientId: mySpecificValue,
clientSecret: mySpecificValue,
idbrokerUrl: mySpecificValue,
cigServiceUrl: mySpecificValue,
scope: mySpecificValue,
};
testUsers.create({config: createConfig});
This package is maintained by Cisco Webex for Developers.
Pull requests welcome. Please see CONTRIBUTING.md for more details.
© 2016-2020 Cisco and/or its affiliates. All Rights Reserved.
FAQs
Unknown package
The npm package @webex/test-helper-test-users receives a total of 2,848 weekly downloads. As such, @webex/test-helper-test-users popularity was classified as popular.
We found that @webex/test-helper-test-users demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.