<commit_before>const URL = require('url').URL;
const nock = require('nock');
const sinon = require('sinon');
const misc = require('../server/utils/misc');

// data of passportFile
const passportConfig = {
	configurationEndpoint: "https://chris.gluuthree.org/identity/restv1/passport/config",
	failureRedirectUrl: "https://chris.gluuthree.org/oxauth/auth/passport/passportlogin.htm",
	logLevel: "debug",
	consoleLogOnly: false,
	clientId: "1502.3fe76d0a-38dd-4f91-830b-e33fd70d778a",
	keyPath: "/tmp/passport-rp.pem",
	keyId: "<KEY>",
	keyAlg: "RS512"
};

// response of .../identity/restv1/passport/config
// add more data as per test case require
const passportConfigResponse = {
	conf: {
		serverURI: 'https://chris.gluuthree.org',
		serverWebPort: 8090,
		postProfileEndpoint: 'https://chris.gluuthree.org/oxauth/postlogin.htm',
		spTLSCert: '/tmp/passport-sp.crt',
		spTLSKey: '/tmp/passport-sp.key',
		logging: {
			level: 'debug',
			consoleLogOnly: false,
			activeMQConf: {
				enabled: false,
				host: '',
				username: '',
				password: '',
				port: 0
			}
		}
	},
	idpInitiated: {
		openidclient: {
			authorizationEndpoint: 'https://chris.gluuthree.org/oxauth/restv1/authorize',
			clientId: '1503.f1917f6f-b155-42e0-9bd1-99d56f5c3b50',
			acrValues: 'passport_saml'
		},<commit_msg>changed tls paths to testdata<commit_after>const URL = require('url').URL;
const nock = require('nock');
const sinon = require('sinon');
const misc = require('../server/utils/misc');

// data of passportFile
const passportConfig = {
	configurationEndpoint: "https://chris.gluuthree.org/identity/restv1/passport/config",
	failureRedirectUrl: "https://chris.gluuthree.org/oxauth/auth/passport/passportlogin.htm",
	logLevel: "debug",
	consoleLogOnly: false,
	clientId: "1502.3fe76d0a-38dd-4f91-830b-e33fd70d778a",
	keyPath: "/tmp/passport-rp.pem",
	keyId: "<KEY>",
	keyAlg: "RS512"
};

// response of .../identity/restv1/passport/config
// add more data as per test case require
const passportConfigResponse = {
	conf: {
		serverURI: 'https://chris.gluuthree.org',
		serverWebPort: 8090,
		postProfileEndpoint: 'https://chris.gluuthree.org/oxauth/postlogin.htm',
		spTLSCert: './test/testdata/passport-sp.crt',
		spTLSKey: './test/testdata/passport-sp.key',
		logging: {
			level: 'debug',
			consoleLogOnly: false,
			activeMQConf: {
				enabled: false,
				host: '',
				username: '',
				password: '',
				port: 0
			}
		}
	},
	idpInitiated: {
		openidclient: {
			authorizationEndpoint: 'https://chris.gluuthree.org/oxauth/restv1/authorize',
			clientId: '1503.f1917f6f-b155-42e0-9bd1-99d56f5c3b50',
			acrValues: 'passport_saml'
		},
{'fraction_non_alphanumeric': 0.16185410334346503, 'fraction_numerical': 0.044832826747720364, 'mean_word_length': 4.193293885601578, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3341057', 'n_tokens_mistral': 1153, 'n_tokens_neox': 1006, 'n_words': 160}