Hi,

I am the tester who found the problem with the Event Service.

When trying to answer your questions I found an error in my own mail. I
wrote that I found out two different ways to interpret "no patterns".
The truth is that I only found one way to interpret it. I am sorry for
the confusion this may have caused. 

The default pattern array is the pattern array that is automatically
used when an event is published without first setting the attributes
with saEvtEventAttributes.

My pattern array represents my own interpretation of "no patterns" (page
19, line 39). It has the following structure:

SAEvtEventPatternArrayT patternArray;
patternArray.patternsNumber = 0;
patternArray.patterns = NULL;

(patternArray.allocatedNumber should be ignored, see page 18, line 23)

I also have created three different filter arrays. Each of them was
constructed with the purpose to match a pattern array with "no patterns"
(page 19, line 39). I will refer to them as the first, the second and
the third filter array.

The first filter array was created with the following structure:

SaEvtEventFilterArrayT filters;
filters.filtersNumber = 1;
filters.filters = (SaEvtEventFilterT
*)malloc(sizeof(SaEvtEventFilterT));
filters.filters[0].filterType = SA_EVT_PASS_ALL_FILTER;
filters.filters[0].filter.patternSize = 10;
filters.filters[0].filter.pattern = '0123456789';

(filters.filters[0].filter.allocatedSize should be ignored, see page 19,
line 3)

The second filter array was created with the following structure:

SaEvtEventFilterArrayT filters;
filters.filtersNumber = 1;
filters.filters = (SaEvtEventFilterT
*)malloc(sizeof(SaEvtEventFilterT));
filters.filters[0].filterType = SA_EVT_EXACT_FILTER;
filters.filters[0].filter.patternSize = 0;
filters.filters[0].filter.pattern = '';

(filters.filters[0].filter.allocatedSize should be ignored, see page 19,
line 3)

The third filter array was the one I called the empty filter array in my
last mail. It was created with the following structure:

SaEvtEventFilterArrayT filters;
filters.filtersNumber = 0;
filters.filters = NULL; 

The total number of pattern arrays mail is 2. The total number of filter
arrays is 3. Consequently, the possible number of
patternarray/filterarray pairs is 6 (2 times 3). I wrote test cases for
each such pair. My expectation was to have a match in all the 6 test
cases. Unfortunately I only had a match for 3 of them. My pattern array
matched all three filter arrays, but the default pattern array did not
match any of the filter arrays.

Regards,
Gustav

_______________________________________________
Users mailing list
[email protected]
http://list.opensaf.org/maillist/listinfo/users

Reply via email to