StageOneReportTests and question on assertFileHasContent #3836
-
I may have been silent on the repo here, but have been working in the background to do stageone product tests for both sunbeam (whch is next generation Canonical Openstack), and then devstack, especially after the long discussions in #3622 The initial phase of sunbeam is ready, and now got a point where I have 5 failures, and all ware related to self.assertFileHasContent() Now, it seems, if it finds the pattern more then once, it will cause a failure, is this intended, as I am looking for If this is the intention, then I have to re-think in how we do these tests. Any clarification on this would be awesome |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Not the intent, no. We do currently issue a We could perhaps have it re-written to parse the entire file as a whole instead of a line-by-line check. |
Beta Was this translation helpful? Give feedback.
Not the intent, no. We do currently issue a
break
once we find the content however which may be inadvertently causing your failures.We could perhaps have it re-written to parse the entire file as a whole instead of a line-by-line check.