#2938 RFE: MatchTest is able to check the field in nested dict
Closed: Dropped 2 years ago by julian8628. Opened 2 years ago by julian8628.

For example:
if policy_data is:

policy_data =  {'foo': {
            'bar': {
                'hello': 'world!'
            }}}

The rule:
match foo.bar.hello world* :: allow

should be able to return allow

I'd start with a new AdvancedMatchTest, but that should be ok to change MatchTest directly.

This test will benefit the maintainer and plugin developer when they need to check some deeper values.


Metadata Update from @julian8628:
- Custom field Size adjusted to None

2 years ago

also added a FindTest for "iterable"

In general, policy data should be mostly flat. I'd really like to have a more solid understanding of real world use cases here before we add new handlers like this.

Metadata Update from @julian8628:
- Issue close_status updated to: Dropped
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #2939 Closed 2 years ago