e2e: bump chrome version
This commit is contained in:
parent
dc57f433fd
commit
52101007aa
|
@ -2,7 +2,7 @@ version: '3.7'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
chrome:
|
chrome:
|
||||||
image: selenium/standalone-chrome:3.141.59-20200525
|
image: selenium/standalone-chrome:3.141
|
||||||
volumes:
|
volumes:
|
||||||
- /dev/shm:/dev/shm
|
- /dev/shm:/dev/shm
|
||||||
network_mode: host
|
network_mode: host
|
||||||
|
|
|
@ -2,7 +2,7 @@ version: '3.7'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
chrome:
|
chrome:
|
||||||
image: selenium/standalone-chrome-debug:3.141.59-20200719
|
image: selenium/standalone-chrome-debug:3.141
|
||||||
volumes:
|
volumes:
|
||||||
- /dev/shm:/dev/shm
|
- /dev/shm:/dev/shm
|
||||||
network_mode: host
|
network_mode: host
|
||||||
|
|
|
@ -1,35 +1,7 @@
|
||||||
# Generated by Django 3.1.1 on 2020-09-25 10:39
|
# Generated by Django 3.1.1 on 2020-09-25 10:39
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
from django.apps.registry import Apps
|
|
||||||
from django.db import migrations, models
|
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):
|
class Migration(migrations.Migration):
|
||||||
|
|
|
@ -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),
|
||||||
|
]
|
17
swagger.yaml
17
swagger.yaml
|
@ -6088,7 +6088,7 @@ definitions:
|
||||||
- enrollment
|
- enrollment
|
||||||
- unenrollment
|
- unenrollment
|
||||||
- recovery
|
- recovery
|
||||||
- stage_setup
|
- stage_configuration
|
||||||
stages:
|
stages:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
@ -7412,6 +7412,13 @@ definitions:
|
||||||
title: Name
|
title: Name
|
||||||
type: string
|
type: string
|
||||||
minLength: 1
|
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:
|
digits:
|
||||||
title: Digits
|
title: Digits
|
||||||
type: integer
|
type: integer
|
||||||
|
@ -7454,10 +7461,10 @@ definitions:
|
||||||
title: Backends
|
title: Backends
|
||||||
type: string
|
type: string
|
||||||
minLength: 1
|
minLength: 1
|
||||||
change_flow:
|
configure_flow:
|
||||||
title: Change flow
|
title: Configure flow
|
||||||
description: Flow used by an authenticated user to change their password.
|
description: Flow used by an authenticated user to configure this Stage. If
|
||||||
If empty, user will be unable to change their password.
|
empty, user will not be able to configure this stage.
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
x-nullable: true
|
x-nullable: true
|
||||||
|
|
Reference in New Issue