• Isabel Suchanek's avatar
    events: fix wildcard namespace handling (#10935) · 25fc4195
    Isabel Suchanek authored
    This fixes a bug in the event stream API where it currently interprets
    namespace=* as an actual namespace, not a wildcard. When Nomad parses
    incoming requests, it sets namespace to default if not specified, which
    means the request namespace will never be an empty string, which is what
    the event subscription was checking for. This changes the conditional
    logic to check for a wildcard namespace instead of an empty one.
    
    It also updates some event tests to include the default namespace in the
    subscription to match current behavior.
    
    Fixes #10903
    25fc4195