-
-
Notifications
You must be signed in to change notification settings - Fork 213
Closed
Labels
Feature: TagsItems related to Nebula Logger's tagging/labeling functionalityItems related to Nebula Logger's tagging/labeling functionalityLayer: ConfigurationItems related to the custom hierarchy setting LoggerSettings__c or any included custom metadata typeItems related to the custom hierarchy setting LoggerSettings__c or any included custom metadata typeLayer: Log ManagementItems related to the custom objects & Logger Console appItems related to the custom objects & Logger Console appLayer: Logger EngineItems related to the core logging engineItems related to the core logging engineType: BugSomething isn't workingSomething isn't workingtestsRelates to Apex or LWC jest testsRelates to Apex or LWC jest tests
Milestone
Description
Discussed in #799
Originally posted by angelikagalang November 15, 2024
Hi! We have been using Nebula (unlocked) for quite a while now and did not encounter any issues except when we introduced a LogEntryTagRule metadata record.
This is both encountered when manually running the test and on our CI/CD build where a new scratch org is created for validation. As you can see, the expected SObjectField__c I think is the field definition ID while the actual is the field API name.
Tried using the latest package v4.14.18 but encountered the same issue. Hope you could assist me, thanks in advance!
{
"failedTests": [
{
"Id": "07M9K00000APLnLUAX",
"QueueItemId": "7099K00000KqmTLQAZ",
"StackTrace": "Class.LoggerEngineDataSelector_Tests.it_returns_cached_tag_assignment_rules: line 149, column 1",
"Message": "System.AssertException: Assertion Failed: Expected: (LogEntryTagRule__mdt:{Id=m019K00000fqwLmQAI, SObjectField__c=01I9K000005xDcj.00N9K00000MLL8l, ComparisonType__c=CONTAINS, ComparisonValue__c=case review, Tags__c=case-review, SObjectType__c=01I9K000005xDcj}), Actual: (LogEntryTagRule__mdt:{Id=m019K00000fqwLmQAI, SObjectField__c=Message__c, ComparisonType__c=CONTAINS, ComparisonValue__c=case review, Tags__c=case-review, SObjectType__c=01I9K000005xDcj})",
"AsyncApexJobId": "7079K00000axYAiQAM",
"MethodName": "it_returns_cached_tag_assignment_rules",
"Outcome": "Fail",
"ApexClass": {
"Id": "01p9K00000FAmV1QAL",
"Name": "LoggerEngineDataSelector_Tests",
"NamespacePrefix": null
},
"RunTime": 1102,
"FullName": "LoggerEngineDataSelector_Tests.it_returns_cached_tag_assignment_rules"
}
]
}
```</div>
Metadata
Metadata
Assignees
Labels
Feature: TagsItems related to Nebula Logger's tagging/labeling functionalityItems related to Nebula Logger's tagging/labeling functionalityLayer: ConfigurationItems related to the custom hierarchy setting LoggerSettings__c or any included custom metadata typeItems related to the custom hierarchy setting LoggerSettings__c or any included custom metadata typeLayer: Log ManagementItems related to the custom objects & Logger Console appItems related to the custom objects & Logger Console appLayer: Logger EngineItems related to the core logging engineItems related to the core logging engineType: BugSomething isn't workingSomething isn't workingtestsRelates to Apex or LWC jest testsRelates to Apex or LWC jest tests