-
Notifications
You must be signed in to change notification settings - Fork 506
fix: Merging Dev v4 changes to main #783
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
Merged
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
49862b0
created the unit testcases
Dhruvkumar-Microsoft 88fd995
added the changes
Dhruvkumar-Microsoft b92c499
Add unit tests
Kingshuk-Microsoft ab41f19
Refactor test files and remove empty __init__.py files; streamline te…
Kingshuk-Microsoft 9f57a38
Add dev-v4 branch to workflow triggers
Kingshuk-Microsoft caefaa5
Update workflow triggers to include macae-v4-unittestcases-kd branch
Kingshuk-Microsoft e2b8029
Update workflow triggers to include additional branches for testing
Kingshuk-Microsoft e8edfb0
Update test workflow to include macae-v4-unittestcases-kd branch and …
Kingshuk-Microsoft a87eefb
Add macae-v4-unittestcases-kd branch to workflow triggers
Kingshuk-Microsoft 9644c93
Refine pytest command in test workflow to simplify coverage reporting
Kingshuk-Microsoft c08079e
Add platform-specific skip marker for tests using sys.modules mocking
Kingshuk-Microsoft baa07a6
Refactor tests for cross-platform compatibility by replacing sys.modu…
Kingshuk-Microsoft 12bf2a8
Add platform-specific skip marker for tests using sys.modules mocking…
Kingshuk-Microsoft dd70537
Refactor import statements in app.py and test_app.py for consistency …
Kingshuk-Microsoft 90f9d77
Add platform-specific skip markers for Linux in test cases to handle …
Kingshuk-Microsoft c6a7b3d
Refactor test cases in test_app.py and test_agent_registry.py to remo…
Kingshuk-Microsoft 8315bbe
Add platform check for test skipping on Linux due to Mock/FastAPI com…
Kingshuk-Microsoft eac9ec0
Refactor test workflow to run app.py tests separately and enhance cov…
Kingshuk-Microsoft ebf39b7
Refactor test workflow to improve coverage reporting and streamline a…
Kingshuk-Microsoft e5db332
Add quiet flag to pytest commands for cleaner output during test exec…
Kingshuk-Microsoft b380112
Suppress output of app.py tests in CI workflow for cleaner logs
Kingshuk-Microsoft 9a158aa
Enhance app.py test execution by suppressing output and ensuring comp…
Kingshuk-Microsoft 6a6e354
Refactor test workflow to run backend tests together and improve outp…
Kingshuk-Microsoft dcca12e
Capture pytest output for backend tests and report coverage
Kingshuk-Microsoft a749bd2
Refactor backend test execution to streamline coverage reporting and …
Kingshuk-Microsoft 4551f12
Capture pytest output for backend tests and display the last line in …
Kingshuk-Microsoft fcbb1b9
Update test workflow to refine branch triggers and enhance coverage r…
Kingshuk-Microsoft 5273a37
Add 'macae-v4-unittestcases-kd' branch to push triggers in test workflow
Kingshuk-Microsoft 7967b35
Update references to Bicep files in next-steps.md for consistency
Kingshuk-Microsoft bc4bc97
Update references to Bicep files in next-steps.md for accuracy
Kingshuk-Microsoft 566096b
Remove 'macae-v4-unittestcases-kd' branch from push triggers in test …
Kingshuk-Microsoft c5b11af
Merge branch 'dev-v4' into macae-v4-unittestcases-kd
Kingshuk-Microsoft b0b9f5f
Refactor tests for RAIAgent and FoundryAgentTemplate to improve mock …
Kingshuk-Microsoft eb5d8f1
Merge pull request #753 from microsoft/macae-v4-unittestcases-kd
Roopan-Microsoft 7f1e234
fixed codeql issues
Kanchan-Microsoft df9ea9d
fixed pylint issue
Kanchan-Microsoft 112b00c
pylint issue
Kanchan-Microsoft ec0f915
reverted the unittestcase changes
Kanchan-Microsoft 6710b90
Merge pull request #779 from microsoft/psl-macaekn
Roopan-Microsoft d8a4ef7
Merge pull request #786 from microsoft/main
Prajwal-Microsoft 221a8cf
Refactor import paths to use relative imports for consistency across …
Kingshuk-Microsoft 19fd09d
Refactor mocking of v4.models in test settings and plan_to_mplan_conv…
Kingshuk-Microsoft ff91881
Add unit tests for OrchestrationManager with comprehensive mocking
Kingshuk-Microsoft 99b966b
Update test workflow to include demo-v4 branch and ensure consistent …
Kingshuk-Microsoft 6577ea0
Remove macae-v4-unittestcases-kd branch from test workflow triggers
Kingshuk-Microsoft bdd15df
Add quiet mode to pytest command in test workflow for cleaner output
Kingshuk-Microsoft 49a54da
Merge pull request #790 from microsoft/macae-v4-unittestcases-kd
Roopan-Microsoft 3b5043b
Merge pull request #777 from microsoft/psl-codeql
Roopan-Microsoft 6c005a6
macae-v4-fix
Ritesh-Microsoft 5543104
test: macae-v4-fix-stabilize-test-cases
Avijit-Microsoft 9ede715
pushed fix for code quality
Kanchan-Microsoft cf11055
Merge pull request #793 from microsoft/psl-codefix
Roopan-Microsoft 09d8068
fixed copilot suggestions
Kanchan-Microsoft b92a822
Merge pull request #794 from microsoft/psl-codefix
Roopan-Microsoft f4d5ea7
fixed new suggestions
Kanchan-Microsoft ff6e18d
Merge pull request #796 from microsoft/psl-codefix
Roopan-Microsoft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| [run] | ||
| source = . | ||
| omit = | ||
| src/mcp_server/* | ||
| src/backend/tests/* | ||
| src/tests/mcp_server/* | ||
| src/tests/agents/* | ||
| src/**/__init__.py | ||
| tests/e2e-test/* | ||
| */venv/* | ||
| */env/* | ||
| */.pytest_cache/* | ||
| */node_modules/* | ||
|
|
||
| [paths] | ||
| source = | ||
| src/backend | ||
| */site-packages | ||
|
|
||
| [report] | ||
| exclude_lines = | ||
| pragma: no cover | ||
| def __repr__ | ||
| raise AssertionError | ||
| raise NotImplementedError |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # src package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # backend package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| """ | ||
| Empty __init__.py file for auth tests package. | ||
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| """ | ||
| Test configuration for auth module tests. | ||
| """ | ||
|
|
||
| import pytest | ||
| import sys | ||
| import os | ||
| import base64 | ||
| import json | ||
|
|
||
| # Add the backend directory to the Python path for imports | ||
| sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..', 'backend')) | ||
|
|
||
| @pytest.fixture | ||
| def mock_sample_headers(): | ||
| """Mock headers with EasyAuth authentication data.""" | ||
| return { | ||
| "x-ms-client-principal-id": "12345678-1234-1234-1234-123456789012", | ||
| "x-ms-client-principal-name": "testuser@example.com", | ||
| "x-ms-client-principal-idp": "aad", | ||
| "x-ms-token-aad-id-token": "sample.jwt.token", | ||
| "x-ms-client-principal": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsInRpZCI6IjEyMzQ1Njc4LTEyMzQtMTIzNC0xMjM0LTEyMzQ1Njc4OTAxMiJ9" | ||
| } | ||
|
|
||
| @pytest.fixture | ||
| def mock_empty_headers(): | ||
| """Mock headers without authentication data.""" | ||
| return { | ||
| "content-type": "application/json", | ||
| "user-agent": "test-agent" | ||
| } | ||
|
|
||
| @pytest.fixture | ||
| def mock_valid_base64_principal(): | ||
| """Mock valid base64 encoded principal with tenant ID.""" | ||
| mock_data = { | ||
| "typ": "JWT", | ||
| "alg": "RS256", | ||
| "tid": "87654321-4321-4321-4321-210987654321", | ||
| "oid": "12345678-1234-1234-1234-123456789012", | ||
| "preferred_username": "testuser@example.com", | ||
| "name": "Test User" | ||
| } | ||
|
|
||
| json_str = json.dumps(mock_data) | ||
| return base64.b64encode(json_str.encode('utf-8')).decode('utf-8') | ||
|
|
||
| @pytest.fixture | ||
| def mock_invalid_base64_principal(): | ||
| """Mock invalid base64 encoded principal.""" | ||
| return "invalid_base64_string!" | ||
|
|
||
| @pytest.fixture | ||
| def sample_user_mock(): | ||
| """Mock sample_user data for testing.""" | ||
| return { | ||
| "x-ms-client-principal-id": "00000000-0000-0000-0000-000000000000", | ||
| "x-ms-client-principal-name": "testusername@contoso.com", | ||
| "x-ms-client-principal-idp": "aad", | ||
| "x-ms-token-aad-id-token": "your_aad_id_token", | ||
| "x-ms-client-principal": "your_base_64_encoded_token" | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.