Related: #893
|
func deactivateAccount(t *testing.T, authedClient *client.CSAPI, password string) *http.Response { |
|
t.Helper() |
|
reqBody := client.WithJSONBody(t, map[string]interface{}{ |
|
"auth": map[string]interface{}{ |
|
"type": "m.login.password", |
|
"identifier": map[string]interface{}{ |
|
"type": "m.id.user", |
|
"user": authedClient.UserID, |
|
}, |
|
"password": password, |
|
}, |
|
}) |
The account deactivation helper requires being capable of skipping UIA, which is not spec compliant and causes flaky failures in all tests that use it.
Related: #893
complement/tests/csapi/account_deactivate_test.go
Lines 110 to 121 in 1a2baac
The account deactivation helper requires being capable of skipping UIA, which is not spec compliant and causes flaky failures in all tests that use it.