-
Notifications
You must be signed in to change notification settings - Fork 225
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
[#1509] SSRS 2019 initialization fix. #1698
Conversation
@johlju I've done some testing on SSRS 2016, 2017 and 2019. It seems that executing That means we can probably remove the code that calls it (and update relevant unit tests). If we decide to leave the code as it is now, it is unclear if there's ever a scenario where executing Furthermore, regarding unit tests, the unit test for uninitialised SSRS will have to have two scenarios, one with |
Something I've noticed in my tests for SSRS 2019... In my configuration, I have a custom DSC resource which connects to SSRS server to set some stuff up. It runs immediately after The function performs a small retry loop, sending a I was wondering if this is something we should add to |
@bozho sorry I haven't been available but there is a lot of stuff going on with the day job so have not as much time as I want.
This sounds like a
We could have different paths for different versions on Reporting Services. If it needed for older SQL Reporting Services then we can keep it but not use it for newer. 🤔 I think we need to get the integration tests working again for Reporting Services as they were disabled when moving to the new pipeline. |
30dab1c
to
cb371eb
Compare
Maybe... Although, I think any custom resource dealing with SSRS would have to be able to handle SSRS warming up. For example, DSC might've rebooted the machine and carried on with running the configuration when it hits our custom SSRS resource... You could put the proposed
I've tested on SQL 2016-2019 Standard. All of them were initialised when restarted immediately after executing |
Ok, I've spent a better day trying to update unit tests for The actual code will now restart SSRS right after executing However, in SqlRS unit tests, we do not change the How do we simulate real behaviour here? Can we mock |
cb371eb
to
d54f475
Compare
Hi @johlju, Any chance you have a look at this, help me figure out the problems above? Thank you! |
I will have a look. I been off for a few weeks due to vacation. But will be focusing on the SqlServerDsc for a while now. 😊 |
Sorry it took so long. This is a case of the unit tests being written to complex (trying to reuse code too much) so it is hard to add a simple unit tests as in this case. The entire unit test should really be refactored, but no need for this PR. 🙂 The variable |
Btw, the WaitForSqlRs resource would try to hit the RS until it gets http status code 200. I had to add a timer of 30 seconds in the integration test after running SqlRs and before running an Invoke-WebRequest to be able for it to return http status code 200 (otherwise it returned 503). So maybe a WaitForSqlRs could help with that. 🤔 I add a issue for that so we can discuss it. |
Pull Request (PR) description
SqlRS
: SSRS 2019 initialization fix.This Pull Request (PR) fixes the following issues
Task list
file CHANGELOG.md. Entry should say what was changed and how that
affects users (if applicable), and reference the issue being resolved
(if applicable).
This change is