-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
cliTest for userLastSeen #33244
cliTest for userLastSeen #33244
Conversation
2f6c424
to
a9198c2
Compare
Codecov Report
@@ Coverage Diff @@
## master #33244 +/- ##
=========================================
Coverage 64.02% 64.02%
Complexity 18187 18187
=========================================
Files 1179 1179
Lines 68698 68698
Branches 1271 1271
=========================================
Hits 43987 43987
Misses 24341 24341
Partials 370 370
Continue to review full report at Codecov.
|
public function theCommandOutputOfUserLastSeenShouldBeRecently() { | ||
$currentTime = \gmdate('d.m.Y H:i'); | ||
$lastOutput = $this->featureContext->getStdOutOfOccCommand(); | ||
PHPUnit_Framework_Assert::assertContains($currentTime, $lastOutput); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this might fail if SUT is different from testing server and also if the user is created on sec. 59 and check is done in the next minute.
I fear we would have random failures that will confuse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I should modify this
@@ -243,6 +243,19 @@ public function theAdministratorGetsTheGroupsOfUserInJsonUsingTheOccCommand($use | |||
); | |||
} | |||
|
|||
/** | |||
* @When the administrator retrieves the last seen of user :username using the occ command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
somehow that sounds strange
maybe:
* @When the administrator retrieves the last seen of user :username using the occ command | |
* @When the administrator retrieves the time when user :username was last seen using the occ command |
@phil-davis what does English native suggest?
a9198c2
to
9fc33f8
Compare
@individual-it, I have made the changes, can you please review it again. |
9fc33f8
to
3d854b1
Compare
Backport on: #33260 |
Description
This PR adds more tests for cliProvisioning userLastSeen using occ commands.
Related issue: #33052
How Has This Been Tested?
Locally
Types of changes
Checklist: