@@ -2,19 +2,7 @@ var webPush = require('../index');
2
2
var createServer = require ( './helpers/create-server' ) ;
3
3
var isPortOpen = require ( './helpers/port-open' ) ;
4
4
5
- if ( ! process . env . GCM_API_KEY ) {
6
- console . log ( 'You need to set the GCM_API_KEY env variable to run the tests with Chromium.' . bold . red ) ;
7
- } else {
8
- webPush . setGCMAPIKey ( process . env . GCM_API_KEY ) ;
9
- }
10
-
11
- if ( ! process . env . VAPID_PRIVATE_KEY || ! process . env . VAPID_PUBLIC_KEY ) {
12
- console . log ( 'You haven\'t set the VAPID env variables, I\'ll generate them for you.' . bold . yellow ) ;
13
-
14
- var keys = webPush . generateVAPIDKeys ( ) ;
15
- process . env . VAPID_PRIVATE_KEY = keys . privateKey . toString ( 'base64' ) ;
16
- process . env . VAPID_PUBLIC_KEY = keys . publicKey . toString ( 'base64' ) ;
17
- }
5
+ webPush . setGCMAPIKey ( 'AIzaSyAwmdX6KKd4hPfIcGU2SOfj9vuRDW6u-wo' ) ;
18
6
19
7
process . env . PATH = process . env . PATH + ':test_tools/' ;
20
8
@@ -34,8 +22,8 @@ suite('selenium', function() {
34
22
var VAPID_PARAM = {
35
23
audience : 'https://www.mozilla.org/' ,
36
24
subject :
'mailto:[email protected] ' ,
37
- privateKey : new Buffer ( process . env . VAPID_PRIVATE_KEY , 'base64' ) ,
38
- publicKey : new Buffer ( process . env . VAPID_PUBLIC_KEY , 'base64' ) ,
25
+ privateKey : new Buffer ( 'H6tqEMswzHOFlPHFi2JPfDQRiKN32ZJIwvSPWZl1VTA=' , 'base64' ) ,
26
+ publicKey : new Buffer ( 'BIx6khu9Z/5lBwNEXYNEOQiL70IKYDpDxsTyoiCb82puQ/V4c/NFdyrBFpWdsz3mikmV6sWARNuhRbbbLTMOmB0=' , 'base64' ) ,
39
27
} ;
40
28
var globalServer , globalDriver ;
41
29
@@ -152,7 +140,7 @@ suite('selenium', function() {
152
140
browserDrivers . push ( browserInfo ) ;
153
141
} ) ;
154
142
155
- if ( process . env . GCM_API_KEY && process . env . TRAVIS_OS_NAME !== 'osx' ) {
143
+ if ( process . env . TRAVIS_OS_NAME !== 'osx' ) {
156
144
chromeBrowsersToTest . forEach ( function ( browserInfo ) {
157
145
browserInfo . getBrowserDriver = function ( ) {
158
146
return chromeBrowsers . getBrowserDriver ( browserInfo . id , 'http://127.0.0.1:' + globalServer . port ) ;
0 commit comments