Skip to content

Commit 3fd71d0

Browse files
committed
upgrade-charm is replaced by refresh
1 parent c5f0f25 commit 3fd71d0

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

acceptancetests/jujupy/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ def upgrade_charm(self, service, charm_path=None, resvision=None):
14761476
args = args + ('--path', charm_path)
14771477
if resvision is not None:
14781478
args = args + ('--revision', resvision)
1479-
self.juju('upgrade-charm', args)
1479+
self.juju('refresh', args)
14801480

14811481
def remove_application(self, service):
14821482
self.juju('remove-application', (service,))

acceptancetests/jujupy/tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ def test_upgrade_charm(self):
10651065
env.upgrade_charm('foo-service',
10661066
'/bar/repository/angsty/mongodb')
10671067
mock_juju.assert_called_once_with(
1068-
'upgrade-charm', ('foo-service', '--path',
1068+
'refresh', ('foo-service', '--path',
10691069
'/bar/repository/angsty/mongodb',))
10701070

10711071
def test_remove_service(self):

cmd/juju/block/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ Commands that can be disabled are grouped based on logical operations as follows
5959
set-constraints
6060
sync-agents
6161
unexpose
62-
upgrade-charm
62+
refresh
6363
upgrade-model
6464
`

tests/suites/deploy/deploy_charms.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ run_deploy_lxd_to_machine() {
123123
lxc profile show "juju-test-deploy-lxd-machine-lxd-profile-alt-0" |
124124
grep -E "linux.kernel_modules: ([a-zA-Z0-9\_,]+)?ip_tables,ip6_tables([a-zA-Z0-9\_,]+)?"
125125

126-
juju upgrade-charm "lxd-profile-alt" --path "${charm}"
126+
juju refresh "lxd-profile-alt" --path "${charm}"
127127

128128
# Ensure that an upgrade will be kicked off. This doesn't mean an upgrade
129129
# has finished though, just started.
@@ -181,7 +181,7 @@ run_deploy_lxd_to_container() {
181181
OUT=$(juju exec --machine 0 -- sh -c 'sudo lxc profile show "juju-test-deploy-lxd-container-lxd-profile-alt-0"')
182182
echo "${OUT}" | grep -E "linux.kernel_modules: ([a-zA-Z0-9\_,]+)?ip_tables,ip6_tables([a-zA-Z0-9\_,]+)?"
183183

184-
juju upgrade-charm "lxd-profile-alt" --path "${charm}"
184+
juju refresh "lxd-profile-alt" --path "${charm}"
185185

186186
# Ensure that an upgrade will be kicked off. This doesn't mean an upgrade
187187
# has finished though, just started.

tests/suites/hooks/reboot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ run_start_hook_fires_after_reboot() {
4242
wait_for "ubuntu-lite" "$(idle_condition "ubuntu-lite")"
4343

4444
# Ensure that the implicit start hook does not fire after upgrading the unit
45-
juju upgrade-charm ubuntu-lite --revision 10
45+
juju refresh ubuntu-lite --revision 10
4646
echo
4747
sleep 1
4848
wait_for "ubuntu-lite" "$(charm_rev "ubuntu-lite" 10)"

tests/suites/spaces_ec2/upgrade_charm_with_bind.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ run_upgrade_charm_with_bind() {
2929
assert_endpoint_binding_matches "space-defender" "defend-b" "isolated"
3030

3131
# Upgrade the space-defender charm and modify its bindings
32-
juju upgrade-charm space-defender --bind "defend-a=alpha defend-b=alpha" --path ./testcharms/charms/space-defender
32+
juju refresh space-defender --bind "defend-a=alpha defend-b=alpha" --path ./testcharms/charms/space-defender
3333
wait_for "space-defender" "$(idle_condition "space-defender" 0 "${unit_index}")"
3434

3535
# After the upgrade, defend-a should remain attached to ens5 but

tests/suites/upgrade/streams.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ exec_simplestream_metadata() {
124124
fi
125125
done
126126

127-
juju upgrade-charm ubuntu
127+
juju refresh ubuntu
128128

129129
sleep 10
130130
wait_for "ubuntu" "$(idle_condition "ubuntu")"

worker/uniter/uniter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ storage:
15201520
waitUniterDead{},
15211521
),
15221522
// TODO(axw) test that storage-attached is run for new
1523-
// storage attachments before upgrade-charm is run. This
1523+
// storage attachments before refresh is run. This
15241524
// requires additions to state to add storage when a charm
15251525
// is upgraded.
15261526
})

0 commit comments

Comments
 (0)