Public bug reported: There are 23 tests which Jasmine marks with the warning "SPEC HAS NO EXPECTATIONS":
permissions service checkAll with extended permissions SPEC HAS NO EXPECTATIONS with promise array, adds checks for permissions SPEC HAS NO EXPECTATIONS with promise, adds checks for permissions SPEC HAS NO EXPECTATIONS with no promise, adds checks for permissions SPEC HAS NO EXPECTATIONS without extended permissions it returns no promises ... textDownloadService SPEC HAS NO EXPECTATIONS should return promise and it resolve filename after starting download file ... horizon.framework.util.filters simpleDate SPEC HAS NO EXPECTATIONS returns blank if nothing SPEC HAS NO EXPECTATIONS returns the expected time mediumDate SPEC HAS NO EXPECTATIONS returns blank if nothing SPEC HAS NO EXPECTATIONS returns the expected time ... horizon.framework.util.navigations.service setBreadcrumb SPEC HAS NO EXPECTATIONS sets breadcrumb items from specified array ... Launch Instance Model launchInstanceModel Factory Post Initialize Model SPEC HAS NO EXPECTATIONS getPorts at launch should not return child port ... horizon.dashboard.identity.domains.actions.delete.service perform method and pass only SPEC HAS NO EXPECTATIONS should open the delete modal SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete domain by item action SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete domain by batch action ... horizon.dashboard.identity.groups.actions.delete.service perform method and pass only SPEC HAS NO EXPECTATIONS should open the delete modal SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete group by item action SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete group by batch action ... horizon.dashboard.identity.groups SPEC HAS NO EXPECTATIONS should load groups ... horizon.dashboard.identity.users.actions.delete.service perform method and pass only SPEC HAS NO EXPECTATIONS should open the delete modal SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete user by item action SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete user by batch action ... horizon.framework.util.timezones.service get timezone offset SPEC HAS NO EXPECTATIONS returns +0000(UTC offset) if nothing SPEC HAS NO EXPECTATIONS returns the timezone offset That means in general that these tests are doing nothing since they are for the async callback functions and it's crucial to expect outputs after resolving promises. ** Affects: horizon Importance: Undecided Assignee: Tatiana Ovchinnikova (tmazur) Status: New ** Changed in: horizon Assignee: (unassigned) => Tatiana Ovchinnikova (tmazur) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon). https://bugs.launchpad.net/bugs/1894127 Title: SPEC HAS NO EXPECTATIONS warnings in jasmine tests Status in OpenStack Dashboard (Horizon): New Bug description: There are 23 tests which Jasmine marks with the warning "SPEC HAS NO EXPECTATIONS": permissions service checkAll with extended permissions SPEC HAS NO EXPECTATIONS with promise array, adds checks for permissions SPEC HAS NO EXPECTATIONS with promise, adds checks for permissions SPEC HAS NO EXPECTATIONS with no promise, adds checks for permissions SPEC HAS NO EXPECTATIONS without extended permissions it returns no promises ... textDownloadService SPEC HAS NO EXPECTATIONS should return promise and it resolve filename after starting download file ... horizon.framework.util.filters simpleDate SPEC HAS NO EXPECTATIONS returns blank if nothing SPEC HAS NO EXPECTATIONS returns the expected time mediumDate SPEC HAS NO EXPECTATIONS returns blank if nothing SPEC HAS NO EXPECTATIONS returns the expected time ... horizon.framework.util.navigations.service setBreadcrumb SPEC HAS NO EXPECTATIONS sets breadcrumb items from specified array ... Launch Instance Model launchInstanceModel Factory Post Initialize Model SPEC HAS NO EXPECTATIONS getPorts at launch should not return child port ... horizon.dashboard.identity.domains.actions.delete.service perform method and pass only SPEC HAS NO EXPECTATIONS should open the delete modal SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete domain by item action SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete domain by batch action ... horizon.dashboard.identity.groups.actions.delete.service perform method and pass only SPEC HAS NO EXPECTATIONS should open the delete modal SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete group by item action SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete group by batch action ... horizon.dashboard.identity.groups SPEC HAS NO EXPECTATIONS should load groups ... horizon.dashboard.identity.users.actions.delete.service perform method and pass only SPEC HAS NO EXPECTATIONS should open the delete modal SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete user by item action SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete user by batch action ... horizon.framework.util.timezones.service get timezone offset SPEC HAS NO EXPECTATIONS returns +0000(UTC offset) if nothing SPEC HAS NO EXPECTATIONS returns the timezone offset That means in general that these tests are doing nothing since they are for the async callback functions and it's crucial to expect outputs after resolving promises. To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1894127/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp