mirror of
https://github.com/krkn-chaos/krkn.git
synced 2026-02-14 09:59:59 +00:00
Some checks failed
Functional & Unit Tests / Functional & Unit Tests (push) Failing after 3m45s
Functional & Unit Tests / Generate Coverage Badge (push) Has been skipped
Signed-off-by: Paige Patton <prubenda@redhat.com>
37 lines
907 B
Python
37 lines
907 B
Python
#!/usr/bin/env python3
|
|
|
|
"""
|
|
Test suite for ServiceHijackingScenarioPlugin class
|
|
|
|
Usage:
|
|
python -m coverage run -a -m unittest tests/test_service_hijacking_scenario_plugin.py -v
|
|
|
|
Assisted By: Claude Code
|
|
"""
|
|
|
|
import unittest
|
|
|
|
from krkn.scenario_plugins.service_hijacking.service_hijacking_scenario_plugin import ServiceHijackingScenarioPlugin
|
|
|
|
|
|
class TestServiceHijackingScenarioPlugin(unittest.TestCase):
|
|
|
|
def setUp(self):
|
|
"""
|
|
Set up test fixtures for ServiceHijackingScenarioPlugin
|
|
"""
|
|
self.plugin = ServiceHijackingScenarioPlugin()
|
|
|
|
def test_get_scenario_types(self):
|
|
"""
|
|
Test get_scenario_types returns correct scenario type
|
|
"""
|
|
result = self.plugin.get_scenario_types()
|
|
|
|
self.assertEqual(result, ["service_hijacking_scenarios"])
|
|
self.assertEqual(len(result), 1)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|