This repository was archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Added EventName property to the PackageValidationAuditEntry #133
Merged
Merged
Changes from 1 commit
Commits
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 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 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 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,71 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace NuGet.Jobs.Validation.Common | ||
{ | ||
public static class ValidationEvent | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider turning this into enums There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you're concerned about the human readability of having an enum, I would suggest having two fields
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
{ | ||
/// <summary> | ||
/// Virus scan request is about to be sent | ||
/// </summary> | ||
public const string BeforeVirusScanRequest = "BeforeVirusScan"; | ||
|
||
/// <summary> | ||
/// The validation queue item was deadlettered after several attempts of processing | ||
/// </summary> | ||
public const string Deadlettered = "Deadlettered"; | ||
|
||
/// <summary> | ||
/// The detail item passed with a <see cref="PackageNotClean"/> result | ||
/// </summary> | ||
public const string NotCleanReason = "NotCleanReason"; | ||
|
||
/// <summary> | ||
/// Virus scan service reported package as clean | ||
/// </summary> | ||
public const string PackageClean = "PackageClean"; | ||
|
||
/// <summary> | ||
/// Packages download was successful | ||
/// </summary> | ||
public const string PackageDownloaded = "PackageDownloaded"; | ||
|
||
/// <summary> | ||
/// Virus scan service reported package as not clean | ||
/// </summary> | ||
public const string PackageNotClean = "PackageNotClean"; | ||
|
||
/// <summary> | ||
/// Virus scan service reported its failure to scan package (it does *not* mean package is not clean) | ||
/// </summary> | ||
public const string ScanFailed = "ScanFailed"; | ||
|
||
/// <summary> | ||
/// The detail item passed with <see cref="ScanFailed"/> result | ||
/// </summary> | ||
public const string ScanFailureReason = "ScanFailureReason"; | ||
|
||
/// <summary> | ||
/// An exception was thrown during validator execution | ||
/// </summary> | ||
public const string ValidatorException = "ValidatorException"; | ||
|
||
/// <summary> | ||
/// The virus scan request was submitted | ||
/// </summary> | ||
public const string VirusScanRequestSent = "VirusScanRequestSent"; | ||
|
||
/// <summary> | ||
/// Sending the virus scanning request had failed | ||
/// </summary> | ||
public const string VirusScanRequestFailed = "VirusScanRequestFailed"; | ||
|
||
/// <summary> | ||
/// Package was successfully unzipped | ||
/// </summary> | ||
public const string UnzipSucceeeded = "UnzipSucceeeded"; | ||
} | ||
} |
This file contains 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 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 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 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a copyright header.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done