I have written a simple and I can reproduce inconsistent behavior.
My test is not at presentation layer but at the apiserver (business logic). I am adding 3 applications such that:
* application 1 uses 'mysql' charm; is named "abc"; has a unit on machine 0;
* application 2 uses 'wordpress' charm; is named "def"; has a unit on machine 0; has a relation to application 3;
* application 3 uses 'logging' charm; is named "klm"; has a relation to application 2.
In my test, I am only interested in applications returned from our status call.
When I filter on application 1 name, i.e. "abc", I get 2 applications returned consistently - 'abc' and 'def' - as expected. Their order in the result is inconsistent, but I do get 2 applications. Always.
When I filter status on either "abc" or "def", i.e. expecting 2 applications in the result, I get inconsistently either 1 or 2, even on a stable system.
I have written a simple and I can reproduce inconsistent behavior.
My test is not at presentation layer but at the apiserver (business logic). I am adding 3 applications such that:
* application 1 uses 'mysql' charm; is named "abc"; has a unit on machine 0;
* application 2 uses 'wordpress' charm; is named "def"; has a unit on machine 0; has a relation to application 3;
* application 3 uses 'logging' charm; is named "klm"; has a relation to application 2.
In my test, I am only interested in applications returned from our status call.
When I filter on application 1 name, i.e. "abc", I get 2 applications returned consistently - 'abc' and 'def' - as expected. Their order in the result is inconsistent, but I do get 2 applications. Always.
When I filter status on either "abc" or "def", i.e. expecting 2 applications in the result, I get inconsistently either 1 or 2, even on a stable system.
I am still investigating the cause.