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

Add more functional tests + change describes numbers associated #1530

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

mapedraza
Copy link
Collaborator

@mapedraza mapedraza commented Nov 22, 2023

Added the following new tests:

   0540 - Group with explicit attrs: JEXL expression based on measure resulting boolean + active attributes + static attributes
      ✔ A - WHEN sending both provisioned and not object_ids (measures) through http and being the explicitAttrs JEXL result true IT should store only explicit attrs into Context Broker
      ✔ A - WHEN sending both provisioned and not object_ids (measures) through http and being the explicitAttrs JEXL result false IT should store all attrs into Context Broker
    0550 - Group with explicit attrs: JEXL expression based on measure resulting an array + active attributes + static attributes
      ✔ A - WHEN sending (a&&b) IT should store only [attr_a,attr_b] attrs into Context Broker
      ✔ B - WHEN sending only a IT should store only [attr_a,static_b] attrs into Context Broker
      ✔ C - WHEN sending only b IT should store only [{object_id:b}] attrs into Context Broker
      ✔ D - WHEN no sending any defined case IT should store [static_a,static_b] attrs into Context Broker
    0600 - Group multientity attrs
      ✔ A - WHEN sending provisioned object_ids (measures) through http IT should store both entities into Context Broker
    0610 - Group multientity attrs + value JEXL expression
      ✔ A - WHEN sending provisioned object_ids (measures) through http IT should store both entities into Context Broker
    0620 - Group multientity attrs + multientity ID JEXL expression
      ✔ A - WHEN sending provisioned object_ids (measures) through http IT should store both entities into Context Broker
    0700 - Group JEXL entityNameExpression
      ✔ A - WHEN sending provisioned object_ids (measures) through http IT should store the entity with the expression generated ID into the Context Broker
    0700 - skipValue test
      ✔ A - WHEN not matching skip conditions IT should store the entity with all the values (attr_a, attr_b, static_a) into the Context Broker
      ✔ B - WHEN matching skip conditions for attr_b IT should store the entity with some of the values (attr_a, static_a) into the Context Broker
      ✔ C - WHEN matching skip conditions for attr_a and attr_b (expression result) IT should store the entity with only some of the values (static_a) into the Context Broker

Comment on lines 2810 to 2811
// 0700 - FULL GROUP TESTS
// APIKEY RECOGNITION IS NOT WORKING FOR LIB, SKIPPED
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Placeholder for multigroups tests. Not working in lib, probably it should work at agent level. NTC

Copy link
Member

@fgalan fgalan left a comment

Choose a reason for hiding this comment

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

LGTM

@fgalan fgalan merged commit b6f68e0 into master Nov 22, 2023
@fgalan fgalan deleted the task/add-and-sort-func-tests branch November 22, 2023 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants