fix(storage): clarify source path removal impact
This commit is contained in:
parent
f5f904a403
commit
680a7e892d
2 changed files with 7 additions and 1 deletions
|
|
@ -163,6 +163,8 @@ class="volumes-col-actions volumes-cell-actions flex flex-wrap items-center just
|
|||
buttonTitle="Remove" submitAction="clearHostPath({{ $id }})"
|
||||
:actions="[
|
||||
'Are you sure you want to remove the source path?',
|
||||
'The next deployment will use a named Docker volume instead.',
|
||||
'Data from the existing host directory will not be copied to the named volume.',
|
||||
'Use a Directory Mount when you need to mount a host directory.',
|
||||
]" />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -209,10 +209,14 @@ function createApplicationWithVolume(array $applicationAttributes = [], array $v
|
|||
|
||||
it('keeps bind mount source paths out of the add volume form', function () {
|
||||
$storageView = file_get_contents(resource_path('views/livewire/project/service/storage.blade.php'));
|
||||
$volumesView = file_get_contents(resource_path('views/livewire/project/shared/storages/all.blade.php'));
|
||||
|
||||
expect($storageView)
|
||||
->not->toContain('id="host_path"')
|
||||
->not->toContain('Swarm Mode detected');
|
||||
->not->toContain('Swarm Mode detected')
|
||||
->and($volumesView)
|
||||
->toContain('The next deployment will use a named Docker volume instead.')
|
||||
->toContain('Data from the existing host directory will not be copied to the named volume.');
|
||||
});
|
||||
|
||||
it('creates named volumes without a host path in swarm mode', function () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue