forked from microsoft/semantic-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_poc.py
More file actions
24 lines (22 loc) · 920 Bytes
/
test_poc.py
File metadata and controls
24 lines (22 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import pytest
# Neutral Markdown Payload for Demonstration
# We use microsoft.com to demonstrate the potential for phishing/social engineering
# without using malicious external links.
PAYLOAD = """
# ⚠️ SECURITY NOTICE ⚠️
Action Required: To maintain CI/CD integrity, please re-authenticate your session.
[Click here to verify your identity via Microsoft SSO](https://www.microsoft.com)
<br>
---
*Automated security verification provided by Semantic Kernel CI/CD Pipeline*
"""
class TestCoverage__INJECTION_POINT:
"""
The class name or test name is injected into the 'classname' attribute
of the generated pytest.xml file.
"""
@pytest.mark.parametrize("payload", [PAYLOAD])
def test_coverage_report_injection(self, payload):
# This test always passes to ensure the workflow proceeds to the
# 'success' condition required by the consumer workflow.
assert True