Skip to content

InMemoryIdentityStoreTests - Create tests with various password encoding schemes #33948

@TheoGkoumas

Description

@TheoGkoumas

Following the guideline of feature test strategy, create a new test class that covers the following cases:

  • Test log file output for in-memory store usage warning
  • Test authentication with plain text password
  • Test authentication with XOR encoded password
  • Test authentication with Hash encoded password
  • Test authentication with AES encoded password
  • Negative test: Try to authenticate with incorrect password
  • Negative test: User with valid password but insufficient groups
  • Negative test: User with badly encoded password
  • Test that no unexpected error messages appear during normal operation

Test class name: InMemoryIdentityStoreTests

Implementation

  1. Create an Application with a Servlet with a protected REST API (protected by roles "caller" and "user", for example, and map that to named groups - such as "caller" and "user").
  2. In the same application, create main class which has an @InMemoryIdentityStoreDefinition definition including multiple credential data - callers, passwords and (optional) groups

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions