Skip to content

Conversation

@pmstss
Copy link
Contributor

@pmstss pmstss commented Mar 5, 2025

No description provided.

@pmstss pmstss added the Type: enhancement New feature or request. label Mar 5, 2025
@pmstss pmstss self-assigned this Mar 5, 2025
@pmstss pmstss requested a review from Copilot March 5, 2025 15:07
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR converts test identifiers from being based on the TestType enum to using strings throughout the codebase. The change simplifies test configuration by replacing enum values with their string equivalents.

  • Updated all examples, tests, and configurations to use string test ids (e.g. "xss" instead of TestType.CrossSiteScripting).
  • Removed the TestType enum along with its related validation and serialization tests.

Reviewed Changes

File Description
src/SecTester.Runner/README.md Updated code snippets and documentation to use string test ids.
test/SecTester.Scan.Tests/Commands/CreateScanTests.cs Modified tests to use string test ids.
test/SecTester.Scan.Tests/DefaultScanFactoryTests.cs Adjusted scan configuration tests to use strings.
test/SecTester.Scan.Tests/ScanSettingsTests.cs Updated tests to reflect string-based test ids and adjusted error validations.
test/SecTester.Scan.Tests/ScanSettingsBuilderTests.cs Updated builder tests to use strings.
src/SecTester.Scan/README.md Updated documentation examples to demonstrate string test ids.
src/SecTester.Scan/ScanSettings.cs Refactored ScanSettings to accept IEnumerable and removed enum-based validation.
src/SecTester.Scan/Models/ScanConfig.cs Changed scan configuration property to use string test ids.
test/SecTester.Scan.Tests/MessageSerializerTests.cs Removed obsolete enum serialization tests for test types.
src/SecTester.Scan/ScanSettingsBuilder.cs Updated builder implementation to use string test ids.
test/SecTester.Runner.Tests/SecScanTests.cs Revamped tests to use string test ids.
test/SecTester.Runner.Tests/SecRunnerTests.cs Updated test scan builder usage to use strings.
test/SecTester.Scan.Tests/DefaultScansTests.cs Adjusted tests to reflect string test id usage.
src/SecTester.Scan/Models/TestType.cs Removed the TestType enum as part of the conversion.

Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.

@pmstss pmstss requested a review from derevnjuk March 5, 2025 16:00
@pmstss pmstss marked this pull request as ready for review March 5, 2025 16:08
@derevnjuk derevnjuk merged commit 18e70a4 into master Mar 5, 2025
6 checks passed
@derevnjuk derevnjuk deleted the feat/test_ids_as_strings branch March 5, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: enhancement New feature or request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants