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.
Related: #893
complement/tests/csapi/apidoc_device_management_test.go
Lines 143 to 153 in 1a2baac
complement/tests/csapi/apidoc_device_management_test.go
Lines 168 to 178 in 1a2baac
complement/tests/csapi/apidoc_device_management_test.go
Lines 207 to 217 in 1a2baac
complement/tests/csapi/apidoc_device_management_test.go
Lines 230 to 240 in 1a2baac
Device management tests which delete devices depend on being able to skip UIA, which is not spec compliant and causes flaky failures.