integration_tests icon indicating copy to clipboard operation
integration_tests copied to clipboard

[Bug] test_total_services verifies wrong thing

Open jan-zmeskal opened this issue 6 years ago • 3 comments

I believe this test case tries to verify wrong thing.

It compares that the number of total services in SSUI is the same as number of results. However, it seems that Total Services counts catalog items while Results count number of rows. That might be a problem as illustrated by the attached screenshot. You can see that there are 6 catalog items, while only 5 rows - that's because bundle contains two catalog items.

srvcs

jan-zmeskal avatar Aug 23 '18 11:08 jan-zmeskal

HI Jan , Yes If we have bundles in catalog item the test will fail. However on a new appliance without any services on jenkins the test wil create few services and then this test will pass .

I checked on UI and could not come up with a better way to verify the total services displayed on dashboard is same as the number of services displayed in Myservices page . So ideas are welcome .

May be we can also check if the number displayed with 'Myservice' on left menu is same as total services.

sshveta avatar Aug 23 '18 19:08 sshveta

@sshveta If the outcome of this test case is dependent on the fact that there are no bundeled services, maybe we can just implement a fixture that takes care of that. That seems like the most straightforward solution to me.

jan-zmeskal avatar Aug 24 '18 09:08 jan-zmeskal

@jan-zmeskal @sshveta last week I investigated the issue. The tests is failing because of paginator which is not working. in test_ssui_dashboard.py there are few tests failing sue to paginator. Normal ui Paginator different from ssui paginator. Nikhil is working on it. also I have looked on workaround for these test.

niyazRedhat avatar Dec 05 '18 06:12 niyazRedhat