tests.end_to_end_test package¶
Submodules¶
tests.end_to_end_test.end_to_end_test_helper module¶
class for end to end test helper
-
class
tests.end_to_end_test.end_to_end_test_helper.EndToEndTestHelper(plaso_dir_path: str, name: str)[source]¶ Bases:
objectClass defining Variables to be used multiple times in tests
-
ADDITIONAL_TIMESTAMP= 'Enter \\(additional\\) timestamp events from the query \\[columnName,aliasName...\\] or \\[abort\\]\\:'¶
-
ADDITIONAL_TIMESTAMP_ABORT= 'abort'¶
-
ADDITIONAL_TIMESTAMP_INVALID= 'Timestamps are not in valid format\\. Reenter them correctly \\[name\\,name\\.\\.\\.\\]'¶
-
ADD_ANSWER_NO= 'n'¶
-
ADD_ANSWER_YES= 'Y'¶
-
ADD_QUESTION= 'Do you want to add another Query\\? \\[Y\\/n\\]\\:'¶
-
COLUMN_ANSWER_NO= 'N'¶
-
COLUMN_ANSWER_YES= 'Y'¶
-
COLUMN_QUESTION_CREATED_DATE= 'Is the column a time event\\? createdDate \\[Y\\/n\\]\\:'¶
-
COLUMN_QUESTION_DATE= 'Is the column a time event\\? date \\[Y\\/n\\]\\:'¶
-
COLUMN_QUESTION_PROFILE_TIMELINE= 'Is the column a time event\\? includeInProfileTimeline \\[Y\\/n\\]\\:'¶
-
COLUMN_QUESTION_UPDATED_AT= 'Is the column a time event\\? updatedAt \\[Y\\/n\\]\\:'¶
-
CUSTOM_ADD_INVALID= 'Column names are not in valid format\\. Reenter them correctly \\[name\\,name\\.\\.\\.\\]'¶
-
CUSTOM_ADD_MORE_ANSWER_NO= 'N'¶
-
CUSTOM_ADD_MORE_ANSWER_YES= 'Y'¶
-
CUSTOM_ADD_MORE_QUESTION= 'Do you want to add more columns that are customizable\\? \\[y\\/N\\]\\:'¶
-
CUSTOM_ADD_QUESTION= 'Enter columns that are customizable \\[columnName\\,aliasName\\.\\.\\.\\] or \\[abort\\]\\:'¶
-
CUSTOM_ANSWER_NO= 'N'¶
-
CUSTOM_ANSWER_YES= 'Y'¶
-
CUSTOM_QUESTION_STATUSES= 'Does the event Statuses need customizing\\? \\[y\\/N\\]\\:'¶
-
CUSTOM_QUESTION_THEUSER= 'Does the event TheUser need customizing\\? \\[y\\/N\\]\\:'¶
-
CUSTOM_QUESTION_USERS= 'Does the event Users need customizing\\? \\[y\\/N\\]\\:'¶
-
CUSTOM_QUESTION_USERSSTATUSES= 'Does the event Usersstatuses need customizing\\? \\[y\\/N\\]\\:'¶
-
DATABASE_PATH= '/home/docs/checkouts/readthedocs.org/user_builds/plasoscaffolder/checkouts/latest/src/tests/test_database'¶
-
DIR_PATH= '/home/docs/checkouts/readthedocs.org/user_builds/plasoscaffolder/checkouts/latest/src/tests/end_to_end_test'¶
-
GENERATE_ANSWER_NO= 'N'¶
-
GENERATE_ANSWER_YES= 'Y'¶
-
GENERATE_QUESTION= 'Do you want to Generate the files\\? \\[Y\\/n\\]\\:'¶
-
MAIN_PATH= '/home/docs/checkouts/readthedocs.org/user_builds/plasoscaffolder/checkouts/latest/src/plasoscaffolder/frontend/main.py'¶
-
MORE_TIMESTAMPS_ANSWER_NO= 'N'¶
-
MORE_TIMESTAMPS_ANSWER_YES= 'Y'¶
-
MORE_TIMESTAMPS_QUESTION= 'Do you want to add more timestamps\\? \\[y\\/N\\]\\:'¶
-
NAME_ANSWER= 'test'¶
-
NAME_QUESTION= "What's the name of the plugin\\?\\:"¶
-
NAME_QUESTION_EXISTS= 'Plugin exists\\. Choose new Name'¶
-
NAME_QUESTION_NOT_VALID= 'Plugin is not in a valid format\\. Choose new Name \\[plugin\\_name\\_\\.\\.\\.\\]'¶
-
NAME_ROW_ANSWER_NO= 'N'¶
-
NAME_ROW_ANSWER_YES= 'Y'¶
-
NAME_ROW_QUESTION_INVALID= 'Row name is not in a valid format\\. Choose new Name \\[RowName\\.\\.\\.\\]'¶
-
NAME_ROW_QUESTION_QUERY= 'What row does the SQL Query parse\\?\\:'¶
-
NAME_ROW_QUESTION_STATUSES= 'Do you want to name the query parse row\\: Statuses \\? \\[Y\\/n\\]\\:'¶
-
NAME_ROW_QUESTION_USERS= 'Do you want to name the query parse row\\: Users \\? \\[Y\\/n\\]\\:'¶
-
NAME_ROW_QUESTION_USERSSTATUSES= 'Do you want to name the query parse row\\: Usersstatuses \\? \\[Y\\/n\\]\\:'¶
-
OUTPUT_ADD_ANSWER_NO= 'n'¶
-
OUTPUT_ADD_ANSWER_YES= 'y'¶
-
OUTPUT_ADD_QUESTION= 'Do you want to add this query\\? \\[Y\\/n\\]\\:'¶
-
OUTPUT_ANSWER_NO= 'n'¶
-
OUTPUT_ANSWER_YES= 'y'¶
-
OUTPUT_EXAMPLE_FIRST_ROW= 'Your query output could look like this\\.'¶
-
OUTPUT_QUESTION= 'Do you want to have a output example for your SQL Query\\? \\[Y\\/n\\]\\:'¶
-
OUTPUT_USERS_ID_EXAMPLE_FIRST_ROW= "\\(5402612\\, 'BBC Breaking News'\\, 1177252957\\.0\\)"¶
-
OUTPUT_USERS_ID_EXAMPLE_SECOND_ROW= "\\(13334762\\, 'GitHub'\\, 1202704910\\.0\\)"¶
-
OUTPUT_USERS_ID_EXAMPLE_THIRD_ROW= "\\(14388264\\, 'Tom Pohl'\\, 1208195714\\.0\\)"¶
-
OUTPUT_USERS_ID_NAME_EXAMPLE_HEADER= "\\['id'\\, 'name'\\, 'createdDate'\\]"¶
-
PATH_QUESTION= "What's the path to the plaso project\\?\\:"¶
-
PATH_WRONG_QUESTION= 'Folder does not exists\\. Enter correct one'¶
-
SQL_ANSWER= 'select * from users'¶
-
SQL_ANSWER_2= 'select * from statuses'¶
-
SQL_ANSWER_ESCAPED= 'select \\* from users'¶
-
SQL_ANSWER_ESCAPED_2= 'select \\* from statuses'¶
-
SQL_ANSWER_ESCAPED_ID_NAME= 'select id\\, name\\, createdDate from users'¶
-
SQL_ANSWER_ID_NAME= 'select id, name, createdDate from users'¶
-
SQL_ANSWER_OK= 'The SQL query was ok.'¶
-
SQL_QUESTION= 'Please write your SQL script for the plugin\\:'¶
-
SQL_QUESTION_WITH_ABORT= "Please write your SQL script for the plugin \\['abort' to continue\\]\\:"¶
-
TESTFILE_ANSWER= '/home/docs/checkouts/readthedocs.org/user_builds/plasoscaffolder/checkouts/latest/src/tests/test_database/twitter_ios.db'¶
-
TESTFILE_ANSWER_ERROR= '/home/docs/checkouts/readthedocs.org/user_builds/plasoscaffolder/checkouts/latest/src/tests/test_database/twitter_ios_error.db'¶
-
TESTFILE_ANSWER_NOT_FOUND= '/home/docs/checkouts/readthedocs.org/user_builds/plasoscaffolder/checkouts/latest/src/tests/test_database/does_not_exist'¶
-
TESTFILE_QUESTION= "What's the path to your test file\\?\\:"¶
-
TESTFILE_QUESTION_INVALID= 'Unable to open the database file\\. Choose another\\.'¶
-
TESTFILE_QUESTION_NOT_FOUND= 'File does not exists\\. Choose another\\.'¶
-
tests.end_to_end_test.test_easy_generation module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
-
class
tests.end_to_end_test.test_easy_generation.EasyGenerationTest(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseTest File for easy Generation
-
testEasyGeneration()[source]¶ Test easy file generation without errors
- plasoscaffolder sqlite
- What’s the path to the plaso project?: tmpdir
- What’s the name of the plugin?: test
- What’s the path to your test file?: test_database/twitter_ios.db
- Do you want to have a output example for your SQL Query? [Y/n]: n
- Please write your SQL script for the plugin: select * from users
- The SQL query was ok.
- Do you want to name the query parse row: Users ? [Y/n]: Y
- Is the column a time event? updatedAt [Y/n]: Y
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: abort
- Does the event Users need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: n
- Do you want to Generate the files [Y/n]: y
-
tests.end_to_end_test.test_easy_generation_with_abort module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
-
class
tests.end_to_end_test.test_easy_generation_with_abort.EasyGenerationWithAbortTest(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseTest File for Easy Generation with Abort
-
testEasyGenerationWithAbort()[source]¶ Test easy file generation without errors and with abort at the end, not generating the files.
- plasoscaffolder sqlite
- What’s the path to the plaso project?: tmpdir
- What’s the name of the plugin?: test
- What’s the path to your test file?: test_database/twitter_ios.db
- Do you want to have a output example for your SQL Query? [Y/n]: n
- Please write your SQL script for the plugin: select * from users
- The SQL query was ok.
- Do you want to name the query parse row: Users ? [Y/n]: Y
- Is the column a time event? updatedAt [Y/n]: Y
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: abort
- Does the event Users need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: n
- Do you want to Generate the files [Y/n]: n
-
tests.end_to_end_test.test_easy_generation_with_customizing module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
-
class
tests.end_to_end_test.test_easy_generation_with_customizing.EasyGenerationWithCustomizingTest(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseTest File for Generation with Customizing
-
testEasyGenerationWithCustomizing()[source]¶ Test easy file generation without errors with customizing option
- plasoscaffolder sqlite
- What’s the path to the plaso project?: tmpdir
- What’s the name of the plugin?: test
- What’s the path to your test file?: test_database/twitter_ios.db
- Do you want to have a output example for your SQL Query? [Y/n]: n
- Please write your SQL script for the plugin: select * from users
- The SQL query was ok.
- Do you want to name the query parse row: Users ? [Y/n]: Y
- Is the column a time event? updatedAt [Y/n]: Y
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: abort
- Does the event Users need customizing? [y/N]: Y
- Enter columns that are customizable [columnName,aliasName...] or [ abort]: this that
- Column names are not in valid format. Reenter them correctly [name, name...]: this, that
- Column names are not in valid format. Reenter them correctly [name, name...]: this,that
- Added: Failed: that,this
- Do you want to add more columns that are customizable? [y/N]: Y
- Enter columns that are customizable [columnName,aliasName...] or [ abort]: this,location,updatedAt
- Added: location Failed: updatedAt,that,this
- Do you want to add more columns that are customizable? [y/N]: N
- Do you want to add another Query? [Y/n]: n
- Do you want to Generate the files [Y/n]: Y
-
tests.end_to_end_test.test_easy_generation_with_multiple_selects module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
-
class
tests.end_to_end_test.test_easy_generation_with_multiple_selects.EasyGenerationWithMultipleSelectsTest(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseTest file for Generation with multiple selects.
-
testEasyGenerationWithMultipleSelects()[source]¶ Test easy file generation without errors with two select queries
- plasoscaffolder sqlite
- What’s the path to the plaso project?: tmpdir
- What’s the name of the plugin?: test
- What’s the path to your test file?: test_database/twitter_ios.db
- Do you want to have a output example for your SQL Query? [Y/n]: n
- Please write your SQL script for the plugin: select * from users
- The SQL query was ok.
- Do you want to name the query parse row: Users ? [Y/n]: Y
- Is the column a time event? updatedAt [Y/n]: Y
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: abort
- Does the event Users need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: Y
- Please write your SQL script for the plugin: select * from statuses
- The SQL query was ok.
- Do you want to name the query parse row: Statuses ? [Y/n]: Y
- Is the column a time event? date [Y/n]: Y
- Is the column a time event? updatedAt [Y/n]: Y
- Is the column a time event? includeInProfileTimeline [Y/n]: N
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: abort
- Does the event Users need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: Y
- Please write your SQL script for the plugin [‘abort’ to continue]: abort
- Do you want to Generate the files [Y/n]: Y
-
tests.end_to_end_test.test_easy_generation_with_output_example module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
-
class
tests.end_to_end_test.test_easy_generation_with_output_example.EasyGenerationWithOutputTest(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseTest File for an Easy Generation Test With Output
-
testEasyGenerationWithOutputExample()[source]¶ Test easy file generation without errors and with an output example
- plasoscaffolder sqlite
- What’s the path to the plaso project?: [pfad]
- What’s the name of the plugin?: test
- What’s the path to your test file?: [pfad_file]
- Do you want to have a output example for your SQL Query? [Y/n]: Y
- Please write your SQL script for the plugin: select id, name, createdDate from users
- Your query output could look like this. [‘id’, ‘name’] (5402612, ‘BBC Breaking News’) (13334762, ‘GitHub’) (14388264, ‘Tom Pohl’)
- Do you want to add this query? [Y/n]: Y
- Do you want to name the query parse row: Users ? [Y/n]: Y
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: abort
- Does the event Users need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: n
-
tests.end_to_end_test.test_easy_generation_with_own_row_name module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
-
class
tests.end_to_end_test.test_easy_generation_with_own_row_name.EasyGenerationWithOwnRowNameTest(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseTest File for Generation With Row Name
-
testEasyGenerationWithOwnRowName()[source]¶ Test easy file generation without errors
- plasoscaffolder sqlite
- What’s the path to the plaso project?: tmpdir
- What’s the name of the plugin?: test
- What’s the path to your test file?: test_database/twitter_ios.db
- Do you want to have a output example for your SQL Query? [Y/n]: n
- Please write your SQL script for the plugin: select * from users
- The SQL query was ok.
- Do you want to name the query parse row: Users ? [Y/n]: n
- What row does the SQL Query parse?: The User 11. Row name is not in a valid format. Choose new Name [RowName...]: theuser
- Row name is not in a valid format. Choose new Name [RowName...]: TheUser123
- Row name is not in a valid format. Choose new Name [RowName...]: TheUser
- Is the column a time event? updatedAt [Y/n]: Y
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: abort
- Does the event The User need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: n
- Do you want to Generate the files [Y/n]: Y
-
tests.end_to_end_test.test_easy_generation_with_own_time_event module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
-
class
tests.end_to_end_test.test_easy_generation_with_own_time_event.EasyGenerationWithOwnTimeEventTest(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseTest file for generation with time event.
-
testEasyGenerationWithOwnTimeEvent()[source]¶ Test easy file generation without errors
- plasoscaffolder sqlite
- What’s the path to the plaso project?: tmpdir
- What’s the name of the plugin?: test
- What’s the path to your test file?: test_database/twitter_ios.db
- Do you want to have a output example for your SQL Query? [Y/n]: n
- Please write your SQL script for the plugin: select * from users
- The SQL query was ok.
- Do you want to name the query parse row: Users ? [Y/n]: Y
- Is the column a time event? updatedAt [Y/n]: n
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: id that this
- Timestamps are not in valid format. Reenter them correctly [name, name...]: id, that, this
- Timestamps are not in valid format. Reenter them correctly [name, name...]:id,that,this
- Added: createdDate,id Failed: that,this
- Do you want to add more timestamps? [y/N]: y
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: name,that
- Added: createdDate,id,name
- Failed: that,this
- Do you want to add more timestamps? [y/N]: n
- Does the event Users need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: n
- Do you want to Generate the files [Y/n]: Y
-
tests.end_to_end_test.test_generation_with_an_existing_name module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
-
class
tests.end_to_end_test.test_generation_with_an_existing_name.EasyGenerationWithExistingNameTest(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseTest File for Generation with an existing name
-
testEasyGenerationWithExistingName()[source]¶ Test easy file generation without errors
- plasoscaffolder sqlite
- What’s the path to the plaso project?: tmpdir
- What’s the name of the plugin?: test
- What’s the path to your test file?: test_database/twitter_ios.db
- Do you want to have a output example for your SQL Query? [Y/n]: n
- Please write your SQL script for the plugin: select * from users
- The SQL query was ok.
- Do you want to name the query parse row: Users ? [Y/n]: Y
- Is the column a time event? updatedAt [Y/n]: Y
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: abort
- Does the event Users need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: n
- Do you want to Generate the files [Y/n]: y
- plasoscaffolder sqlite
- What’s the path to the plaso project?: tmpdir
- What’s the name of the plugin?: test
- Plugin exists. Choose new Name: test_plugin
- What’s the path to your test file?: test_database/twitter_ios.db
- Do you want to have a output example for your SQL Query? [Y/n]: n
- Please write your SQL script for the plugin: select * from users
- The SQL query was ok.
- Do you want to name the query parse row: Users ? [Y/n]: Y
- Is the column a time event? updatedAt [Y/n]: Y
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [column-Name,aliasName...] or [abort]: abort
- Does the event Users need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: n
- Do you want to Generate the files [Y/n]: Y
-
tests.end_to_end_test.test_generation_with_option_at_tool_call module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
-
class
tests.end_to_end_test.test_generation_with_option_at_tool_call.GenerateWithOptionAtToolCallTest(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseTest file for generation with options at tool call.
-
testGenerateWithOptionAtToolCall()[source]¶ Test file generation with additional options calling the tool
- plasoscaffolder sqlite –path tmpdir –name test –testfile test_database/twitter_ios.db –-no-sql
- Please write your SQL script for the plugin: select * from users
- The SQL query was ok.
- Do you want to name the query parse row: Users ? [Y/n]: Y
- Is the column a time event? updatedAt [Y/n]: Y
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: abort
- Does the event Users need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: n
- Do you want to Generate the files [Y/n]: y
-
tests.end_to_end_test.test_help_function module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
tests.end_to_end_test.test_help_function_of_sqlite module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
tests.end_to_end_test.test_select_easy_join module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
-
class
tests.end_to_end_test.test_select_easy_join.SelectEasyJoinTest(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseTest file for join.
-
testSelectEasyJoin()[source]¶ Test file generation with a join query and invalid input
- plasoscaffolder sqlite
- What’s the path to the plaso project?: tmpdir
- What’s the name of the plugin?: test
- What’s the path to your test file?: test_database/twitter_ios.db
- Do you want to have a output example for your SQL Query? [Y/n]: n
- Please write your SQL script for the plugin: select * from users join statuses
- Please use an alias (AS) for those column names: id updatedAt
- Please write your SQL script for the plugin: select id as userid join statuses
- Error: near “join”: syntax error
- Please write your SQL script for the plugin: select id as userid from users join statuses
- Error: ambiguous column name: id
- Please write your SQL script for the plugin: select users.id as userid from users join statuses
- The SQL query was ok.
- Do you want to name the query parse row: Usersstatuses? [Y/n]: Y
- Is the column a time event? updatedAt [Y/n]: Y
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: abort
- Does the event Users need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: N
- Do you want to Generate the files [Y/n]: Y
-
tests.end_to_end_test.test_select_with_special_characters module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
-
class
tests.end_to_end_test.test_select_with_special_characters.SelectWithSpecialCharactersTest(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseTest file for select with special characters.
-
testSelectWithSpecialCharacters()[source]¶ Test different queries with special characters
- plasoscaffolder sqlite
- What’s the path to the plaso project?: tmpdir
- What’s the name of the plugin?: test
- What’s the path to your test file?: test_database/twitter_ios.db
- Do you want to have a output example for your SQL Query? [Y/n]: n
- Please write your SQL script for the plugin: select users.id as “userid” from users join statuses
- Info: Don’t use any characters beside a-z A-Z . ; , *
- Please write your SQL script for the plugin: select hex(id) from users
- Warning: Don’t use any characters beside a-z A-Z . ; , *
- Please write your SQL script for the plugin: select [AS].[ID] AS [the alias], [AS].name AS “the name” , S.id from users as [AS] join statuses as “S”
- Warning: Don’t use any characters beside a-z A-Z . ; , *
- Please write your SQL script for the plugin: select id as the-id from user
- Warning: Don’t use any characters beside a-z A-Z . ; , *
- Please write your SQL script for the plugin: select somealias.id from users as somealias
- Warning: Don’t use any alias for a table name
- Please write your SQL script for the plugin: select * from users
- The SQL query was ok.
- Do you want to name the query parse row: Users ? [Y/n]: Y
- Is the column a time event? updatedAt [Y/n]: Y
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: abort
- Does the event Users need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: n
- Do you want to Generate the files [Y/n]: Y
-
tests.end_to_end_test.test_wrong_path module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
-
class
tests.end_to_end_test.test_wrong_path.WrongPathTest(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseTest file for wrong path.
-
testWrongPath()[source]¶ Test easy file generation with using the wrong path
- plasoscaffolder sqlite
- What’s the path to the plaso project?:bla bla
- Folder does not exists. Enter correct one: other/wrong
- Folder does not exists. Enter correct one: tmpdir
- What’s the name of the plugin?: test
- What’s the path to your test file?: [pfad_file]
- Do you want to have a output example for your SQL Query? [Y/n]: n
- Please write your SQL script for the plugin: select * from users
- The SQL query was ok.
- Do you want to name the query parse row: Users ? [Y/n]: Y
- Is the column a time event? updatedAt [Y/n]: Y
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: abort
- Does the event Users need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: n
- Do you want to Generate the files [Y/n]: Y
-
tests.end_to_end_test.test_wrong_plugin_name module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
-
class
tests.end_to_end_test.test_wrong_plugin_name.WrongPluginNameTest(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseTest file for wrong plugin name.
-
testWrongPluginName()[source]¶ Test file generation with using a invalid plugin name
- plasoscaffolder sqlite
- What’s the path to the plaso project?: [pfad]
- What’s the name of the plugin?: test plugin
- Plugin is not in a valid format. Choose new Name [plugin_name_...]: TestPlugin
- Plugin is not in a valid format. Choose new Name [plugin_name_...]: test123_plugin
- Plugin is not in a valid format. Choose new Name [plugin_name_...]: test_plugin
- What’s the path to your test file?: [pfad_file]
- Do you want to have a output example for your SQL Query? [Y/n]: n
- Please write your SQL script for the plugin: select * from users
- The SQL query was ok.
- Do you want to name the query parse row: Users ? [Y/n]: Y
- Is the column a time event? updatedAt [Y/n]: Y
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [columnName, aliasName...] or [abort]: abort
- Does the event Users need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: n
- Do you want to Generate the files [Y/n]: Y
-
tests.end_to_end_test.test_wrong_sql_query_input module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
-
class
tests.end_to_end_test.test_wrong_sql_query_input.WrongSQLQueryInputTest(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseTest file for wrong input.
-
testWrongSQLQueryInput()[source]¶ Test easy file generation without errors
- plasoscaffolder sqlite
- What’s the path to the plaso project?: tmpdir
- What’s the name of the plugin?: test
- What’s the path to your test file?: test_database/twitter_ios.db
- Do you want to have a output example for your SQL Query? [Y/n]: n
- Please write your SQL script for the plugin: select * from user
- Error: no such table: user
- Please write your SQL script for the plugin: select * from users; select * from users
- Warning: You can only execute one statement at a time.
- Please write your SQL script for the plugin: drop table users
- Query has to be a single SELECT query.
- Please write your SQL script for the plugin [‘abort’ to continue]: select * from users
- The SQL query was ok.
- Do you want to name the query parse row: Users ? [Y/n]: Y
- Is the column a time event? updatedAt [Y/n]: Y
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: abort
- Does the event Users need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: y
- Please write your SQL script for the plugin [‘abort’ to continue]: abort
- Do you want to Generate the files [Y/n]: Y
-
tests.end_to_end_test.test_wrong_test_file module¶
Test Class for end to end Tests. These Tests can only be run on Linux because it makes use of pexpect.
-
class
tests.end_to_end_test.test_wrong_test_file.WrongTestDatabaseFileTest(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseTest file for wrong test database file.
-
testWrongTestFile()[source]¶ Test easy file generation without errors
- plasoscaffolder sqlite
- What’s the path to the plaso project?: tmpdir
- What’s the name of the plugin?: test
- What’s the path to your test file?: test_database/does_not_exists
- File does not exists. Choose another.: test_database/twitter_ios_error.db
- Unable to open the database file. Choose another.: test_database/twitter_ios.db
- Do you want to have a output example for your SQL Query? [Y/n]: n
- Please write your SQL script for the plugin: select * from users
- The SQL query was ok.
- Do you want to name the query parse row: Users ? [Y/n]: Y
- Is the column a time event? updatedAt [Y/n]: Y
- Is the column a time event? createdDate [Y/n]: Y
- Enter (additional) timestamp events from the query [column-Name, aliasName...] or [abort]: abort
- Does the event Users need customizing? [y/N]: N
- Do you want to add another Query? [Y/n]: n
- Do you want to Generate the files [Y/n]: Y
-