Skip to content

Device deletion tests depend on oneshot UIA #899

Description

@timedoutuk

Related: #893

// delete with wrong password
reqBody := client.WithJSONBody(t, map[string]interface{}{
"auth": map[string]interface{}{
"identifier": map[string]interface{}{
"type": "m.id.user",
"user": authedClient.UserID,
},
"type": "m.login.password",
"password": "super-wrong-password",
},
})

// delete with correct password
reqBody = client.WithJSONBody(t, map[string]interface{}{
"auth": map[string]interface{}{
"identifier": map[string]interface{}{
"type": "m.id.user",
"user": authedClient.UserID,
},
"type": "m.login.password",
"password": "superuser",
},
})

// delete with bob
reqBody := client.WithJSONBody(t, map[string]interface{}{
"auth": map[string]interface{}{
"identifier": map[string]interface{}{
"type": "m.id.user",
"user": bob.UserID,
},
"type": "m.login.password",
"password": "bobspassword",
},
})

// delete with first user password
reqBody = client.WithJSONBody(t, map[string]interface{}{
"auth": map[string]interface{}{
"identifier": map[string]interface{}{
"type": "m.id.user",
"user": authedClient.UserID,
},
"type": "m.login.password",
"password": "superuser",
},
})

Device management tests which delete devices depend on being able to skip UIA, which is not spec compliant and causes flaky failures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions