Page MenuHomeDevCentral

TriggerBuildFactory::hasToken
ClosedPublic

Authored by dereckson on Sep 4 2016, 00:04.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 15:47
Unknown Object (File)
Fri, Nov 8, 02:54
Unknown Object (File)
Wed, Nov 6, 23:56
Unknown Object (File)
Wed, Nov 6, 23:21
Unknown Object (File)
Tue, Nov 5, 16:35
Unknown Object (File)
Tue, Nov 5, 14:49
Unknown Object (File)
Thu, Oct 31, 05:02
Unknown Object (File)
Sun, Oct 27, 05:08
Subscribers
None

Details

Summary

If the application using the factory wish to know if a token exists
for such image, it's probably easier to check the current state of
the tokens array than the source configuration.

This is the case for the Notifications center, where there is a JSON
configuration file to parse to get the tokens.

We so provide a TriggerBuildFactory::hasToken boolean method to check
if our $tokens array does have the specified image as key.

Ref T959.

Test Plan

New unit tests.

Diff Detail

Repository
rKDOCKERHUB Keruald Docker Hub
Lint
Lint Passed
Unit
Tests Passed
Branch
master
Build Status
Buildable 998
Build 1207: arc lint + arc unit

Event Timeline

dereckson retitled this revision from to TriggerBuildFactory::hasToken.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: dereckson.
dereckson edited edge metadata.
This revision is now accepted and ready to land.Sep 4 2016, 00:39
This revision was automatically updated to reflect the committed changes.