This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
juju-testing [2015/02/05 19:30] gsamfira |
juju-testing [2015/07/09 15:54] (current) bteleaga |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Running Juju-Core tests on Windows ====== | ====== Running Juju-Core tests on Windows ====== | ||
- | ===== Installing a base windows | + | ===== Installing a base Windows |
- | First we need to install a windows | + | First we need to install a Windows |
- | You can install this version of Windows on top of KVM using any ubuntu version >= Ubuntu 14.04. Installation steps are simple, just follow the wizzard. | + | You can install this version of Windows on top of KVM using any ubuntu version >= Ubuntu 14.04. Installation steps are simple, just follow the wizard. |
===== Post install steps ===== | ===== Post install steps ===== | ||
- | Windows Hyper-V | + | Windows Hyper-V |
{{: | {{: | ||
Line 26: | Line 26: | ||
- select 2 and hit enter | - select 2 and hit enter | ||
- | This will enable remote desktop. Now lets disable the firewall (you don't really need it for testing). In the black cmd terminal type: | + | This will enable remote desktop. Now let' |
netsh advfirewall set allprofiles state off | netsh advfirewall set allprofiles state off | ||
- | You should now be able to connect to your windows | + | You should now be able to connect to your Windows |
==== Installing Chocolatey ==== | ==== Installing Chocolatey ==== | ||
- | Chocolatey is awesome. Why its not default in windows is beyond me. In essence its a windows | + | Chocolatey is awesome. Why it' |
< | < | ||
Line 53: | Line 53: | ||
==== Installing scm and golang ==== | ==== Installing scm and golang ==== | ||
- | Its time to install the various scm binaries needed by go, and also version 1.2.1 of Go to mirror the version used in ubuntu | + | Its time to install the various scm binaries needed by go, and also version 1.2.1 of Go to mirror the version used in Ubuntu |
[[juju-windows|Installing SCM systems and golang]] | [[juju-windows|Installing SCM systems and golang]] | ||
+ | |||
+ | |||
+ | ==== Getting a SSL enabled version of mongod.exe ==== | ||
+ | |||
+ | Apparently, the windows version of mongod comes with SSL disabled on windows. You basically have two options to get SSL support on windows: | ||
+ | |||
+ | - Buy the payed version | ||
+ | - compile your own | ||
+ | |||
+ | You can get a {{: | ||
+ | |||
+ | To download it via PowerShell type in the following command in the PowerShell prompt: | ||
+ | |||
+ | Start-BitsTransfer http:// | ||
+ | | ||
+ | If you have not already done so, install 7zip: | ||
+ | |||
+ | choco install -y 7zip | ||
+ | | ||
+ | You will also need the Visual Studio redistributable package for mongo to work: | ||
+ | |||
+ | choco install -y vcredist2013 | ||
+ | choco install -y vcredist2008 | ||
+ | | ||
+ | Now let's extract mongo: | ||
+ | |||
+ | & ' | ||
+ | | ||
+ | You should have a a mongod.exe file. Lets check if it actually works: | ||
+ | |||
+ | PS C: | ||
+ | db version v2.6.3 | ||
+ | 2015-04-03T11: | ||
+ | 2015-04-03T11: | ||
+ | |||
+ | ==== Adding mongod to your $PATH ==== | ||
+ | |||
+ | Lets create a folder for it first: | ||
+ | |||
+ | mkdir C:\bin | ||
+ | | ||
+ | Copy mongod.exe to it:-35 | ||
+ | |||
+ | cp mongod.exe C:\bin\ | ||
+ | | ||
+ | Add C:\bin to path: | ||
+ | |||
+ | $env:PATH += "; | ||
+ | setx PATH $env:PATH | ||
+ | |||
+ | ===== Running the juju tests ===== | ||
+ | |||
+ | |||
+ | At this point, if you followed the steps [[juju-windows|here]] you should already have a golang setup with a local copy of the juju repository. | ||
+ | |||
+ | Navigate to that folder: | ||
+ | |||
+ | cd $env: | ||
+ | go test ./... | ||
+ | |||
+ | ===== Accessing the machine from Linux ===== | ||
+ | |||
+ | Some of you might want to edit the go source from Linux using your favorite editors. To do that we can set up a share. | ||
+ | |||
+ | sudo mount -t cifs -o username=Administrator, | ||
+ | |||
+ | Now all of your C drive will be available at < | ||
+ | |||
+ | As a bonus, you can use https:// | ||
+ | | ||
+ | ===== Bonus: ===== | ||
+ | |||
+ | Thanks for tagging along, I really appreciate it. | ||
+ | As a sign of my appreciation, | ||
+ | |||
+ | (new-object System.Net.WebClient).DownloadFile(" | ||
+ | cmd.exe /C call $HOME\firefox_installer.exe /SILENT | ||
+ | | ||
+ | Or the package management way: | ||
+ | |||
+ | choco install -y firefox | ||
+ | |||
+ | And to launch it: | ||
+ | |||
+ | & ' | ||
+ | |||
+ | You may now enjoy the simple pleasures in life once more, like giving a quick Google or downloading an MSI installer right from the comfort of your own blue-on-black free version of Windows Server |