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

DROOLS-7475 Proposed feature for ['key'] accessor #50

Merged
merged 3 commits into from
Jun 26, 2023

Conversation

tarilabs
Copy link
Contributor

@tarilabs tarilabs commented Jun 23, 2023

  • updated with the new jar
  • test using the AST JSON for drools-jpy (see tests in here) but working with new version of jar of drools-ansible-rulebook-integration (using this version at the time of writing/raising this PR)

JIRA: https://issues.redhat.com/browse/DROOLS-7475

referenced Pull Requests:

- updated with the new jar
- test using the AST JSON for drools-jpy
@@ -94,6 +94,55 @@ def test_assert_multiple_facts():
my_callback2.assert_called_with(result2)


def test_squared_accessors():
Copy link
Collaborator

Choose a reason for hiding this comment

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

@tarilabs if you use the tools/convert_to_ast.py from the ansible-rulebook repo and convert the rulebook to ast format you will get the sources data included and then if we add the ast yml file to this list

"asts/test_delayed_comparison_ast.yml",
it will validate all the rules. The integrated test knows how to insert the payload data from sources.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done with 324f2de

Copy link
Contributor

@Alex-Izquierdo Alex-Izquierdo left a comment

Choose a reason for hiding this comment

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

lgtm

@mkanoor mkanoor merged commit 379fd6c into ansible:main Jun 26, 2023
4 checks passed
mkanoor added a commit to ansible/ansible-rulebook that referenced this pull request Aug 3, 2023
work-in-progress as i'm volunteering to work on this e2e, so this is a
quite-complete draft for the ansible-rulebook side; i'll keep posted as
i will progress on drools-ansible-rulebook-integration side.

EDIT: demonstrate working locally and added e2e test as requested

**JIRA**: https://issues.redhat.com/browse/DROOLS-7475

**referenced Pull Requests**: 

* #539
* ansible/drools_jpy#50
*
kiegroup/drools-ansible-rulebook-integration#56
* https://github.com/kiegroup/drools/pull/5333
* https://issues.redhat.com/browse/AAP-10738
*
kiegroup/drools-ansible-rulebook-integration#65
* ansible/drools_jpy#51

---------

Co-authored-by: Madhu Kanoor <mkanoor@redhat.com>
Co-authored-by: Alex <aizquier@redhat.com>
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.

None yet

3 participants