mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 23:35:31 +02:00
chore(data-cy): require data-cy attributes [EE-6880] (#11453)
Some checks are pending
ci / build_images (map[arch:amd64 platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
ci / build_images (map[arch:arm platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:arm64 platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:ppc64le platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:s390x platform:linux version:]) (push) Waiting to run
ci / build_manifests (push) Blocked by required conditions
/ triage (push) Waiting to run
Lint / Run linters (push) Waiting to run
Test / test-client (push) Waiting to run
Test / test-server (map[arch:amd64 platform:linux]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
Test / test-server (map[arch:arm64 platform:linux]) (push) Waiting to run
Some checks are pending
ci / build_images (map[arch:amd64 platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
ci / build_images (map[arch:arm platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:arm64 platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:ppc64le platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:s390x platform:linux version:]) (push) Waiting to run
ci / build_manifests (push) Blocked by required conditions
/ triage (push) Waiting to run
Lint / Run linters (push) Waiting to run
Test / test-client (push) Waiting to run
Test / test-server (map[arch:amd64 platform:linux]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
Test / test-server (map[arch:arm64 platform:linux]) (push) Waiting to run
This commit is contained in:
parent
3cad13388c
commit
d38085a560
538 changed files with 2571 additions and 595 deletions
|
@ -4,7 +4,12 @@
|
|||
<rd-widget-body classes="no-padding">
|
||||
<div class="form-inline" style="padding: 10px" authorization="DockerServiceUpdate">
|
||||
Add a config:
|
||||
<select class="form-control !h-[30px] !text-[13px]" ng-options="config.Name for config in filterConfigs(configs) | orderBy: 'Name'" ng-model="newConfig">
|
||||
<select
|
||||
class="form-control !h-[30px] !text-[13px]"
|
||||
ng-options="config.Name for config in filterConfigs(configs) | orderBy: 'Name'"
|
||||
ng-model="newConfig"
|
||||
data-cy="service-configs-select"
|
||||
>
|
||||
<option selected disabled hidden value="">Select a config</option>
|
||||
</select>
|
||||
<a class="btn btn-default btn-sm" ng-click="addConfig(service, newConfig)"> <pr-icon icon="'plus'"></pr-icon> add config </a>
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
<div class="input-group input-group-sm">
|
||||
<input
|
||||
type="text"
|
||||
data-cy="placement-constraint-key-input-{{ $index }}"
|
||||
class="form-control"
|
||||
ng-model="constraint.key"
|
||||
placeholder="e.g. node.role"
|
||||
|
@ -43,6 +44,7 @@
|
|||
ng-change="updatePlacementConstraint(service, constraint)"
|
||||
ng-disabled="isUpdating"
|
||||
disable-authorization="DockerServiceUpdate"
|
||||
data-cy="placement-constraint-operator=selectoer"
|
||||
>
|
||||
<option value="==">==</option>
|
||||
<option value="!=">!=</option>
|
||||
|
@ -53,6 +55,7 @@
|
|||
<div class="input-group input-group-sm">
|
||||
<input
|
||||
type="text"
|
||||
data-cy="placement-constraint-value-input-{{ $index }}"
|
||||
class="form-control"
|
||||
ng-model="constraint.value"
|
||||
placeholder="e.g. manager"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
<span class="input-group-addon fit-text-size">name</span>
|
||||
<input
|
||||
type="text"
|
||||
data-cy="container-label-key-{{ $index }}"
|
||||
class="form-control"
|
||||
ng-model="label.key"
|
||||
placeholder="e.g. com.example.foo"
|
||||
|
@ -39,6 +40,7 @@
|
|||
<span class="input-group-addon fit-text-size">value</span>
|
||||
<input
|
||||
type="text"
|
||||
data-cy="container-label-value_{{ $index }}"
|
||||
class="form-control"
|
||||
ng-model="label.value"
|
||||
placeholder="e.g. bar"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
data-cy="hosts-entry-hostname-input-{{ $index }}"
|
||||
ng-model="entry.hostname"
|
||||
placeholder="e.g. example.com"
|
||||
ng-change="updateHostsEntry(service, entry)"
|
||||
|
@ -37,6 +38,7 @@
|
|||
<div class="input-group input-group-sm">
|
||||
<input
|
||||
type="text"
|
||||
data-cy="hosts-entry-ip-input-{{ $index }}"
|
||||
class="form-control"
|
||||
ng-model="entry.ip"
|
||||
placeholder="e.g. 10.0.1.1"
|
||||
|
|
|
@ -4,7 +4,13 @@
|
|||
<rd-widget-body classes="no-padding">
|
||||
<div class="form-inline" style="padding: 10px" authorization="DockerServiceUpdate">
|
||||
Driver:
|
||||
<select class="form-control !h-[30px] !text-[13px]" ng-model="service.LogDriverName" ng-change="updateLogDriverName(service)" ng-disabled="isUpdating">
|
||||
<select
|
||||
class="form-control !h-[30px] !text-[13px]"
|
||||
ng-model="service.LogDriverName"
|
||||
ng-change="updateLogDriverName(service)"
|
||||
ng-disabled="isUpdating"
|
||||
data-cy="logging-driver-selector"
|
||||
>
|
||||
<option selected value="">Default logging driver</option>
|
||||
<option ng-repeat="driver in availableLoggingDrivers" ng-value="driver">{{ driver }}</option>
|
||||
<option value="none">none</option>
|
||||
|
@ -25,7 +31,14 @@
|
|||
<td class="w-1/2">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-addon fit-text-size">name</span>
|
||||
<input type="text" class="form-control" ng-model="option.key" ng-disabled="option.added || isUpdating" placeholder="e.g. FOO" />
|
||||
<input
|
||||
type="text"
|
||||
data-cy="service-logging-driver-option-name-input-{{ $index }}"
|
||||
class="form-control"
|
||||
ng-model="option.key"
|
||||
ng-disabled="option.added || isUpdating"
|
||||
placeholder="e.g. FOO"
|
||||
/>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
@ -33,6 +46,7 @@
|
|||
<span class="input-group-addon fit-text-size">value</span>
|
||||
<input
|
||||
type="text"
|
||||
data-cy="service-logging-driver-option-value-input-{{ $index }}"
|
||||
class="form-control"
|
||||
ng-model="option.value"
|
||||
ng-change="updateLogDriverOpt(service, option)"
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
<td class="!pt-6 !align-top" ng-if="isAdmin || allowBindMounts">
|
||||
<select
|
||||
name="mountType"
|
||||
data-cy="mount-type-selector"
|
||||
class="form-control !h-[30px] !text-[13px]"
|
||||
ng-model="mount.Type"
|
||||
ng-change="onChangeMountType(service, mount)"
|
||||
|
@ -43,11 +44,13 @@
|
|||
ng-options="vol.Id as ((vol.Id|truncate:30) + ' - ' + (vol.Driver|truncate:30)) for vol in availableVolumes"
|
||||
ng-if="mount.Type === 'volume'"
|
||||
disable-authorization="DockerServiceUpdate"
|
||||
data-cy="volume-selector"
|
||||
>
|
||||
<option selected disabled hidden value="">Select a volume</option>
|
||||
</select>
|
||||
<input
|
||||
type="text"
|
||||
data-cy="bind-mount-source-input-{{ index }}"
|
||||
class="form-control !h-[30px] !text-[13px]"
|
||||
name=""
|
||||
ng-model="mount.Source"
|
||||
|
@ -64,6 +67,7 @@
|
|||
<td class="!pb-0 !pt-6 !align-top">
|
||||
<input
|
||||
type="text"
|
||||
data-cy="mount-target-input-{{ index }}"
|
||||
class="form-control mb-6 !h-[30px] !text-[13px]"
|
||||
ng-model="mount.Target"
|
||||
placeholder="e.g. /tmp/portainer/data"
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
ng-options="net.Id as net.Name for net in filterNetworks(swarmNetworks, network)"
|
||||
disable-authorization="DockerServiceUpdate"
|
||||
style="width: initial; min-width: 50%"
|
||||
data-cy="network-selector_{{ network.Name }}"
|
||||
>
|
||||
<option disabled value="" selected>Select a network</option>
|
||||
</select>
|
||||
|
@ -37,9 +38,7 @@
|
|||
<td>
|
||||
<a ui-sref="docker.networks.network({id: network.Id})">{{ network.Id }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ network.Addr }}
|
||||
</td>
|
||||
<td> {{ network.Addr }} </td>
|
||||
<td ng-if="network.Editable" authorization="DockerServiceUpdate">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-sm btn-dangerlight" type="button" ng-click="removeNetwork(service, $index)" ng-disabled="isUpdating">
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
<div class="input-group input-group-sm">
|
||||
<input
|
||||
type="text"
|
||||
data-cy="placement-preference-strategy-input-{{ $index }}"
|
||||
class="form-control"
|
||||
ng-model="preference.strategy"
|
||||
placeholder="e.g. node.role"
|
||||
|
@ -37,6 +38,7 @@
|
|||
<div class="input-group input-group-sm">
|
||||
<input
|
||||
type="text"
|
||||
data-cy="placement-preference-value-input-{{ $index }}"
|
||||
class="form-control"
|
||||
ng-model="preference.value"
|
||||
placeholder="e.g. manager"
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
<input
|
||||
class="input-sm"
|
||||
type="number"
|
||||
data-cy="docker-service-memory-reservation-input"
|
||||
step="0.125"
|
||||
min="0"
|
||||
ng-model="service.ReservationMemoryBytes"
|
||||
|
@ -27,6 +28,7 @@
|
|||
<input
|
||||
class="input-sm"
|
||||
type="number"
|
||||
data-cy="docker-service-memory-limit-input"
|
||||
step="0.125"
|
||||
min="0"
|
||||
ng-model="service.LimitMemoryBytes"
|
||||
|
@ -44,6 +46,7 @@
|
|||
</td>
|
||||
<td>
|
||||
<slider
|
||||
data-cy="docker-service-cpu-reservation-slider"
|
||||
model="service.ReservationNanoCPUs"
|
||||
floor="0"
|
||||
ceil="state.sliderMaxCpu"
|
||||
|
@ -64,6 +67,7 @@
|
|||
</td>
|
||||
<td>
|
||||
<slider
|
||||
data-cy="docker-service-cpu-limit-slider"
|
||||
model="service.LimitNanoCPUs"
|
||||
floor="0"
|
||||
ceil="state.sliderMaxCpu"
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
<div class="input-group input-group-sm">
|
||||
<select
|
||||
class="selectpicker form-control !rounded"
|
||||
data-cy="docker-service-restart-condition-select"
|
||||
ng-model="service.RestartCondition"
|
||||
ng-change="updateServiceAttribute(service, 'RestartCondition')"
|
||||
disable-authorization="DockerServiceUpdate"
|
||||
|
@ -30,6 +31,7 @@
|
|||
<input
|
||||
class="input-sm"
|
||||
type="text"
|
||||
data-cy="docker-service-restart-delay-input"
|
||||
ng-model="service.RestartDelay"
|
||||
ng-change="updateServiceAttribute(service, 'RestartDelay')"
|
||||
ng-pattern="/^([0-9]+)(h|m|s|ms|us|ns)$/i"
|
||||
|
@ -48,6 +50,7 @@
|
|||
<input
|
||||
class="input-sm"
|
||||
type="number"
|
||||
data-cy="docker-service-restart-max-attempts-input"
|
||||
ng-model="service.RestartMaxAttempts"
|
||||
ng-change="updateServiceAttribute(service, 'RestartMaxAttempts')"
|
||||
disable-authorization="DockerServiceUpdate"
|
||||
|
@ -63,6 +66,7 @@
|
|||
<input
|
||||
class="input-sm"
|
||||
type="text"
|
||||
data-cy="docker-service-restart-window-input"
|
||||
ng-model="service.RestartWindow"
|
||||
ng-change="updateServiceAttribute(service, 'RestartWindow')"
|
||||
ng-pattern="/^([0-9]+)(h|m|s|ms|us|ns)$/i"
|
||||
|
|
|
@ -4,7 +4,12 @@
|
|||
<rd-widget-body classes="no-padding">
|
||||
<div class="form-inline" style="padding: 10px" authorization="DockerServiceUpdate">
|
||||
Add a secret:
|
||||
<select class="form-control !h-[30px] !text-[13px]" ng-options="secret.Name for secret in secrets | orderBy: 'Name'" ng-model="state.addSecret.secret">
|
||||
<select
|
||||
class="form-control !h-[30px] !text-[13px]"
|
||||
ng-options="secret.Name for secret in secrets | orderBy: 'Name'"
|
||||
ng-model="state.addSecret.secret"
|
||||
data-cy="service-secrets-select"
|
||||
>
|
||||
<option selected disabled hidden value="">Select a secret</option>
|
||||
</select>
|
||||
<div class="form-group" ng-if="applicationState.endpoint.apiVersion >= 1.3 && state.addSecret.override">
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
<span class="input-group-addon fit-text-size">name</span>
|
||||
<input
|
||||
type="text"
|
||||
data-cy="service-label-key-{{ $index }}"
|
||||
class="form-control"
|
||||
ng-model="label.key"
|
||||
placeholder="e.g. com.example.foo"
|
||||
|
@ -37,6 +38,7 @@
|
|||
<span class="input-group-addon fit-text-size">value</span>
|
||||
<input
|
||||
type="text"
|
||||
data-cy="service-label-value_{{ $index }}"
|
||||
class="form-control"
|
||||
ng-model="label.value"
|
||||
placeholder="e.g. bar"
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
<input
|
||||
class="input-sm"
|
||||
type="number"
|
||||
data-cy="docker-service-update-parallelism-input"
|
||||
ng-model="service.UpdateParallelism"
|
||||
ng-change="updateServiceAttribute(service, 'UpdateParallelism')"
|
||||
disable-authorization="DockerServiceUpdate"
|
||||
|
@ -25,6 +26,7 @@
|
|||
<input
|
||||
class="input-sm"
|
||||
type="text"
|
||||
data-cy="docker-service-update-delay-input"
|
||||
ng-model="service.UpdateDelay"
|
||||
ng-change="updateServiceAttribute(service, 'UpdateDelay')"
|
||||
ng-pattern="/^([0-9]+)(h|m|s|ms|us|ns)$/i"
|
||||
|
@ -43,6 +45,7 @@
|
|||
<input
|
||||
type="radio"
|
||||
name="failure_action"
|
||||
data-cy="update-failure-action-continue"
|
||||
ng-model="service.UpdateFailureAction"
|
||||
value="continue"
|
||||
ng-change="updateServiceAttribute(service, 'UpdateFailureAction')"
|
||||
|
@ -54,6 +57,7 @@
|
|||
<input
|
||||
type="radio"
|
||||
name="failure_action"
|
||||
data-cy="update-failure-action-pause"
|
||||
ng-model="service.UpdateFailureAction"
|
||||
value="pause"
|
||||
ng-change="updateServiceAttribute(service, 'UpdateFailureAction')"
|
||||
|
@ -75,6 +79,7 @@
|
|||
<input
|
||||
type="radio"
|
||||
name="updateconfig_order"
|
||||
data-cy="update-order-start-first"
|
||||
ng-model="service.UpdateOrder"
|
||||
value="start-first"
|
||||
ng-change="updateServiceAttribute(service, 'UpdateOrder')"
|
||||
|
@ -86,6 +91,7 @@
|
|||
<input
|
||||
type="radio"
|
||||
name="updateconfig_order"
|
||||
data-cy="update-order-stop-first"
|
||||
ng-model="service.UpdateOrder"
|
||||
value="stop-first"
|
||||
ng-change="updateServiceAttribute(service, 'UpdateOrder')"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue