Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failing user_mgr_test unit tests #17

Open
FarahRasheed1 opened this issue Jul 30, 2024 · 1 comment
Open

failing user_mgr_test unit tests #17

FarahRasheed1 opened this issue Jul 30, 2024 · 1 comment

Comments

@FarahRasheed1
Copy link

A whole bunch of tests are failing for me in user_mgr_test.cpp

Output:

[----------] 4 tests from TestUserMgr (3 ms total)

[----------] 2 tests from GetCSVFromVector
[ RUN      ] GetCSVFromVector.EmptyVectorReturnsEmptyString
[       OK ] GetCSVFromVector.EmptyVectorReturnsEmptyString (0 ms)
[ RUN      ] GetCSVFromVector.ElementsAreJoinedByComma
[       OK ] GetCSVFromVector.ElementsAreJoinedByComma (0 ms)
[----------] 2 tests from GetCSVFromVector (0 ms total)

[----------] 2 tests from RemoveStringFromCSV
[ RUN      ] RemoveStringFromCSV.WithoutDeleteStringReturnsFalse
[       OK ] RemoveStringFromCSV.WithoutDeleteStringReturnsFalse (0 ms)
[ RUN      ] RemoveStringFromCSV.WithDeleteStringReturnsTrue
[       OK ] RemoveStringFromCSV.WithDeleteStringReturnsTrue (0 ms)
[----------] 2 tests from RemoveStringFromCSV (0 ms total)

[----------] 60 tests from UserMgrInTest
[ RUN      ] UserMgrInTest.GetPamModuleConfValueOnSuccess
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.GetPamModuleConfValueOnSuccess (0 ms)
[ RUN      ] UserMgrInTest.SetPamModuleConfValueOnSuccess
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.SetPamModuleConfValueOnSuccess (0 ms)
[ RUN      ] UserMgrInTest.SetPamModuleConfValueTempFileOnSuccess
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.SetPamModuleConfValueTempFileOnSuccess (0 ms)
[ RUN      ] UserMgrInTest.GetPamModuleConfValueOnFailure
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.GetPamModuleConfValueOnFailure (0 ms)
[ RUN      ] UserMgrInTest.SetPamModuleConfValueOnFailure
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.SetPamModuleConfValueOnFailure (0 ms)
[ RUN      ] UserMgrInTest.SetPamModuleConfValueTempFileOnFailure
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.SetPamModuleConfValueTempFileOnFailure (0 ms)
[ RUN      ] UserMgrInTest.IsUserExistEmptyInputThrowsError
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.IsUserExistEmptyInputThrowsError (0 ms)
[ RUN      ] UserMgrInTest.ThrowForUserDoesNotExistThrowsError
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.ThrowForUserDoesNotExistThrowsError (0 ms)
[ RUN      ] UserMgrInTest.ThrowForUserExistsThrowsError
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.ThrowForUserExistsThrowsError (0 ms)
[ RUN      ] UserMgrInTest.ThrowForUserNameConstraintsExceedIpmiMaxUserNameLenThrowsUserNameGroupFail
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.ThrowForUserNameConstraintsExceedIpmiMaxUserNameLenThrowsUserNameGroupFail (0 ms)
[ RUN      ] UserMgrInTest.ThrowForUserNameConstraintsExceedSystemMaxUserNameLenThrowsInvalidArgument
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.ThrowForUserNameConstraintsExceedSystemMaxUserNameLenThrowsInvalidArgument (0 ms)
[ RUN      ] UserMgrInTest.ThrowForUserNameConstraintsRegexMismatchThrowsInvalidArgument
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.ThrowForUserNameConstraintsRegexMismatchThrowsInvalidArgument (0 ms)
[ RUN      ] UserMgrInTest.UserAddNotRootFailedWithInternalFailure
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.UserAddNotRootFailedWithInternalFailure (0 ms)
[ RUN      ] UserMgrInTest.UserDeleteNotRootFailedWithInternalFailure
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.UserDeleteNotRootFailedWithInternalFailure (0 ms)
[ RUN      ] UserMgrInTest.ThrowForMaxGrpUserCountThrowsNoResourceWhenIpmiUserExceedLimit
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.ThrowForMaxGrpUserCountThrowsNoResourceWhenIpmiUserExceedLimit (0 ms)
[ RUN      ] UserMgrInTest.CreateUserThrowsInternalFailureWhenExecuteUserAddFails
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.CreateUserThrowsInternalFailureWhenExecuteUserAddFails (0 ms)
[ RUN      ] UserMgrInTest.DeleteUserThrowsInternalFailureWhenExecuteUserDeleteFails
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.DeleteUserThrowsInternalFailureWhenExecuteUserDeleteFails (0 ms)
[ RUN      ] UserMgrInTest.DeleteUserThrowsInternalFailureWhenExecuteUserClearFailRecords
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.DeleteUserThrowsInternalFailureWhenExecuteUserClearFailRecords (0 ms)
[ RUN      ] UserMgrInTest.ThrowForInvalidPrivilegeThrowsWhenPrivilegeIsInvalid
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.ThrowForInvalidPrivilegeThrowsWhenPrivilegeIsInvalid (0 ms)
[ RUN      ] UserMgrInTest.ThrowForInvalidPrivilegeNoThrowWhenPrivilegeIsValid
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.ThrowForInvalidPrivilegeNoThrowWhenPrivilegeIsValid (0 ms)
[ RUN      ] UserMgrInTest.ThrowForInvalidGroupsThrowsWhenGroupIsInvalid
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.ThrowForInvalidGroupsThrowsWhenGroupIsInvalid (0 ms)
[ RUN      ] UserMgrInTest.ThrowForInvalidGroupsNoThrowWhenGroupIsValid
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.ThrowForInvalidGroupsNoThrowWhenGroupIsValid (0 ms)
[ RUN      ] UserMgrInTest.RenameUserOnSuccess
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.RenameUserOnSuccess (0 ms)
[ RUN      ] UserMgrInTest.RenameUserThrowsInternalFailureIfExecuteUserModifyFails
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.RenameUserThrowsInternalFailureIfExecuteUserModifyFails (0 ms)
[ RUN      ] UserMgrInTest.DefaultUserModifyFailedWithInternalFailure
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.DefaultUserModifyFailedWithInternalFailure (0 ms)
[ RUN      ] UserMgrInTest.UpdateGroupsAndPrivOnSuccess
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.UpdateGroupsAndPrivOnSuccess (0 ms)
[ RUN      ] UserMgrInTest.UpdateGroupsAndPrivThrowsInternalFailureIfExecuteUserModifyFail
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.UpdateGroupsAndPrivThrowsInternalFailureIfExecuteUserModifyFail (0 ms)
[ RUN      ] UserMgrInTest.MinPasswordLengthReturnsIfValueIsTheSame
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.MinPasswordLengthReturnsIfValueIsTheSame (0 ms)
[ RUN      ] UserMgrInTest.MinPasswordLengthRejectsTooShortPasswordWithInvalidArgument
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.MinPasswordLengthRejectsTooShortPasswordWithInvalidArgument (0 ms)
[ RUN      ] UserMgrInTest.MinPasswordLengthOnSuccess
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.MinPasswordLengthOnSuccess (0 ms)
[ RUN      ] UserMgrInTest.MinPasswordLengthOnFailure
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.MinPasswordLengthOnFailure (0 ms)
[ RUN      ] UserMgrInTest.RememberOldPasswordTimesReturnsIfValueIsTheSame
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.RememberOldPasswordTimesReturnsIfValueIsTheSame (0 ms)
[ RUN      ] UserMgrInTest.RememberOldPasswordTimesOnSuccess
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.RememberOldPasswordTimesOnSuccess (0 ms)
[ RUN      ] UserMgrInTest.RememberOldPasswordTimesOnFailure
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.RememberOldPasswordTimesOnFailure (0 ms)
[ RUN      ] UserMgrInTest.MaxLoginAttemptBeforeLockoutReturnsIfValueIsTheSame
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.MaxLoginAttemptBeforeLockoutReturnsIfValueIsTheSame (0 ms)
[ RUN      ] UserMgrInTest.MaxLoginAttemptBeforeLockoutOnSuccess
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.MaxLoginAttemptBeforeLockoutOnSuccess (0 ms)
[ RUN      ] UserMgrInTest.MaxLoginAttemptBeforeLockoutOnFailure
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.MaxLoginAttemptBeforeLockoutOnFailure (0 ms)
[ RUN      ] UserMgrInTest.AccountUnlockTimeoutReturnsIfValueIsTheSame
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.AccountUnlockTimeoutReturnsIfValueIsTheSame (0 ms)
[ RUN      ] UserMgrInTest.AccountUnlockTimeoutOnSuccess
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.AccountUnlockTimeoutOnSuccess (0 ms)
[ RUN      ] UserMgrInTest.AccountUnlockTimeoutOnFailure
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.AccountUnlockTimeoutOnFailure (0 ms)
[ RUN      ] UserMgrInTest.UserEnableOnSuccess
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.UserEnableOnSuccess (0 ms)
[ RUN      ] UserMgrInTest.CreateDeleteUserSuccessForHostConsole
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.CreateDeleteUserSuccessForHostConsole (0 ms)
[ RUN      ] UserMgrInTest.UserEnableThrowsInternalFailureIfExecuteUserModifyFail
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.UserEnableThrowsInternalFailureIfExecuteUserModifyFail (0 ms)
[ RUN      ] UserMgrInTest.UserLockedForFailedAttemptReturnsFalseIfMaxLoginAttemptBeforeLockoutIsZero
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.UserLockedForFailedAttemptReturnsFalseIfMaxLoginAttemptBeforeLockoutIsZero (0 ms)
[ RUN      ] UserMgrInTest.UserLockedForFailedAttemptZeroFailuresReturnsFalse
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.UserLockedForFailedAttemptZeroFailuresReturnsFalse (0 ms)
[ RUN      ] UserMgrInTest.UserLockedForFailedAttemptFailIfGetFailedAttemptFail
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.UserLockedForFailedAttemptFailIfGetFailedAttemptFail (0 ms)
[ RUN      ] UserMgrInTest.UserLockedForFailedAttemptThrowsInternalFailureIfWrongDateFormat
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.UserLockedForFailedAttemptThrowsInternalFailureIfWrongDateFormat (0 ms)
[ RUN      ] UserMgrInTest.UserLockedForFailedAttemptReturnsFalseIfLastFailTimeHasTimedOut
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.UserLockedForFailedAttemptReturnsFalseIfLastFailTimeHasTimedOut (0 ms)
[ RUN      ] UserMgrInTest.CheckAndThrowForDisallowedGroupCreationOnSuccess
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.CheckAndThrowForDisallowedGroupCreationOnSuccess (0 ms)
[ RUN      ] UserMgrInTest.CheckAndThrowForDisallowedGroupCreationThrowsIfGroupNameTooLong
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.CheckAndThrowForDisallowedGroupCreationThrowsIfGroupNameTooLong (0 ms)
[ RUN      ] UserMgrInTest.CheckAndThrowForDisallowedGroupCreationThrowsIfGroupNameHasDisallowedCharacters
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.CheckAndThrowForDisallowedGroupCreationThrowsIfGroupNameHasDisallowedCharacters (0 ms)
[ RUN      ] UserMgrInTest.CheckAndThrowForDisallowedGroupCreationThrowsIfGroupNameHasDisallowedPrefix
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.CheckAndThrowForDisallowedGroupCreationThrowsIfGroupNameHasDisallowedPrefix (0 ms)
[ RUN      ] UserMgrInTest.CheckAndThrowForMaxGroupCountOnSuccess
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.CheckAndThrowForMaxGroupCountOnSuccess (0 ms)
[ RUN      ] UserMgrInTest.CheckAndThrowForGroupExist
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.CheckAndThrowForGroupExist (0 ms)
[ RUN      ] UserMgrInTest.ByDefaultAllGroupsArePredefinedGroups
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.ByDefaultAllGroupsArePredefinedGroups (0 ms)
[ RUN      ] UserMgrInTest.AddGroupThrowsIfPreDefinedGroupAdd
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.AddGroupThrowsIfPreDefinedGroupAdd (0 ms)
[ RUN      ] UserMgrInTest.DeleteGroupThrowsIfGroupIsNotAllowedToChange
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.DeleteGroupThrowsIfGroupIsNotAllowedToChange (0 ms)
[ RUN      ] UserMgrInTest.CreateGroupThrowsInternalFailureWhenExecuteGroupCreateFails
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.CreateGroupThrowsInternalFailureWhenExecuteGroupCreateFails (0 ms)
[ RUN      ] UserMgrInTest.DeleteGroupThrowsInternalFailureWhenExecuteGroupDeleteFails
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.DeleteGroupThrowsInternalFailureWhenExecuteGroupDeleteFails (0 ms)
[ RUN      ] UserMgrInTest.CheckAndThrowForGroupNotExist
unknown file: Failure
C++ exception with description "sd_bus_add_object_vtable: org.freedesktop.DBus.Error.InvalidArgs: Invalid argument" thrown in the test fixture's constructor.

[  FAILED  ] UserMgrInTest.CheckAndThrowForGroupNotExist (0 ms)
[----------] 60 tests from UserMgrInTest (0 ms total)

[----------] 1 test from ReadAllGroupsOnSystemTest
[ RUN      ] ReadAllGroupsOnSystemTest.OnlyReturnsPredefinedGroups
[       OK ] ReadAllGroupsOnSystemTest.OnlyReturnsPredefinedGroups (0 ms)
[----------] 1 test from ReadAllGroupsOnSystemTest (0 ms total)

[----------] Global test environment tear-down
[==========] 69 tests from 5 test suites ran. (4 ms total)
[  PASSED  ] 9 tests.
[  FAILED  ] 60 tests, listed below:
[  FAILED  ] UserMgrInTest.GetPamModuleConfValueOnSuccess
[  FAILED  ] UserMgrInTest.SetPamModuleConfValueOnSuccess
[  FAILED  ] UserMgrInTest.SetPamModuleConfValueTempFileOnSuccess
[  FAILED  ] UserMgrInTest.GetPamModuleConfValueOnFailure
[  FAILED  ] UserMgrInTest.SetPamModuleConfValueOnFailure
[  FAILED  ] UserMgrInTest.SetPamModuleConfValueTempFileOnFailure
[  FAILED  ] UserMgrInTest.IsUserExistEmptyInputThrowsError
[  FAILED  ] UserMgrInTest.ThrowForUserDoesNotExistThrowsError
[  FAILED  ] UserMgrInTest.ThrowForUserExistsThrowsError
[  FAILED  ] UserMgrInTest.ThrowForUserNameConstraintsExceedIpmiMaxUserNameLenThrowsUserNameGroupFail
[  FAILED  ] UserMgrInTest.ThrowForUserNameConstraintsExceedSystemMaxUserNameLenThrowsInvalidArgument
[  FAILED  ] UserMgrInTest.ThrowForUserNameConstraintsRegexMismatchThrowsInvalidArgument
[  FAILED  ] UserMgrInTest.UserAddNotRootFailedWithInternalFailure
[  FAILED  ] UserMgrInTest.UserDeleteNotRootFailedWithInternalFailure
[  FAILED  ] UserMgrInTest.ThrowForMaxGrpUserCountThrowsNoResourceWhenIpmiUserExceedLimit
[  FAILED  ] UserMgrInTest.CreateUserThrowsInternalFailureWhenExecuteUserAddFails
[  FAILED  ] UserMgrInTest.DeleteUserThrowsInternalFailureWhenExecuteUserDeleteFails
[  FAILED  ] UserMgrInTest.DeleteUserThrowsInternalFailureWhenExecuteUserClearFailRecords
[  FAILED  ] UserMgrInTest.ThrowForInvalidPrivilegeThrowsWhenPrivilegeIsInvalid
[  FAILED  ] UserMgrInTest.ThrowForInvalidPrivilegeNoThrowWhenPrivilegeIsValid
[  FAILED  ] UserMgrInTest.ThrowForInvalidGroupsThrowsWhenGroupIsInvalid
[  FAILED  ] UserMgrInTest.ThrowForInvalidGroupsNoThrowWhenGroupIsValid
[  FAILED  ] UserMgrInTest.RenameUserOnSuccess
[  FAILED  ] UserMgrInTest.RenameUserThrowsInternalFailureIfExecuteUserModifyFails
[  FAILED  ] UserMgrInTest.DefaultUserModifyFailedWithInternalFailure
[  FAILED  ] UserMgrInTest.UpdateGroupsAndPrivOnSuccess
[  FAILED  ] UserMgrInTest.UpdateGroupsAndPrivThrowsInternalFailureIfExecuteUserModifyFail
[  FAILED  ] UserMgrInTest.MinPasswordLengthReturnsIfValueIsTheSame
[  FAILED  ] UserMgrInTest.MinPasswordLengthRejectsTooShortPasswordWithInvalidArgument
[  FAILED  ] UserMgrInTest.MinPasswordLengthOnSuccess
[  FAILED  ] UserMgrInTest.MinPasswordLengthOnFailure
[  FAILED  ] UserMgrInTest.RememberOldPasswordTimesReturnsIfValueIsTheSame
[  FAILED  ] UserMgrInTest.RememberOldPasswordTimesOnSuccess
[  FAILED  ] UserMgrInTest.RememberOldPasswordTimesOnFailure
[  FAILED  ] UserMgrInTest.MaxLoginAttemptBeforeLockoutReturnsIfValueIsTheSame
[  FAILED  ] UserMgrInTest.MaxLoginAttemptBeforeLockoutOnSuccess
[  FAILED  ] UserMgrInTest.MaxLoginAttemptBeforeLockoutOnFailure
[  FAILED  ] UserMgrInTest.AccountUnlockTimeoutReturnsIfValueIsTheSame
[  FAILED  ] UserMgrInTest.AccountUnlockTimeoutOnSuccess
[  FAILED  ] UserMgrInTest.AccountUnlockTimeoutOnFailure
[  FAILED  ] UserMgrInTest.UserEnableOnSuccess
[  FAILED  ] UserMgrInTest.CreateDeleteUserSuccessForHostConsole
[  FAILED  ] UserMgrInTest.UserEnableThrowsInternalFailureIfExecuteUserModifyFail
[  FAILED  ] UserMgrInTest.UserLockedForFailedAttemptReturnsFalseIfMaxLoginAttemptBeforeLockoutIsZero
[  FAILED  ] UserMgrInTest.UserLockedForFailedAttemptZeroFailuresReturnsFalse
[  FAILED  ] UserMgrInTest.UserLockedForFailedAttemptFailIfGetFailedAttemptFail
[  FAILED  ] UserMgrInTest.UserLockedForFailedAttemptThrowsInternalFailureIfWrongDateFormat
[  FAILED  ] UserMgrInTest.UserLockedForFailedAttemptReturnsFalseIfLastFailTimeHasTimedOut
[  FAILED  ] UserMgrInTest.CheckAndThrowForDisallowedGroupCreationOnSuccess
[  FAILED  ] UserMgrInTest.CheckAndThrowForDisallowedGroupCreationThrowsIfGroupNameTooLong
[  FAILED  ] UserMgrInTest.CheckAndThrowForDisallowedGroupCreationThrowsIfGroupNameHasDisallowedCharacters
[  FAILED  ] UserMgrInTest.CheckAndThrowForDisallowedGroupCreationThrowsIfGroupNameHasDisallowedPrefix
[  FAILED  ] UserMgrInTest.CheckAndThrowForMaxGroupCountOnSuccess
[  FAILED  ] UserMgrInTest.CheckAndThrowForGroupExist
[  FAILED  ] UserMgrInTest.ByDefaultAllGroupsArePredefinedGroups
[  FAILED  ] UserMgrInTest.AddGroupThrowsIfPreDefinedGroupAdd
[  FAILED  ] UserMgrInTest.DeleteGroupThrowsIfGroupIsNotAllowedToChange
[  FAILED  ] UserMgrInTest.CreateGroupThrowsInternalFailureWhenExecuteGroupCreateFails
[  FAILED  ] UserMgrInTest.DeleteGroupThrowsInternalFailureWhenExecuteGroupDeleteFails
[  FAILED  ] UserMgrInTest.CheckAndThrowForGroupNotExist

60 FAILED TESTS

@FarahRasheed1
Copy link
Author

I have the same issue when running the tests using the openbmc-build-scripts ./run-unit-test-docker.sh script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant