Part of lp.hardwaredb.scripts.tests.test_hwdb_submission_processing View In Hierarchy
Method | setUp | Setup the test environment. |
Method | getLogData | Undocumented |
Method | setHALDevices | Undocumented |
Method | testGetDriverNoDriverInfo | Test of HALDevice.getDriver(). |
Method | testGetDriverWithDriverInfo | Test of HALDevice.getDriver(). |
Method | testEnsureVendorIDVendorNameExistsRegularCase | Test of ensureVendorIDVendorNameExists(self), regular case. |
Method | runTestEnsureVendorIDVendorNameExistsVendorNameUnknown | Test of ensureVendorIDVendorNameExists(self), special case. |
Method | testEnsureVendorIDVendorNameExistsVendorPCI | Test of ensureVendorIDVendorNameExists(self), PCI bus. |
Method | testEnsureVendorIDVendorNameExistsVendorPCCARD | Test of ensureVendorIDVendorNameExists(self), PCCARD bus. |
Method | testEnsureVendorIDVendorNameExistVendorUSB | Test of ensureVendorIDVendorNameExists(self), USB bus. |
Method | testEnsureVendorIDVendorNameExistVendorSCSI | Test of ensureVendorIDVendorNameExists(self), SCSI bus. |
Method | testCreateDBDataForSimpleDevice | Test of HALDevice.createDBData. |
Method | testCreateDBDataForDeviceWithOneDriver | Test of HALDevice.createDBData. |
Method | testCreateDBDataForDeviceWithTwoDrivers | Test of HALDevice.createDBData. |
Method | createSubmissionData | Create a submission. |
Method | getSampleData | Return the submission data of a short valid submission. |
Method | assertSampleDeviceCreated | Assert that data for the device exists in HWDB tables. |
Method | assertAllSampleDevicesCreated | Assert that the devices from the sample submission are processed. |
Method | testProcessSubmissionValidData | Test of SubmissionParser.processSubmission(). |
Method | testProcessSubmissionValidBzip2CompressedData | Test of SubmissionParser.processSubmission(). |
Method | testProcessSubmissionInvalidData | Test of SubmissionParser.processSubmission(). |
Method | testProcessSubmissionInconsistentData | Test of SubmissionParser.processSubmission(). |
Method | test_processSubmission_udev_data | Test of SubmissionParser.processSubmission(). |
Method | test_processSubmission_buildDeviceList_failing | Test of SubmissionParser.processSubmission(). |
Method | testProcessSubmissionRealData | Test of SubmissionParser.processSubmission(). |
Method | test_root_device | Test o SubmissionParser.root_device. |
Method | testPendingSubmissionProcessing | Test of process_pending_submissions(). |
Method | testOopsLogging | Test if OOPSes are properly logged. |
Method | testProcessingLoopExceptionHandling | Test of the exception handling of ProcessingLoop.__call__() |
Inherited from TestCaseHWDB:
Method | assertWarningMessage | Search for message in the log entries for submission_key. |
Method | assertErrorMessage | Search for log_message in the log entries for submission_key. |
Inherited from TestCase (via TestCaseHWDB):
Method | becomeDbUser | Commit, then log into the database as dbuser . |
Method | __str__ | The string representation of a test is its id. |
Method | useContext | Use the supplied context in this test. |
Method | makeTemporaryDirectory | Create a temporary directory, and return its path. |
Method | installKarmaRecorder | Set up and return a KarmaRecorder . |
Method | assertProvides | Assert 'obj' correctly provides 'interface'. |
Method | assertNotifies | Assert that a callable performs a given notification. |
Method | assertNoNotification | Assert that no notifications are generated by the callable. |
Method | assertSqlAttributeEqualsDate | Fail unless the value of the attribute is equal to the date. |
Method | assertTextMatchesExpressionIgnoreWhitespace | Undocumented |
Method | assertIsInstance | Assert that an instance is an instance of assert_class. |
Method | assertIsNot | Assert that expected is not the same object as observed . |
Method | assertContentEqual | Assert that 'iter1' has the same content as 'iter2'. |
Method | assertRaisesWithContent | Check if the given exception is raised with given content. |
Method | assertBetween | Assert that 'variable' is strictly between two boundaries. |
Method | assertVectorEqual | Apply assertEqual to all given pairs in one go. |
Method | expectedLog | Expect a log to be written that matches the regex. |
Method | pushConfig | Push some key-value pairs into a section of the config. |
Method | attachOopses | Undocumented |
Method | attachLibrarianLog | Include the logChunks from fixture in the test details. |
Method | assertStatementCount | Assert that the expected number of SQL statements occurred. |
Method | useTempDir | Use a temporary directory for this test. |
Method | assertEmailHeadersEqual | Assert that two email headers are equal. |
Method | assertStartsWith | Undocumented |
Method | assertEndsWith | Asserts that s ends with suffix. |
Method | checkPermissions | Check if the used_permissions match expected_permissions. |
Method | assertEmailQueueLength | Pop the email queue, assert its length, and return it. |
Method | _unfoldEmailHeader | Unfold a multiline email header. |
A HWVendorID record is not created by HALDevice.ensureVendorIDVendorNameExists for certain buses.
Test for a HAL device without driver data.
Test of a HAL device with one driver.
Test for a HAL device with two drivers.
The test data contains two devices: A system and a PCI device. The system has no associated drivers; the PCI device is associated with the ahci driver.
Regular case: Process valid compressed submission data.
Regular case: Process valid compressed submission data.
If a submission contains formally invalid data, it is rejected.
If a submission contains inconsistent data, it is rejected.
Variant with udev data.
If the method buildDeviceList() fails for a submission, it is rejected.
Test with data from a real submission.