From 471e978afba66dc2c367dc357ccf83f91f34e17e Mon Sep 17 00:00:00 2001 From: David Roe Date: Wed, 18 Oct 2023 16:29:34 +0100 Subject: [PATCH] test: update kpi snapshots --- .../classification/schema/.snapshots/TestJava | 44 ++++++++++++++++--- .../schema/.snapshots/TestJavaKPI | 6 +-- .../classification/schema/.snapshots/TestPHP | 4 +- .../schema/.snapshots/TestPHPKPI | 4 +- 4 files changed, 46 insertions(+), 12 deletions(-) diff --git a/internal/classification/schema/.snapshots/TestJava b/internal/classification/schema/.snapshots/TestJava index 746598194..6128ed6d9 100644 --- a/internal/classification/schema/.snapshots/TestJava +++ b/internal/classification/schema/.snapshots/TestJava @@ -1,4 +1,4 @@ -([]testhelper.ClassificationResult) (len=36) { +([]testhelper.ClassificationResult) (len=38) { (testhelper.ClassificationResult) { Name: (string) (len=25) "RepositorySystemHookEvent", Decision: (classify.ClassificationDecision) { @@ -109,6 +109,23 @@ } } }, + (testhelper.ClassificationResult) { + Name: (string) (len=29) "QueryRobotDialogDetailRequest", + Decision: (classify.ClassificationDecision) { + State: (classify.ValidationState) (len=7) "invalid", + Reason: (string) (len=19) "only_db_identifiers" + }, + Properties: (map[string]testhelper.ClassificationResult) (len=1) { + (string) (len=10) "setOwnerId": (testhelper.ClassificationResult) { + Name: (string) (len=10) "setOwnerId", + Decision: (classify.ClassificationDecision) { + State: (classify.ValidationState) (len=5) "valid", + Reason: (string) (len=25) "known_database_identifier" + }, + Properties: (map[string]testhelper.ClassificationResult) + } + } + }, (testhelper.ClassificationResult) { Name: (string) (len=15) "RSADigestSigner", Decision: (classify.ClassificationDecision) { @@ -286,6 +303,23 @@ } } }, + (testhelper.ClassificationResult) { + Name: (string) (len=20) "UserOAuthAccessToken", + Decision: (classify.ClassificationDecision) { + State: (classify.ValidationState) (len=5) "valid", + Reason: (string) (len=34) "valid_object_with_valid_properties" + }, + Properties: (map[string]testhelper.ClassificationResult) (len=1) { + (string) (len=13) "getClientName": (testhelper.ClassificationResult) { + Name: (string) (len=13) "getClientName", + Decision: (classify.ClassificationDecision) { + State: (classify.ValidationState) (len=5) "valid", + Reason: (string) (len=13) "known_pattern" + }, + Properties: (map[string]testhelper.ClassificationResult) + } + } + }, (testhelper.ClassificationResult) { Name: (string) (len=13) "UserQueryImpl", Decision: (classify.ClassificationDecision) { @@ -443,8 +477,8 @@ (string) (len=9) "getUserId": (testhelper.ClassificationResult) { Name: (string) (len=9) "getUserId", Decision: (classify.ClassificationDecision) { - State: (classify.ValidationState) (len=7) "invalid", - Reason: (string) (len=16) "invalid_property" + State: (classify.ValidationState) (len=5) "valid", + Reason: (string) (len=25) "known_database_identifier" }, Properties: (map[string]testhelper.ClassificationResult) }, @@ -547,8 +581,8 @@ (string) (len=9) "setUserId": (testhelper.ClassificationResult) { Name: (string) (len=9) "setUserId", Decision: (classify.ClassificationDecision) { - State: (classify.ValidationState) (len=7) "invalid", - Reason: (string) (len=16) "invalid_property" + State: (classify.ValidationState) (len=5) "valid", + Reason: (string) (len=25) "known_database_identifier" }, Properties: (map[string]testhelper.ClassificationResult) }, diff --git a/internal/classification/schema/.snapshots/TestJavaKPI b/internal/classification/schema/.snapshots/TestJavaKPI index 41c3c2acd..5cc31ffe2 100644 --- a/internal/classification/schema/.snapshots/TestJavaKPI +++ b/internal/classification/schema/.snapshots/TestJavaKPI @@ -1,8 +1,8 @@ (testhelper.KPI) { DetectionsCount: (int) 6230, - ValidDetectionsCount: (int) 126, - ValidObjectDetectionsCount: (int) 34, - ValidFieldDetectionsCount: (int) 92, + ValidDetectionsCount: (int) 131, + ValidObjectDetectionsCount: (int) 35, + ValidFieldDetectionsCount: (int) 96, ExpectedValidDetectionsCount: (int) 137, ExpectedValidObjectDetectionsCount: (int) 37, ExpectedValidFieldDetectionsCount: (int) 100, diff --git a/internal/classification/schema/.snapshots/TestPHP b/internal/classification/schema/.snapshots/TestPHP index ace750ece..854276b60 100644 --- a/internal/classification/schema/.snapshots/TestPHP +++ b/internal/classification/schema/.snapshots/TestPHP @@ -411,8 +411,8 @@ (string) (len=7) "getName": (testhelper.ClassificationResult) { Name: (string) (len=7) "getName", Decision: (classify.ClassificationDecision) { - State: (classify.ValidationState) (len=7) "invalid", - Reason: (string) (len=16) "invalid_property" + State: (classify.ValidationState) (len=5) "valid", + Reason: (string) (len=22) "valid_extended_pattern" }, Properties: (map[string]testhelper.ClassificationResult) }, diff --git a/internal/classification/schema/.snapshots/TestPHPKPI b/internal/classification/schema/.snapshots/TestPHPKPI index 4688c10eb..c5997156f 100644 --- a/internal/classification/schema/.snapshots/TestPHPKPI +++ b/internal/classification/schema/.snapshots/TestPHPKPI @@ -1,8 +1,8 @@ (testhelper.KPI) { DetectionsCount: (int) 353, - ValidDetectionsCount: (int) 118, + ValidDetectionsCount: (int) 119, ValidObjectDetectionsCount: (int) 27, - ValidFieldDetectionsCount: (int) 91, + ValidFieldDetectionsCount: (int) 92, ExpectedValidDetectionsCount: (int) 143, ExpectedValidObjectDetectionsCount: (int) 33, ExpectedValidFieldDetectionsCount: (int) 110,