-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTA: xWebApplication Integration tests & fixes #136
RTA: xWebApplication Integration tests & fixes #136
Conversation
Hi @nzspambot, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! The agreement was validated by Microsoft and real humans are currently evaluating your PR. TTYL, MSBOT; |
appveyor failed due to this btw
|
I'll give this a review tomorrow night unless someone else gets to it first. I'll also take a look at the AppVeyor issue. |
@PlagueHO I'm assuming you're referring to the Integration git errors? Appveyor is working ok now |
I think appveyor has hung on this latest build |
@PlagueHO do you have access to rerun a appveyor build? |
Unfortunately neither @PlagueHO or I have rights to rerun it. Easiest way is to add a line break somewhere and checkin which kicks off another build (terrible I know) or page @KarolKaczmarek or @TravisEz13 and ask nicely. 😁 |
All good; pushed some style changes so see if this builds now 🏁 |
…ate Version: 1.1.0 region, changed double quotes into single quotes where needed
Reviewed 4 of 5 files at r1, 2 of 3 files at r3, 2 of 2 files at r5. README.md, line 192 [r5] (raw file):
Can we mention what the fixes to xWebApplication were? New SSL Flags added etc DSCResources/MSFT_xWebApplication/MSFT_xWebApplication.schema.mof, line 0 [r5] (raw file): Tests/Integration/MSFT_xWebApplication.Integration.Tests.ps1, line 4 [r5] (raw file):
Could you update the header here or add the version number? Nice work on all of this - especially the integration tests too. Nice to see such complete coverage, I think everyone should be trying to achieve this level (including myself)! 😄 Tests/Integration/MSFT_xWebAppPoolDefaults.Integration.Tests.ps1, line 4 [r5] (raw file):
Can you add the #region HEADER above this line (just so the #Region collapse still works). Comments from Reviewable |
Review status: all files reviewed at latest revision, 4 unresolved discussions. README.md, line 192 [r5] (raw file):
|
@PlagueHO ok updated 👍 |
hmm appveyor failed yet again
I reckon this could be wrapped in a try/catch/while loop e: appveyor/ci#826 :tumbleweeds: |
That is actually a pretty good idea. If we do this perhaps we do it to the template one and advise it to be changed for all AppVeyor.yml (I've run into the same thing in lots of other projects). Perhaps we could use xWebAdministration as the test project for this change - @tysonjhayes? Anyway, @tysonjhayes, this
|
Review status: 7 of 8 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. DSCResources/MSFT_xWebApplication/MSFT_xWebApplication.schema.mof, line [r5] (raw file):
|
Yep it was UTF16 👎 fixed and build is running now OOI (before I dig around) is there a check in the Test resource to check for this? Could be a nice addition to flag things like this; I know it checks for ascii |
There is supposed to be: https://github.com/PowerShell/DscResource.Tests/blob/dev/Meta.Tests.ps1#L99 I wonder if these tests could be updated to fail the file? |
Yeah I'd say fail is better IMO; warning can get lost e: actually it will fail : $unicodeFilesCount | Should Be 0 interesting I might test that out a bit further then |
It should fail - but for some reason in this case it didn't. Needs to be fixed I reckon! |
Review status: 7 of 8 files reviewed at latest revision, 3 unresolved discussions. DSCResources/MSFT_xWebApplication/MSFT_xWebApplication.psm1, line 217 [r6] (raw file):
We should not be replacing spaces with tabs. Comments from Reviewable |
Do we really have to go through a Tab vs Spaces argument? |
@nzspambot as annoying as it is I've actually seen bugs with commands auto completing and ruining intended functionallity when a script has tabs in it, vs I do not see this with spaces. So the intent is not to spark a ververant debate but to actually correct for unintentded bugs (imo). |
@tysonjhayes understood; as long as there is a valid reason I'm 👍 e: Especially after the latest episode of Silicon Valley ;) ;) |
I've run into issues with Tabs and PowerShell as well (especially with back ticks). As I was reading these reviews I was watching the most recent episode of Silicon Valley - with the Spaces vs. Tabs conflict - made me LOL. If you haven't watched it (or watch this show), I highly recommend it. |
Reviewed 1 of 1 files at r7. Comments from Reviewable |
Review status: 7 of 8 files reviewed at latest revision, 3 unresolved discussions. DSCResources/MSFT_xWebApplication/MSFT_xWebApplication.psm1, line 217 [r6] (raw file):
|
Reviewed 1 of 1 files at r8. Comments from Reviewable |
I removed the tabs as requested
|
Review status: all files reviewed at latest revision, 3 unresolved discussions. README.md, line 192 [r5] (raw file):
|
Review status: all files reviewed at latest revision, 5 unresolved discussions. Tests/Integration/MSFT_xWebApplication.Integration.Tests.ps1, line 28 [r8] (raw file):
We should move this above loading the config file (basically the firs tthing we do) as it can present some errors in restoring/removing the backup if the config file ever gets horked. Tests/Integration/MSFT_xWebApplication.Integration.Tests.ps1, line 57 [r8] (raw file):
Does it make sense to do this with a params hashtable? Might look a bit cleaner. Comments from Reviewable |
Review status: all files reviewed at latest revision, 5 unresolved discussions. DSCResources/MSFT_xWebApplication/MSFT_xWebApplication.schema.mof, line [r5] (raw file):
|
Reviewed 1 of 1 files at r9. Comments from Reviewable |
|
Oh wait - looks like there is still a merge conflict to resolve. 😦
|
Reviewed 1 of 1 files at r7, 1 of 1 files at r9. Comments from Reviewable |
Hi, added some basic xWebApplication integration tests as well as some fixes to xWebApplication
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)