#2938 RFE: MatchTest is able to check the field in nested dict
Closed: Dropped by julian8628. Opened 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.


Candidate PR: #2939

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

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)

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/2938

Please continue any further discussion there.

Metadata
Related Pull Requests