-
Notifications
You must be signed in to change notification settings - Fork 260
/
protractor.conf.js
34 lines (30 loc) · 1.31 KB
/
protractor.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*!
* Copyright (c) 2018, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
* See the License for the specific language governing permissions and limitations under the License.
*/
/* eslint-disable */
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
// Load environment variables
require('./env');
// Validate environment variables
['CLIENT_ID', 'ISSUER', 'USERNAME', 'PASSWORD'].forEach(function(key) {
if (!process.env[key]) {
throw new Error('Environment variable "' + key + '" is not set');
}
});
// Build protractor conf
var argv = require('minimist')(process.argv.slice(2));
var E2E_DIR = `${__dirname}/okta-oidc-tck/e2e-tests/${argv.sample}/`;
var config = require(E2E_DIR + 'conf.js').config;
config.specs = config.specs.map(function (path) {
return E2E_DIR + path;
});
exports.config = config;