@@ -8,8 +8,8 @@ var jwt = require('jsonwebtoken');
8
8
var expect = require ( 'chai' ) . expect ;
9
9
var exec = require ( 'child_process' ) . exec ;
10
10
11
- var baseUrl = 'http://' + process . env . HOST_IP ;
12
- var url , secret , proxyName ;
11
+ var url = 'http://' + process . env . HOST_IP ;
12
+ var secret , proxyName ;
13
13
14
14
function runCommand ( command , done ) {
15
15
exec ( command , function ( err ) {
@@ -53,7 +53,6 @@ describe('proxy', function () {
53
53
54
54
describe ( "configured with normal secret" , function ( ) {
55
55
before ( function ( done ) {
56
- url = baseUrl ;
57
56
secret = 'JWTs are the best!' ;
58
57
59
58
proxyName = 'default' ;
@@ -166,7 +165,6 @@ describe('proxy', function () {
166
165
167
166
describe ( "configured with URL-safe base-64 encoded secret" , function ( ) {
168
167
before ( function ( done ) {
169
- url = baseUrl + ':81' ;
170
168
secret = 'This secret is stored base-64 encoded on the proxy host' ;
171
169
172
170
proxyName = 'base64-secret' ;
@@ -197,7 +195,6 @@ describe('proxy', function () {
197
195
198
196
describe ( "configured with claim_specs param that's not a table" , function ( ) {
199
197
before ( function ( done ) {
200
- url = baseUrl + ':82' ;
201
198
secret = 'JWTs are the best!' ;
202
199
203
200
proxyName = 'config-claim_specs-not-table' ;
@@ -238,7 +235,6 @@ describe('proxy', function () {
238
235
239
236
describe ( "configured with claim_specs param that contains a spec that's not a pattern (string) or table" , function ( ) {
240
237
before ( function ( done ) {
241
- url = baseUrl + ':83' ;
242
238
secret = 'JWTs are the best!' ;
243
239
244
240
proxyName = 'config-unsupported-claim-spec-type' ;
0 commit comments