Testing on Windows Nodes


#1

Hello All,

I’m getting to the point where I would like to implement tests for my cookbooks. I’m looking at test kitchen but I don’t think it works on Windows nodes. Does anyone have any recomindations or books for testing Windows nodes?

Thanks,

David


CONFIDENTIALITY NOTICE: This electronic mail may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic mail or its contents by persons other than the intended recipient(s) is strictly prohibited. If you have received this communication in error, please notify the sender immediately by reply e-mail so that we may correct our internal records. Please then delete the original message. Thank you.


#2

It’s still pretty early days for testing on Windows, so you’re right,
Test Kitchen doesn’t currently support Windows. However this is what I
do:

  • Use Vagrant directly, old-style (with a single Vagrantfile)
  • Use vagrant-berkshelf to resolve dependencies

You can also run ServerSpec tests on the target machine, however I
haven’t personally tried that yet.

  • Julian

On Fri, Mar 14, 2014 at 2:09 PM, David A. Williams dwilliams@daxko.com wrote:

Hello All,

I’m getting to the point where I would like to implement tests for my cookbooks. I’m looking at test kitchen but I don’t think it works on Windows nodes. Does anyone have any recomindations or books for testing Windows nodes?

Thanks,

David


CONFIDENTIALITY NOTICE: This electronic mail may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic mail or its contents by persons other than the intended recipient(s) is strictly prohibited. If you have received this communication in error, please notify the sender immediately by reply e-mail so that we may correct our internal records. Please then delete the original message. Thank you.


[ Julian C. Dunn jdunn@aquezada.com * Sorry, I’m ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]


#3

While not supported it does work (with a few tweaks). Have a peek at
https://github.com/test-kitchen/test-kitchen/issues/325. Its far from a
bullet proof implementation, but It has allowed me to test Windows using
test-kitchen for a couple of months now. I’m not sure how well this works
with something other than WinSSHD.

On Sat, Mar 15, 2014 at 3:52 PM, Julian C. Dunn jdunn@aquezada.com wrote:

It’s still pretty early days for testing on Windows, so you’re right,
Test Kitchen doesn’t currently support Windows. However this is what I
do:

Prior to getting test-kitchen working we used a combination of Vagrant with
the vagrant-windows plugin, as well as a shell scripts wrapped around knife
which would provision cloud instances and execute the tests. Getting it
working under test-kitchen was a much nicer experience than either of those
approaches.

On Fri, Mar 14, 2014 at 2:09 PM, David A. Williams dwilliams@daxko.com
wrote:

Hello All,

I’m getting to the point where I would like to implement tests for my
cookbooks. I’m looking at test kitchen but I don’t think it works on
Windows nodes. Does anyone have any recomindations or books for testing
Windows nodes?


#4

Thanks Julian. I’m running the same process minus serverspec.

David

On Mar 15, 2014, at 2:53 PM, “Julian C. Dunn” jdunn@aquezada.com wrote:

It’s still pretty early days for testing on Windows, so you’re right,
Test Kitchen doesn’t currently support Windows. However this is what I
do:

  • Use Vagrant directly, old-style (with a single Vagrantfile)
  • Use vagrant-berkshelf to resolve dependencies

You can also run ServerSpec tests on the target machine, however I
haven’t personally tried that yet.

  • Julian

On Fri, Mar 14, 2014 at 2:09 PM, David A. Williams dwilliams@daxko.com wrote:
Hello All,

I’m getting to the point where I would like to implement tests for my cookbooks. I’m looking at test kitchen but I don’t think it works on Windows nodes. Does anyone have any recomindations or books for testing Windows nodes?

Thanks,

David


CONFIDENTIALITY NOTICE: This electronic mail may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic mail or its contents by persons other than the intended recipient(s) is strictly prohibited. If you have received this communication in error, please notify the sender immediately by reply e-mail so that we may correct our internal records. Please then delete the original message. Thank you.


[ Julian C. Dunn jdunn@aquezada.com * Sorry, I’m ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

CONFIDENTIALITY NOTICE: This electronic mail may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic mail or its contents by persons other than the intended recipient(s) is strictly prohibited. If you have received this communication in error, please notify the sender immediately by reply e-mail so that we may correct our internal records. Please then delete the original message. Thank you.


#5

It actually works with older versions of test-kitchen using vagrant-windows
that connects through WinRM to the windows box (we built a Windows 2008R2
box from opscode bento definitions).

Unfortunately now you have to use SSH with newer versions of test-kitchen
and they dropped the use_vagrant_provision option.
On Mar 16, 2014 6:11 AM, “David A. Williams” dwilliams@daxko.com wrote:

Thanks Julian. I’m running the same process minus serverspec.

David

On Mar 15, 2014, at 2:53 PM, “Julian C. Dunn” jdunn@aquezada.com
wrote:

It’s still pretty early days for testing on Windows, so you’re right,
Test Kitchen doesn’t currently support Windows. However this is what I
do:

  • Use Vagrant directly, old-style (with a single Vagrantfile)
  • Use vagrant-berkshelf to resolve dependencies

You can also run ServerSpec tests on the target machine, however I
haven’t personally tried that yet.

  • Julian

On Fri, Mar 14, 2014 at 2:09 PM, David A. Williams dwilliams@daxko.com
wrote:

Hello All,

I’m getting to the point where I would like to implement tests for my
cookbooks. I’m looking at test kitchen but I don’t think it works on
Windows nodes. Does anyone have any recomindations or books for testing
Windows nodes?

Thanks,

David


CONFIDENTIALITY NOTICE: This electronic mail may contain information
that is privileged, confidential, and/or otherwise protected from
disclosure to anyone other than its intended recipient(s). Any
dissemination or use of this electronic mail or its contents by persons
other than the intended recipient(s) is strictly prohibited. If you have
received this communication in error, please notify the sender immediately
by reply e-mail so that we may correct our internal records. Please then
delete the original message. Thank you.


[ Julian C. Dunn jdunn@aquezada.com * Sorry, I’m ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

CONFIDENTIALITY NOTICE: This electronic mail may contain information that
is privileged, confidential, and/or otherwise protected from disclosure to
anyone other than its intended recipient(s). Any dissemination or use of
this electronic mail or its contents by persons other than the intended
recipient(s) is strictly prohibited. If you have received this
communication in error, please notify the sender immediately by reply
e-mail so that we may correct our internal records. Please then delete the
original message. Thank you.


#6

Is anybody testing on Windows with containers? I was thinking maybe
Virtuozzo. (Are there any other options that don’t involve Azure?)

I’ll be retooling our CI’s functional testing soon and if I switch to LXC
I’m pretty sure my Linux tests will literally run 10x-20x faster than
Windows VMs (provisioned through our internal cloud). That’s kind of
embarrassing, so I thought I’d see if anyone out there has solved for this
already.

On Sun, Mar 16, 2014 at 3:10 AM, Maxime Brugidou
maxime.brugidou@gmail.comwrote:

It actually works with older versions of test-kitchen using
vagrant-windows that connects through WinRM to the windows box (we built a
Windows 2008R2 box from opscode bento definitions).

Unfortunately now you have to use SSH with newer versions of test-kitchen
and they dropped the use_vagrant_provision option.
On Mar 16, 2014 6:11 AM, “David A. Williams” dwilliams@daxko.com wrote:

Thanks Julian. I’m running the same process minus serverspec.

David

On Mar 15, 2014, at 2:53 PM, “Julian C. Dunn” jdunn@aquezada.com
wrote:

It’s still pretty early days for testing on Windows, so you’re right,
Test Kitchen doesn’t currently support Windows. However this is what I
do:

  • Use Vagrant directly, old-style (with a single Vagrantfile)
  • Use vagrant-berkshelf to resolve dependencies

You can also run ServerSpec tests on the target machine, however I
haven’t personally tried that yet.

  • Julian

On Fri, Mar 14, 2014 at 2:09 PM, David A. Williams <
dwilliams@daxko.com> wrote:

Hello All,

I’m getting to the point where I would like to implement tests for my
cookbooks. I’m looking at test kitchen but I don’t think it works on
Windows nodes. Does anyone have any recomindations or books for testing
Windows nodes?

Thanks,

David


CONFIDENTIALITY NOTICE: This electronic mail may contain information
that is privileged, confidential, and/or otherwise protected from
disclosure to anyone other than its intended recipient(s). Any
dissemination or use of this electronic mail or its contents by persons
other than the intended recipient(s) is strictly prohibited. If you have
received this communication in error, please notify the sender immediately
by reply e-mail so that we may correct our internal records. Please then
delete the original message. Thank you.


[ Julian C. Dunn jdunn@aquezada.com * Sorry, I’m ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

CONFIDENTIALITY NOTICE: This electronic mail may contain information
that is privileged, confidential, and/or otherwise protected from
disclosure to anyone other than its intended recipient(s). Any
dissemination or use of this electronic mail or its contents by persons
other than the intended recipient(s) is strictly prohibited. If you have
received this communication in error, please notify the sender immediately
by reply e-mail so that we may correct our internal records. Please then
delete the original message. Thank you.