worker/caasoperator: tidy up, add tests #8134

Merged
merged 1 commit into from Nov 27, 2017

Conversation

Projects
None yet
3 participants
Member

axw commented Nov 27, 2017

Removed some bits we can infer, and other things that aren't currently required, and may not be later. Pass Clock in via manifold inputs.

featuretests/agent_caasoperator_test.go
for {
select {
case <-timeout:
c.Fatalf("no activity detected")
case <-time.After(coretesting.ShortWait):
- link := filepath.Join(agentDir, commands.CommandNames()[0])
+ agentBinaryDir := agenttools.ToolsDir(dataDir, "application-"+applicationName)
@wallyworld

wallyworld Nov 27, 2017

Owner

The jujud operator binary doesn't live in a directory named after the application - it is baked into the operator docker image in /usr/bin or somewhere. That's why manifold config had an AgentDir config attribute and was set to os.Args[0]

@axw

axw Nov 27, 2017

Member

I see. Updated to look in /var/lib/juju/tools, and added a comment on Config.DataDir.

worker/caasoperator: tidy up, add tests
Removed some bits we can infer, and
other things that aren't currently
required, and may not be later. Pass
Clock in via manifold inputs.
Member

axw commented Nov 27, 2017

$$merge$$

Contributor

jujubot commented Nov 27, 2017

Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju

Contributor

jujubot commented Nov 27, 2017

Build failed: Tests failed
build url: http://ci.jujucharms.com/job/github-merge-juju/587

Member

axw commented Nov 27, 2017

$$merge$$

Contributor

jujubot commented Nov 27, 2017

Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju

Contributor

jujubot commented Nov 27, 2017

Build failed: Tests failed
build url: http://ci.jujucharms.com/job/github-merge-juju/589

Member

axw commented Nov 27, 2017

$$merge$$

Contributor

jujubot commented Nov 27, 2017

Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju

@jujubot jujubot merged commit 53fc1a1 into juju:state-controller-refactor Nov 27, 2017

1 check failed

continuous-integration/jenkins/pr-merge This commit cannot be built
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment