Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@webex/test-users
Advanced tools
The Webex Test Users library allows developers to create test users for integration testing.
npm install --save @webex/test-users
Note: This package is NODE only, not for browser usage
With the test users library, you can create and remove Webex test users:
import {createTestUser, removeTestUser} from '@webex/test-users';
createTestUser({displayName: 'Test User'}).then((myTestUser) => {
// Do something amazing with myTestUser
// When done, remove the test user
removeTestUser(myTestUser)
});
The test users library falls back to a few environment variables if they aren't passed as config options:
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_CONVERSATION_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 tokenTest User creation follows a different flow than standard users due to the fact that they are created on the fly.
The creation steps are as follows:
IDBROKER_BASE_URL
or passed via optionsWEBEX_TEST_USERS_CONVERSATION_SERVICE_URL
or passed via optionsThis package is maintained by Cisco Webex for Developers.
Pull requests welcome. Please see CONTRIBUTING.md for more details.
© 2016-2019 Cisco and/or its affiliates. All Rights Reserved.
FAQs
Cisco Webex Test Users
The npm package @webex/test-users receives a total of 5,079 weekly downloads. As such, @webex/test-users popularity was classified as popular.
We found that @webex/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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.