Skip to content

Fixes for JcloudsLocation#350

Merged
asfgit merged 4 commits intoapache:masterfrom
aledsage:fix-JcloudsLocation-pass-through-config-to-machine
Sep 26, 2016
Merged

Fixes for JcloudsLocation#350
asfgit merged 4 commits intoapache:masterfrom
aledsage:fix-JcloudsLocation-pass-through-config-to-machine

Conversation

@aledsage
Copy link
Copy Markdown
Contributor

See individual commits for details. Copied below for your convenience:

commit aba3f0980d7adfa1d7e9bf601c2ecbf1329a5a9e
Author: Aled Sage <aled.sage@gmail.com>
Date:   Fri Sep 23 21:40:06 2016 +0100

    JcloudsLocation: pass relevant config to child machine loc

    Previously it only passed a small selection of the config to the child
    location. But if you passed additional ssh config values in the
    `provisioning.properties` then they wouldn’t get passed through.

commit 9c9dd47810627da6b05450e89cbce40787faac17
Author: Aled Sage <aled.sage@gmail.com>
Date:   Fri Sep 23 21:25:18 2016 +0100

    Add JcloudsWinrmingLiveTest

    A test for JcloudsLocation provisioning (and WinRM’ing to) a Windows VM.

    Deletes the old AwsEc2LocationWindowsLiveTest, which was massively out
    of date and wrong.

commit d0d8cf09755c6adbdd6c5990aa77ab2a7f4d74b6
Author: Aled Sage <aled.sage@gmail.com>
Date:   Fri Sep 23 19:07:48 2016 +0100

    Mark failing tests as broken in JcloudsLoginLiveTest

commit d49441d18093a9967cc9d7050dfdbbb4f6d881ba
Author: Aled Sage <aled.sage@gmail.com>
Date:   Fri Sep 23 19:04:58 2016 +0100

    Fix MAP_DEV_RANDOM_TO_DEV_URANDOM for running as root

    Fixes JcloudsLoginLiveTest.testSpecifyingPasswordWhenNoDefaultKeyFilesExistWithRootUser

Fixes JcloudsLoginLiveTest.testSpecifyingPasswordWhenNoDefaultKeyFilesExistWithRootUser
A test for JcloudsLocation provisioning (and WinRM’ing to) a Windows VM.

Deletes the old AwsEc2LocationWindowsLiveTest, which was massively out
of date and wrong.
Previously it only passed a small selection of the config to the child
location. But if you passed additional ssh config values in the
`provisioning.properties` then they wouldn’t get passed through.
JcloudsWinRmMachineLocation machine = obtainWinrmMachine(MutableMap.<String,Object>builder()
.putIfAbsent("inboundPorts", ImmutableList.of(5986, 5985, 3389))
.put(JcloudsLocation.IMAGE_NAME_REGEX.getName(), AWS_EC2_IMAGE_NAME_REGEX)
.put(JcloudsLocation.USE_JCLOUDS_SSH_INIT.getName(), false)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should flip this automatically on windows machines.

@neykov
Copy link
Copy Markdown
Member

neykov commented Sep 26, 2016

Re JcloudsLocation: pass relevant config to child machine loc. The changes are following existing practice so good to merge. In future would be nice to take advantage of the new config inheritance in locations.

@neykov
Copy link
Copy Markdown
Member

neykov commented Sep 26, 2016

LGTM, merging.

@asfgit asfgit merged commit aba3f09 into apache:master Sep 26, 2016
asfgit pushed a commit that referenced this pull request Sep 26, 2016
Fixes for JcloudsLocation

See individual commits for details. Copied below for your convenience:

```
commit aba3f09
Author: Aled Sage <aled.sage@gmail.com>
Date:   Fri Sep 23 21:40:06 2016 +0100

    JcloudsLocation: pass relevant config to child machine loc

    Previously it only passed a small selection of the config to the child
    location. But if you passed additional ssh config values in the
    `provisioning.properties` then they wouldn’t get passed through.

commit 9c9dd47
Author: Aled Sage <aled.sage@gmail.com>
Date:   Fri Sep 23 21:25:18 2016 +0100

    Add JcloudsWinrmingLiveTest

    A test for JcloudsLocation provisioning (and WinRM’ing to) a Windows VM.

    Deletes the old AwsEc2LocationWindowsLiveTest, which was massively out
    of date and wrong.

commit d0d8cf0
Author: Aled Sage <aled.sage@gmail.com>
Date:   Fri Sep 23 19:07:48 2016 +0100

    Mark failing tests as broken in JcloudsLoginLiveTest

commit d49441d
Author: Aled Sage <aled.sage@gmail.com>
Date:   Fri Sep 23 19:04:58 2016 +0100

    Fix MAP_DEV_RANDOM_TO_DEV_URANDOM for running as root

    Fixes JcloudsLoginLiveTest.testSpecifyingPasswordWhenNoDefaultKeyFilesExistWithRootUser
```
@aledsage aledsage deleted the fix-JcloudsLocation-pass-through-config-to-machine branch September 27, 2016 09:38
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.

3 participants