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

Match: consistently hide Fields w/ broken prereqs LOXI-75 #447

Merged

Conversation

andi-bigswitch
Copy link
Contributor

Reviewer: @Sovietaced @wolverineav

Previously, isExact(), isPartiallyMasked() and isFullyWildcarded()
did not check whether the required prerequisites for a field
had been set. get() and getMasked() did, leading to inconsistent
results / NPEs.

This makes all of the methods honor the prerequisite checks.
It also adds a unit test checking the behavior.

Previously, isExact(), isPartiallyMasked() and isFullyWildcarded()
did not check whether the required prerequisites for a field
had been set. get() and getMasked() did, leading to inconsistent
results / NPEs.

This makes all of the methods honor the prerequisite checks.
It also adds a unit test checking the behavior.
@wolverineav
Copy link
Contributor

LGTM 👍

@Sovietaced
Copy link
Contributor

I love me some unit tests

@bsn-abat
Copy link

Refer to this link for build results (access rights to CI server needed):
https://jenkins.bigswitch.com//job/loxigen_pull_req/206/
Test PASSed.

@Sovietaced
Copy link
Contributor

LGTM

@andi-bigswitch
Copy link
Contributor Author

SELF-ACK

@bsn-abat
Copy link

ABAT: START_MERGE: Log file at http://vss1/abat/2015.11.20.1723-m.loxigen.master/abat.log

bsn-abat pushed a commit to floodlight/loxigen-artifacts that referenced this pull request Nov 20, 2015
Loxigen Head commit floodlight/loxigen@3cbb8c7
commit 3cbb8c7a915d9ce691fb7c3de06749c61cc54e4a
Merge: 0ba42d4 3850039
Author: abat <abat@bigswitch.com>
Date:   Fri Nov 20 09:23:51 2015 -0800

    Merge into master from pull request #447:
    Match: consistently hide Fields w/ broken prereqs LOXI-75 (floodlight/loxigen#447)

commit 385003977cf417663f573ec41fba325cfbced40b
Author: Andreas Wundsam <andreas.wundsam@bigswitch.com>
Date:   Thu Nov 19 19:44:51 2015 -0800

    Match: consistently hide Fields w/ broken prereqs LOXI-75

    Previously, isExact(), isPartiallyMasked() and isFullyWildcarded()
    did not check whether the required prerequisites for a field
    had been set. get() and getMasked() did, leading to inconsistent
    results / NPEs.

    This makes all of the methods honor the prerequisite checks.
    It also adds a unit test checking the behavior.
@bsn-abat bsn-abat merged commit 3850039 into floodlight:master Nov 20, 2015
@bsn-abat
Copy link

ABAT: ACCEPT: Successfully merged

In case you want to see the build log, check out :
Log file at http://vss1/abat/2015.11.20.1723-m.loxigen.master/abat.log
/cc

bsn-abat pushed a commit that referenced this pull request Nov 20, 2015
Match: consistently hide Fields w/ broken prereqs LOXI-75 (#447)
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

4 participants