

import testtools
import heat_cfnclient
import os
import subprocess

basepath = os.path.join(heat_cfnclient.__path__[0], os.path.pardir)


class CliTest(testtools.TestCase):

    def test_heat_cfn(self):
            self.bin_run('heat-cfn')

    def test_heat_boto(self):
            self.bin_run('heat-boto')

    def test_heat_watch(self):
            self.bin_run('heat-watch')

    def bin_run(self, bin):
            fullpath = basepath + '/bin/' + bin

            proc = subprocess.Popen(fullpath,
                                    stdout=subprocess.PIPE,
                                    stderr=subprocess.PIPE)
            stdout, stderr = proc.communicate()

            if proc.returncode:
                print('Error executing %s:\n %s %s ' % (bin, stdout, stderr))
                raise subprocess.CalledProcessError(proc.returncode, bin)



import testtools
import heat_cfnclient
import os
import subprocess

basepath = os.path.join(heat_cfnclient.__path__[0], os.path.pardir)


@testtools.skip
class CliTest(testtools.TestCase):

    def test_heat_cfn(self):
            self.bin_run('heat-cfn')

    def test_heat_boto(self):
            self.bin_run('heat-boto')

    def test_heat_watch(self):
            self.bin_run('heat-watch')

    def bin_run(self, bin):
            fullpath = basepath + '/bin/' + bin

            proc = subprocess.Popen(fullpath,
                                    stdout=subprocess.PIPE,
                                    stderr=subprocess.PIPE)
            stdout, stderr = proc.communicate()

            if proc.returncode:
                print('Error executing %s:\n %s %s ' % (bin, stdout, stderr))
                raise subprocess.CalledProcessError(proc.returncode, bin)

Disable tests until new repo is stable
Disable tests until new repo is stable

Change-Id: Ic6932c1028c72b5600d03ab59102d1c1cff1b36c

  
  
  import testtools
  import heat_cfnclient
  import os
  import subprocess
  
  basepath = os.path.join(heat_cfnclient.__path__[0], os.path.pardir)
  
  
+ @testtools.skip
  class CliTest(testtools.TestCase):
  
      def test_heat_cfn(self):
              self.bin_run('heat-cfn')
  
      def test_heat_boto(self):
              self.bin_run('heat-boto')
  
      def test_heat_watch(self):
              self.bin_run('heat-watch')
  
      def bin_run(self, bin):
              fullpath = basepath + '/bin/' + bin
  
              proc = subprocess.Popen(fullpath,
                                      stdout=subprocess.PIPE,
                                      stderr=subprocess.PIPE)
              stdout, stderr = proc.communicate()
  
              if proc.returncode:
                  print('Error executing %s:\n %s %s ' % (bin, stdout, stderr))
                  raise subprocess.CalledProcessError(proc.returncode, bin)
  
Disable tests until new repo is stable
## Code Before:


import testtools
import heat_cfnclient
import os
import subprocess

basepath = os.path.join(heat_cfnclient.__path__[0], os.path.pardir)


class CliTest(testtools.TestCase):

    def test_heat_cfn(self):
            self.bin_run('heat-cfn')

    def test_heat_boto(self):
            self.bin_run('heat-boto')

    def test_heat_watch(self):
            self.bin_run('heat-watch')

    def bin_run(self, bin):
            fullpath = basepath + '/bin/' + bin

            proc = subprocess.Popen(fullpath,
                                    stdout=subprocess.PIPE,
                                    stderr=subprocess.PIPE)
            stdout, stderr = proc.communicate()

            if proc.returncode:
                print('Error executing %s:\n %s %s ' % (bin, stdout, stderr))
                raise subprocess.CalledProcessError(proc.returncode, bin)

## Instruction:
Disable tests until new repo is stable
## Code After:


import testtools
import heat_cfnclient
import os
import subprocess

basepath = os.path.join(heat_cfnclient.__path__[0], os.path.pardir)


@testtools.skip
class CliTest(testtools.TestCase):

    def test_heat_cfn(self):
            self.bin_run('heat-cfn')

    def test_heat_boto(self):
            self.bin_run('heat-boto')

    def test_heat_watch(self):
            self.bin_run('heat-watch')

    def bin_run(self, bin):
            fullpath = basepath + '/bin/' + bin

            proc = subprocess.Popen(fullpath,
                                    stdout=subprocess.PIPE,
                                    stderr=subprocess.PIPE)
            stdout, stderr = proc.communicate()

            if proc.returncode:
                print('Error executing %s:\n %s %s ' % (bin, stdout, stderr))
                raise subprocess.CalledProcessError(proc.returncode, bin)
