e2e: bump chrome version

This commit is contained in:
Jens Langhammer 2020-09-25 16:51:32 +02:00
parent dc57f433fd
commit 52101007aa
6 changed files with 56 additions and 35 deletions

View file

@ -2,7 +2,7 @@ version: '3.7'
services:
chrome:
image: selenium/standalone-chrome:3.141.59-20200525
image: selenium/standalone-chrome:3.141
volumes:
- /dev/shm:/dev/shm
network_mode: host

View file

@ -2,7 +2,7 @@ version: '3.7'
services:
chrome:
image: selenium/standalone-chrome-debug:3.141.59-20200719
image: selenium/standalone-chrome-debug:3.141
volumes:
- /dev/shm:/dev/shm
network_mode: host

View file

@ -1,35 +1,7 @@
# Generated by Django 3.1.1 on 2020-09-25 10:39
import django.db.models.deletion
from django.apps.registry import Apps
from django.db import migrations, models
from django.db.backends.base.schema import BaseDatabaseSchemaEditor
from passbook.flows.models import FlowDesignation
from passbook.stages.otp_time.models import TOTPDigits
def create_default_setup_flow(apps: Apps, schema_editor: BaseDatabaseSchemaEditor):
Flow = apps.get_model("passbook_flows", "Flow")
FlowStageBinding = apps.get_model("passbook_flows", "FlowStageBinding")
OTPTimeStage = apps.get_model("passbook_stages_otp_time", "OTPTimeStage")
db_alias = schema_editor.connection.alias
flow, _ = Flow.objects.using(db_alias).update_or_create(
slug="default-otp-time-configure",
designation=FlowDesignation.STAGE_CONFIGURATION,
defaults={"name": "Setup Two-Factor authentication"},
)
stage, _ = OTPTimeStage.objects.using(db_alias).update_or_create(
name="default-otp-time-configure", defaults={"digits": TOTPDigits.SIX}
)
FlowStageBinding.objects.using(db_alias).update_or_create(
target=flow, stage=stage, defaults={"order": 0}
)
class Migration(migrations.Migration):

View file

@ -0,0 +1,42 @@
# Generated by Django 3.1.1 on 2020-09-25 15:36
from django.apps.registry import Apps
from django.db import migrations
from django.db.backends.base.schema import BaseDatabaseSchemaEditor
from passbook.flows.models import FlowDesignation
from passbook.stages.otp_time.models import TOTPDigits
def create_default_setup_flow(apps: Apps, schema_editor: BaseDatabaseSchemaEditor):
Flow = apps.get_model("passbook_flows", "Flow")
FlowStageBinding = apps.get_model("passbook_flows", "FlowStageBinding")
OTPTimeStage = apps.get_model("passbook_stages_otp_time", "OTPTimeStage")
db_alias = schema_editor.connection.alias
flow, _ = Flow.objects.using(db_alias).update_or_create(
slug="default-otp-time-configure",
designation=FlowDesignation.STAGE_CONFIGURATION,
defaults={"name": "Setup Two-Factor authentication"},
)
stage, _ = OTPTimeStage.objects.using(db_alias).update_or_create(
name="default-otp-time-configure", defaults={"digits": TOTPDigits.SIX}
)
FlowStageBinding.objects.using(db_alias).update_or_create(
target=flow, stage=stage, defaults={"order": 0}
)
class Migration(migrations.Migration):
dependencies = [
("passbook_stages_otp_time", "0003_otptimestage_configure_flow"),
]
operations = [
migrations.RunPython(create_default_setup_flow),
]

View file

@ -6088,7 +6088,7 @@ definitions:
- enrollment
- unenrollment
- recovery
- stage_setup
- stage_configuration
stages:
type: array
items:
@ -7412,6 +7412,13 @@ definitions:
title: Name
type: string
minLength: 1
configure_flow:
title: Configure flow
description: Flow used by an authenticated user to configure this Stage. If
empty, user will not be able to configure this stage.
type: string
format: uuid
x-nullable: true
digits:
title: Digits
type: integer
@ -7454,10 +7461,10 @@ definitions:
title: Backends
type: string
minLength: 1
change_flow:
title: Change flow
description: Flow used by an authenticated user to change their password.
If empty, user will be unable to change their password.
configure_flow:
title: Configure flow
description: Flow used by an authenticated user to configure this Stage. If
empty, user will not be able to configure this stage.
type: string
format: uuid
x-nullable: true