Skip to content

Conversation

@JavierJF
Copy link
Contributor

@JavierJF JavierJF commented Apr 8, 2019

No description provided.

"configure": [
// Remove current system wallpaper files.
{
"type": "gpii.windows.rm",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume we will need mocks for this action in universal otherwise this solution will no longer pass through integration tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weirdly I was expecting this to fail, and the Windows to pass, the Windows one have failed with a spurious fail due to process killing timeout probably, and this have passed.

@gpii-bot
Copy link

gpii-bot commented Apr 8, 2019

CI job passed: https://ci.gpii.net/job/universal-tests/1697/

@amb26
Copy link
Member

amb26 commented Apr 8, 2019

!! Why did it pass!

@JavierJF
Copy link
Contributor Author

JavierJF commented Apr 8, 2019

!! Why did it pass!

Have no clue, but it did.

@amb26
Copy link
Member

amb26 commented Apr 8, 2019

My expectation is that it will have passed because of this nonsense - https://github.com/GPII/universal/blob/master/gpii/node_modules/testing/src/Mocks.js#L197 - perhaps at some point when it is your normal working hours you could take a look at it :)

@JavierJF
Copy link
Contributor Author

JavierJF commented Apr 8, 2019

@amb26 that looks like a promising start point! Sure I will, I would like to know better several places of the current testing infrastructure, so I can propose changes for improve some sections. This will be a nice exercise for that.

@amb26
Copy link
Member

amb26 commented Apr 8, 2019

All that we will need here is to set up some dedicated map of platform-specific functions to mocks, which can just be fluid.identity or a log function - otherwise in future someone will be Deeply Surprised by the fact that everything passes through a single hard-coded function with an expectation there is just one mocked function

@gpii-bot
Copy link

CI job failed: https://ci.gpii.net/job/universal-tests/1783/

…ests definition and implemented mocked function
@gpii-bot
Copy link

CI job failed: https://ci.gpii.net/job/universal-tests/1784/

@gpii-bot
Copy link

CI job failed: https://ci.gpii.net/job/universal-tests/1785/

var fluid = fluid || require("infusion"),
gpii = fluid.registerNamespace("gpii");
gpii = fluid.registerNamespace("gpii"),
nPath = require("path");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Often we say "pathModule" for this kind of thing

@gpii-bot
Copy link

CI job passed: https://ci.gpii.net/job/universal-tests/1788/

"type": "gpii.windows.rm",
"path": "${{environment}.APPDATA}\\Microsoft\\Windows\\Themes\\TranscodedWallpaper",
"options": {
"recursive": false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you can remove this option since the default value for "recursive" option is "false" as seen here: https://github.com/GPII/windows/pull/261/files#diff-864b1fb848cfe2a0afe44120b1955365R1929

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, doing it.

@gpii-bot
Copy link

CI job passed: https://ci.gpii.net/job/universal-tests/1797/

@javihernandez
Copy link
Member

@amb26 is this ready to go?

@amb26 amb26 merged commit c35e2b5 into GPII:master Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants