-
-{ PLANS, PROVIDERS, fetchGroupStackTemplate, revive,
-  fetchUsage, checkTemplateUsage } = require './computeutils'
-
 { daisy
   expect
+  ObjectId
   withDummyClient
   withConvertedUser
+  expectAccessDenied
+  generateRandomString
   checkBongoConnectivity
   generateDummyUserFormData } = require '../../../../testhelper'
-
-ComputeProvider = require './computeprovider'
+{ withConvertedUserAndCredential } = require \
+  '../../../../testhelper/models/computeproviders/credentialhelper'
+{ withConvertedUserAnd } = require  \
+  '../../../../testhelper/models/computeproviders/computeproviderhelper'
+
+{ PROVIDERS, revive }   = require './computeutils'
+ComputeProvider         = require './computeprovider'
 
 
 # this function will be called once before running any test


    it 'should not be able to ping if user doesnt have the right to ping', (done) ->

      withDummyClient ({ client }) ->

        ComputeProvider.ping$ client, { provider : PROVIDERS.google }, (err, data) ->
          expect(err?.message).to.be.equal 'Access denied'
          done()


  describe.skip '#create()', ->

    it 'should fail when user is not registered', (done) ->

      withDummyClient ({ client }) ->







  describe '#ping()', ->

    it 'should be able to ping for the given provider', (done) ->

      withConvertedUser ({ client, account }) ->
        client.r  = { account }
        queue     = []
