This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_database_sqlite(self): | |
""" | |
""" | |
def create_handler(url): | |
interaction = mk.interaction_factory( | |
url, pool_size_min=1, pool_size_max=1) | |
#self.handler = TestDatabaseHandler(interaction, capacity=1) | |
self.handler = TestDatabaseHandler(interaction, capacity=1) | |
return self.handler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _runDeferred(self, deferred, timeout, debug): | |
""" | |
Does the actual deferred execution. | |
""" | |
if not deferred.called: | |
deferred_done = False | |
while not deferred_done: | |
self._iterateTestReactor(debug=debug) | |
deferred_done = deferred.called |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Trigger: Version of zabbix_agent(d) was changed on Daneș | |
Trigger status: OK | |
Trigger severity: Information | |
Trigger URL: | |
Item values: | |
1. Version of zabbix_agent(d) running (Daneș:agent.version): 2.0.7 | |
2. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN* | |
3. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TestUser(object): | |
""" | |
An object storing all user information. | |
""" | |
def __init__(self, name, uid=None, gid=None, home_path=None, | |
home_group=None, shell=None, shadow=None, password=None, | |
domain=None, pdc=None): | |
if home_path is None: | |
home_path = u'/tmp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-bash-3.2$ du -s ~/fix-packs/5300-06/ | |
230640 /home/chevah/fix-packs/5300-06/ | |
-bash-3.2$ du -s ~/fix-packs/5300-06/ | |
219792 /home/chevah/fix-packs/5300-06/ | |
-bash-3.2$ du -s ~/fix-packs/5300-06/ | |
227072 /home/chevah/fix-packs/5300-06/ | |
-bash-3.2$ du -s ~/fix-packs/5300-06/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FileHandlerTestCase(ServerTestCase): | |
""" | |
Base test case for all file handlers. | |
""" | |
def setUp(self): | |
super(FileHandlerTestCase, self).setUp() | |
self.handler = self.getNewHandler() | |
self.handler.stream = StringIO() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _patched_emit(self, record): | |
""" | |
Emit a record. | |
If a formatter is specified, it is used to format the record. | |
The record is then written to the stream with a trailing newline. If | |
exception information is present, it is formatted using | |
traceback.print_exception and appended to the stream. If the stream | |
has an 'encoding' attribute, it is used to determine how to do the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /SERVER_UPLOAD_URL HTTP/1.1 | |
Content-Length: 1325 | |
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryePkpFF7tjBAqx29L | |
------WebKitFormBoundaryePkpFF7tjBAqx29L | |
Content-Disposition: form-data; name="MAX_FILE_SIZE" | |
100000 | |
------WebKitFormBoundaryePkpFF7tjBAqx29L | |
Content-Disposition: form-data; name="directory" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /HTTP_ROOT/path/to/server/destination/directory HTTP/1.1 | |
Content-Length: 1325 | |
Content-Type: application/octet-stream | |
<file data> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Code under Public Domain. | |
function onFormSubmit(event) { | |
// event.responses - FormResponse | |
var response = event.response.getItemResponses(); | |
// Update 5 with yout email field. | |
var recipient = response[5].getResponse(); | |
// Update 0 with your name field. | |
var name = response[0].getResponse(); | |
// Email address only of owner of the form. | |
var owner = 'MYEMAIL@gmail.com'; |