mirror of
https://github.com/openflocon/Flocon.git
synced 2026-04-29 05:29:33 +00:00
feat: [NETWORK] mocks can throw errors (#133)
* feat: [NETWORK] mocks can throw errors * added into android * added on ktor --------- Co-authored-by: Florent Champigny <florent@bere.al>
This commit is contained in:
parent
a50169189e
commit
3cb5abd33f
20 changed files with 640 additions and 339 deletions
|
|
@ -2,7 +2,7 @@
|
|||
"formatVersion": 1,
|
||||
"database": {
|
||||
"version": 43,
|
||||
"identityHash": "6986b724711e2e57552c0c4d4dc1071e",
|
||||
"identityHash": "709eea740fda569b945b16d91e67d5c4",
|
||||
"entities": [
|
||||
{
|
||||
"tableName": "FloconNetworkCallEntity",
|
||||
|
|
@ -889,7 +889,7 @@
|
|||
},
|
||||
{
|
||||
"tableName": "MockNetworkEntity",
|
||||
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`mockId` TEXT NOT NULL, `deviceId` TEXT NOT NULL, `packageName` TEXT NOT NULL, `isEnabled` INTEGER NOT NULL, `expectation_urlPattern` TEXT NOT NULL, `expectation_method` TEXT NOT NULL, `response_httpCode` INTEGER NOT NULL, `response_body` TEXT NOT NULL, `response_mediaType` TEXT NOT NULL, `response_delay` INTEGER NOT NULL, `response_headers` TEXT NOT NULL, PRIMARY KEY(`mockId`))",
|
||||
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`mockId` TEXT NOT NULL, `deviceId` TEXT NOT NULL, `packageName` TEXT NOT NULL, `isEnabled` INTEGER NOT NULL, `response` TEXT NOT NULL, `expectation_urlPattern` TEXT NOT NULL, `expectation_method` TEXT NOT NULL, PRIMARY KEY(`mockId`))",
|
||||
"fields": [
|
||||
{
|
||||
"fieldPath": "mockId",
|
||||
|
|
@ -915,6 +915,12 @@
|
|||
"affinity": "INTEGER",
|
||||
"notNull": true
|
||||
},
|
||||
{
|
||||
"fieldPath": "response",
|
||||
"columnName": "response",
|
||||
"affinity": "TEXT",
|
||||
"notNull": true
|
||||
},
|
||||
{
|
||||
"fieldPath": "expectation.urlPattern",
|
||||
"columnName": "expectation_urlPattern",
|
||||
|
|
@ -926,36 +932,6 @@
|
|||
"columnName": "expectation_method",
|
||||
"affinity": "TEXT",
|
||||
"notNull": true
|
||||
},
|
||||
{
|
||||
"fieldPath": "response.httpCode",
|
||||
"columnName": "response_httpCode",
|
||||
"affinity": "INTEGER",
|
||||
"notNull": true
|
||||
},
|
||||
{
|
||||
"fieldPath": "response.body",
|
||||
"columnName": "response_body",
|
||||
"affinity": "TEXT",
|
||||
"notNull": true
|
||||
},
|
||||
{
|
||||
"fieldPath": "response.mediaType",
|
||||
"columnName": "response_mediaType",
|
||||
"affinity": "TEXT",
|
||||
"notNull": true
|
||||
},
|
||||
{
|
||||
"fieldPath": "response.delay",
|
||||
"columnName": "response_delay",
|
||||
"affinity": "INTEGER",
|
||||
"notNull": true
|
||||
},
|
||||
{
|
||||
"fieldPath": "response.headers",
|
||||
"columnName": "response_headers",
|
||||
"affinity": "TEXT",
|
||||
"notNull": true
|
||||
}
|
||||
],
|
||||
"primaryKey": {
|
||||
|
|
@ -1094,7 +1070,7 @@
|
|||
],
|
||||
"setupQueries": [
|
||||
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
|
||||
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '6986b724711e2e57552c0c4d4dc1071e')"
|
||||
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '709eea740fda569b945b16d91e67d5c4')"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue