Skip to content

Entra functional tests for 5.5, 5.6 and 5.7 fail when the tenant has App Management Policy data #2167

Description

@tkol2022

Prerequisites

  • This issue has an informative and human-readable title.

ScubaGear Version

Main branch and all development branches in synch with main.

Operating System

Windows 11

PowerShell Version

5.1

M365 Environment and License(s)

Not environment specific.

🐛 Summary

New Entra policy checks (5.5, 5.6 and 5.7) dealing with better security for registered application credentials were introduced into ScubaGear. The functional tests for these new policies Fail when the tenant has app management policy data which creates the app_management_policies in the JSON. This is because the functional tests assume that the tenant only has data for the tenant-level default app policies. If there is data from the tenant that populates the app_management_policies JSON, the tests effectively get thrown off. The fix should be simple. Redesign the tests so that they account for the app_management_policies data.

Image Image

Steps to reproduce

  1. Go to the Enterprise Applications > Security > Application policies node and open Restrict max password lifetime

  2. Select All applications with exclusions

  3. Define a couple of excluded apps. For each app, set its max password lifetime to an expiration that exceeds the baseline compliant value.

  4. Run the respective 5.x functional tests and observe the tests fail.

Image Image

Expected behavior

The functional tests should work as expected regardless of the state of the tenant.

Output from Initialize-SCuBA (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue or pull request addresses broken functionality

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions