Skip to content

Commit

Permalink
chore: hermione -> testplane
Browse files Browse the repository at this point in the history
  • Loading branch information
KuznetsovRoman committed Apr 5, 2024
1 parent 1d299e3 commit 1c9183c
Show file tree
Hide file tree
Showing 7 changed files with 3,848 additions and 1,387 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# hermione-oauth
# @testplane/oauth

Some Remote WebDriver Servers requires OAuth authorization for each request. This plugin is useful for setting of authorization header with OAuth token.

## Install

```bash
npm install hermione-oauth --save-dev
npm install @testplane/oauth --save-dev
```

## Usage

```js
// .hermione.conf.js
// .testplane.conf.js
module.exports = {
// ...
plugins: {
"hermione-oauth": {
"@testplane/oauth": {
enabled: true, // plugin is enabled by default
token: "<token>", // option also accepts absolute filepath with a token
help: "https://...", // information on where to get a token
Expand All @@ -25,5 +25,5 @@ module.exports = {
```

Each plugin option can be redefined by
- environment variable which starts with prefix `hermione_oauth_`, for example, `hermione_oauth_token=123-456-789`
- environment variable which starts with prefix `testplane_oauth_`, for example, `testplane_oauth_token=123-456-789`
- CLI option which starts with prefix `--oauth-`, for example, `--oauth-token=123-456-789`
Loading

0 comments on commit 1c9183c

Please sign in to comment.