@@ -8,8 +8,9 @@ var RecurringBillingModule = require('./RecurringBilling');
88var TransactionReportingModule = require ( './TransactionReporting' ) ;
99var VisaCheckoutModule = require ( './VisaCheckout' ) ;
1010var PayPalExpressCheckoutModule = require ( './PayPalExpressCheckout' ) ;
11- var ApplePayTransactionsModule = require ( './ApplePayTransactions' ) ;
11+ // var ApplePayTransactionsModule = require('./ApplePayTransactions');
1212var CustomerProfilesModule = require ( './CustomerProfiles' ) ;
13+ var filterTestMethod = process . argv [ 2 ]
1314
1415class TestRunner {
1516 validateResponse ( response ) {
@@ -91,13 +92,18 @@ class TestRunner {
9192 }
9293
9394 createSubscriptionFromCustomerProfile ( validateFunctionCallback ) {
94- CustomerProfilesModule . createCustomerProfile ( function ( response ) {
95+ /* CustomerProfilesModule.createCustomerProfile(function(response){
9596 CustomerProfilesModule.createCustomerPaymentProfile(response.getCustomerProfileId(), function(paymentProfileResponse){
9697 CustomerProfilesModule.createCustomerShippingAddress(response.getCustomerProfileId(), function(shippingResponse){
9798 RecurringBillingModule.createSubscriptionFromCustomerProfile(response.getCustomerProfileId(), paymentProfileResponse.getCustomerPaymentProfileId(), shippingResponse.getCustomerAddressId(), validateFunctionCallback);
9899 });
99100 });
101+ }); */
102+
103+ CustomerProfilesModule . getCustomerProfile ( "41003872" , function ( profileResponse ) {
104+ RecurringBillingModule . createSubscriptionFromCustomerProfile ( profileResponse . profile . customerProfileId , profileResponse . profile . paymentProfiles [ 0 ] . customerPaymentProfileId , profileResponse . profile . shipToList [ 0 ] . customerAddressId , validateFunctionCallback ) ;
100105 } ) ;
106+
101107 }
102108
103109 createSubscription ( validateFunctionCallback ) {
@@ -336,6 +342,7 @@ class TestRunner {
336342 var shouldApiRun = sample [ 1 ] . trim ( ) [ 0 ] ;
337343
338344 if ( shouldApiRun == '1' ) {
345+ if ( filterTestMethod && apiName !== filterTestMethod ) return
339346 console . log ( 'Running : ' + apiName ) ;
340347 testRunnerObject . callTestMethod ( apiName , function ( response ) {
341348 assert . isTrue ( testRunnerObject . validateResponse ( response ) ) ;
0 commit comments