Skip to content

Commit df5cb3d

Browse files
authored
[Test] Add a dedicate helper class for randomizing Authentication (#85590)
The Authentication class has many internal logics about what values can or cannot be combined together. It is not straightforward to always get the logic right when trying to create such an object for tests. This could lead to spurious failures or incomplete test coverage. This PR adds a helper class for creating such an object with necessary configurabililty. The relevant methods in AuthenticationTests now delegate to the new class to avoid having to touch too many files in one PR. The ultimate goal is to have it used in every place where an Authentication object is needed for test to replace any calls to constructors or mocking.
1 parent cfafca7 commit df5cb3d

File tree

2 files changed

+542
-132
lines changed

2 files changed

+542
-132
lines changed

0 commit comments

Comments
 (0)