Открыть боковую панель
nt_test121
nt_project_9da4a5yt9x4b
Коммиты
c296be25
Коммит
c296be25
создал
Сен 12, 2019
по автору
João Cunha
Просмотр файлов
States updated and update_errored also allow for uninstallation
владелец
b9d9b01e
Изменения
2
Скрыть пробелы
Построчно
Рядом
app/models/clusters/concerns/application_core.rb
Просмотр файла @
c296be25
...
...
@@ -19,7 +19,7 @@ def set_initial_status
end
def
can_uninstall?
allowed_to_uninstall?
&&
uninstall_
errored_or_installed
?
allowed_to_uninstall?
&&
can_
uninstall_
state
?
end
# All new applications should uninstall by default
...
...
@@ -59,8 +59,8 @@ def post_uninstall
private
def
uninstall_
errored_or_installed
?
uninstall_errored?
||
installed?
def
can_
uninstall_
state
?
uninstall_errored?
||
installed?
||
update_errored?
||
updated?
end
end
end
...
...
spec/support/shared_examples/models/cluster_application_core_shared_examples.rb
Просмотр файла @
c296be25
...
...
@@ -20,6 +20,8 @@
where
(
:expected_value
,
:status_name
)
do
true
|
:uninstall_errored
true
|
:installed
true
|
:updated
true
|
:update_errored
false
|
:scheduled
false
|
:uninstalling
end
...
...
@@ -35,6 +37,8 @@
where
(
:expected_value
,
:status_name
)
do
false
|
:uninstall_errored
false
|
:installed
false
|
:updated
false
|
:update_errored
false
|
:scheduled
false
|
:uninstalling
end
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать