Missing fields in a data-form response are now interpreted as an empty value
This commit is contained in:
@@ -64,6 +64,10 @@ TEST_CASE("Database")
|
||||
CHECK(o.col<Database::EncodingIn>() == "ISO-8859-1");
|
||||
CHECK(o.col<Database::RecordHistoryOptional>().is_set == true);
|
||||
CHECK(o.col<Database::RecordHistoryOptional>().value == false);
|
||||
|
||||
o.clear();
|
||||
CHECK(o.col<Database::EncodingIn>() == "");
|
||||
CHECK(o.col<Database::Owner>() == "zouzou@example.com");
|
||||
}
|
||||
|
||||
SECTION("Channel options with server default")
|
||||
|
||||
@@ -2885,6 +2885,7 @@ if __name__ == '__main__':
|
||||
partial(expect_stanza, ("/iq[@type='result']/commands:command[@node='configure'][@sessionid][@status='executing']",
|
||||
"/iq/commands:command/dataform:x[@type='form']/dataform:title[text()='Configure the IRC server irc.localhost']",
|
||||
"/iq/commands:command/dataform:x[@type='form']/dataform:instructions[text()='Edit the form, to configure the settings of the IRC server irc.localhost']",
|
||||
"!/iq/commands:command/dataform:x/dataform:field[@var='tls_ports']/dataform:value",
|
||||
"!/iq/commands:command/dataform:x[@type='form']/dataform:field[@var='pass']/dataform:value",
|
||||
"!/iq/commands:command/dataform:x[@type='form']/dataform:field[@var='after_connect_commands']/dataform:value",
|
||||
"!/iq/commands:command/dataform:x[@type='form']/dataform:field[@var='username']/dataform:value",
|
||||
|
||||
Reference in New Issue
Block a user