File: configurations.py

package info (click to toggle)
plaso 20201007-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 519,924 kB
  • sloc: python: 79,002; sh: 629; xml: 72; sql: 14; vhdl: 11; makefile: 10
file content (98 lines) | stat: -rw-r--r-- 3,318 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the processing configuration classes."""

from __future__ import unicode_literals

import unittest

from plaso.engine import configurations


class CredentialConfigurationTest(unittest.TestCase):
  """Tests the credential configuration settings."""

  def testInitialization(self):
    """Tests the __init__ function."""
    configuration = configurations.CredentialConfiguration()
    self.assertIsNotNone(configuration)


class EventExtractionConfigurationTest(unittest.TestCase):
  """Tests the event extraction configuration settings."""

  def testInitialization(self):
    """Tests the __init__ function."""
    configuration = configurations.EventExtractionConfiguration()
    self.assertIsNotNone(configuration)


class ExtractionConfigurationTest(unittest.TestCase):
  """Tests the extraction configuration settings."""

  def testInitialization(self):
    """Tests the __init__ function."""
    configuration = configurations.ExtractionConfiguration()
    self.assertIsNotNone(configuration)


class ProfilingConfigurationTest(unittest.TestCase):
  """Tests the profiling configuration settings."""

  def testInitialization(self):
    """Tests the __init__ function."""
    configuration = configurations.ProfilingConfiguration()
    self.assertIsNotNone(configuration)

  def testHaveProfileAnalyzers(self):
    """Tests the HaveProfileAnalyzers function."""
    configuration = configurations.ProfilingConfiguration()
    self.assertFalse(configuration.HaveProfileAnalyzers())

  def testHaveProfileMemory(self):
    """Tests the HaveProfileMemory function."""
    configuration = configurations.ProfilingConfiguration()
    self.assertFalse(configuration.HaveProfileMemory())

  def testHaveProfileParsers(self):
    """Tests the HaveProfileParsers function."""
    configuration = configurations.ProfilingConfiguration()
    self.assertFalse(configuration.HaveProfileParsers())

  def testHaveProfileProcessing(self):
    """Tests the HaveProfileProcessing function."""
    configuration = configurations.ProfilingConfiguration()
    self.assertFalse(configuration.HaveProfileProcessing())

  def testHaveProfileSerializers(self):
    """Tests the HaveProfileSerializers function."""
    configuration = configurations.ProfilingConfiguration()
    self.assertFalse(configuration.HaveProfileSerializers())

  def testHaveProfileStorage(self):
    """Tests the HaveProfileStorage function."""
    configuration = configurations.ProfilingConfiguration()
    self.assertFalse(configuration.HaveProfileStorage())

  def testHaveProfileTaskQueue(self):
    """Tests the HaveProfileTaskQueue function."""
    configuration = configurations.ProfilingConfiguration()
    self.assertFalse(configuration.HaveProfileTaskQueue())

  def testHaveProfileTasks(self):
    """Tests the HaveProfileTasks function."""
    configuration = configurations.ProfilingConfiguration()
    self.assertFalse(configuration.HaveProfileTasks())


class ProcessingConfigurationTest(unittest.TestCase):
  """Tests the processing configuration settings."""

  def testInitialization(self):
    """Tests the __init__ function."""
    configuration = configurations.ProcessingConfiguration()
    self.assertIsNotNone(configuration)


if __name__ == '__main__':
  unittest.main()