Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoggerEngineDataSelector_Tests.it_returns_cached_tag_assignment_rules assertion error #812

Open
jongpie opened this issue Dec 4, 2024 Discussed in #799 · 0 comments · May be fixed by #813
Open

LoggerEngineDataSelector_Tests.it_returns_cached_tag_assignment_rules assertion error #812

jongpie opened this issue Dec 4, 2024 Discussed in #799 · 0 comments · May be fixed by #813
Assignees
Labels
Feature: Tags Items related to Nebula Logger's tagging/labeling functionality Layer: Configuration Items related to the custom hierarchy setting LoggerSettings__c or any included custom metadata type Layer: Log Management Items related to the custom objects & Logger Console app Layer: Logger Engine Items related to the core logging engine tests Relates to Apex or LWC jest tests Type: Bug Something isn't working

Comments

@jongpie
Copy link
Owner

jongpie commented Dec 4, 2024

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>
@jongpie jongpie added Type: Bug Something isn't working Layer: Configuration Items related to the custom hierarchy setting LoggerSettings__c or any included custom metadata type Feature: Tags Items related to Nebula Logger's tagging/labeling functionality Layer: Logger Engine Items related to the core logging engine tests Relates to Apex or LWC jest tests labels Dec 4, 2024
@jongpie jongpie self-assigned this Dec 4, 2024
@jongpie jongpie added the Layer: Log Management Items related to the custom objects & Logger Console app label Dec 4, 2024
@jongpie jongpie linked a pull request Dec 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Tags Items related to Nebula Logger's tagging/labeling functionality Layer: Configuration Items related to the custom hierarchy setting LoggerSettings__c or any included custom metadata type Layer: Log Management Items related to the custom objects & Logger Console app Layer: Logger Engine Items related to the core logging engine tests Relates to Apex or LWC jest tests Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant