Include the python encoding file header on tests.

This commit is contained in:
Pedro Algarvio 2013-11-27 11:19:24 +00:00
parent b89252b264
commit d02a2bc224
85 changed files with 156 additions and 2 deletions

View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import yaml
import subprocess
import hashlib

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Use this script to dump the event data out to the terminal. It needs to know
what the sock_dir is.

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Set up the Salt integration test suite
'''

View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import salt.utils.decorators
import time

View File

@ -1,2 +1 @@
# -*- coding: utf-8 -*-

View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import os
import sys

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Validate the config system
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import os
import hashlib

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Test the django module
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
__author__ = 'cro'
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import getpass
import grp

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Test the grains module
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Test the hosts module
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Test the salt mine system
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import os

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Test the ssh module
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import os
import shutil

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python
import os
import time

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import sys

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import re

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import os

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import os
import string

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import os
import tempfile

View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Tests for the salt-run command
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Tests for the salt-run command
'''

View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import os
import yaml

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import os
import yaml

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Tests for the salt-run command
'''

View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Tests for the file state
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
tests for host state
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Tests for the file state
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Tests for the Git state
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
tests for host state
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
tests for host state
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
tests for pkg state
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
tests for pkgrepo states
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Tests for the rabbitmq state
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Tests for the rabbitmq state
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Test the ssh_known_hosts state
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Tests for the supervisord state
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
Tests for the SVN state
'''

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
'''
tests for user state
user absent

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
'''
This script is used to test Salt from a Jenkins server, specifically

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
#/usr/bin/env python
'''
The minionswarm script will start a group of salt minions with different ids

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''

View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)`

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting import TestCase
from salttesting.helpers import ensure_in_syspath

View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting import skipIf, TestCase

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import os
import tempfile

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting import skipIf, TestCase
from salttesting.helpers import ensure_in_syspath

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting import TestCase
from salttesting.helpers import ensure_in_syspath

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import warnings

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting import skipIf, TestCase
from salttesting.helpers import ensure_in_syspath

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting import skipIf, TestCase
from salttesting.helpers import ensure_in_syspath

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import new
import sys

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Python libs
import os
import sys

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
from salttesting import TestCase, expectedFailure
from salttesting.helpers import ensure_in_syspath

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Python libs
from cStringIO import StringIO

View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import json
import pprint

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting import skipIf, TestCase
from salttesting.helpers import ensure_in_syspath

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import Salt Testing libs
from salttesting import skipIf, TestCase
from salttesting.helpers import ensure_in_syspath

View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import os
import sys

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Import python libs
import os
from os.path import join

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)`

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
'''
Test interacting with the wheel system. This script is useful when testing