|
Greenbone Vulnerability Management Libraries 22.40.0
|

Go to the source code of this file.
Functions | |
| int | __wrap_gvm_server_sendf (gnutls_session_t *session, const char *fmt,...) |
| int | __wrap_gvm_server_sendf_xml (gnutls_session_t *session, const char *fmt,...) |
| int | __wrap_gvm_server_sendf_xml_quiet (gnutls_session_t *session, const char *fmt,...) |
| int | __wrap_read_entity (gnutls_session_t *session, entity_t *entity) |
| int | __wrap_try_read_entity (gnutls_session_t *session, int timeout, entity_t *entity) |
| int | __wrap_gvm_connection_sendf (gvm_connection_t *connection, const char *fmt,...) |
| int | __wrap_gvm_connection_sendf_xml_quiet (gvm_connection_t *connection, const char *fmt,...) |
| int | __wrap_read_entity_c (gvm_connection_t *connection, entity_t *entity) |
| int | __wrap_try_read_entity_c (gvm_connection_t *connection, int timeout, entity_t *entity) |
| Describe (gmp) | |
| BeforeEach (gmp) | |
| AfterEach (gmp) | |
| static entity_t | create_mock_entity (const char *name, const char *text) |
| static void | add_mock_attribute (entity_t entity, const char *name, const char *value) |
| static void | add_mock_child (entity_t parent, entity_t child) |
| Ensure (gmp, gmp_task_status_returns_correct_string_for_valid_response) | |
| Ensure (gmp, gmp_task_status_returns_null_when_no_task) | |
| Ensure (gmp, gmp_task_status_returns_null_when_no_status) | |
| Ensure (gmp, gmp_read_create_response_returns_uuid_on_success) | |
| Ensure (gmp, gmp_read_create_response_succeeds_without_uuid_parameter) | |
| Ensure (gmp, gmp_read_create_response_returns_error_when_no_status) | |
| Ensure (gmp, gmp_read_create_response_returns_error_on_read_failure) | |
| Ensure (gmp, gmp_check_response_succeeds_with_valid_response) | |
| Ensure (gmp, gmp_check_response_returns_gmp_error_code) | |
| Ensure (gmp, gmp_check_response_returns_error_on_read_failure) | |
| Ensure (gmp, gmp_check_response_returns_error_when_no_status) | |
| Ensure (gmp, gmp_ping_succeeds_with_valid_response) | |
| Ensure (gmp, gmp_ping_returns_error_on_send_failure) | |
| Ensure (gmp, gmp_ping_returns_error_on_read_failure) | |
| Ensure (gmp, gmp_ping_returns_error_with_invalid_status) | |
| Ensure (gmp, gmp_authenticate_info_ext_c_returns_success_and_sets_outputs) | |
| Ensure (gmp, gmp_authenticate_info_ext_c_succeeds_without_optional_outputs) | |
| Ensure (gmp, gmp_authenticate_info_ext_c_returns_send_error) | |
| Ensure (gmp, gmp_authenticate_info_ext_c_returns_timeout_on_try_read_timeout) | |
| Ensure (gmp, gmp_authenticate_info_ext_c_returns_error_on_read_failure) | |
| Ensure (gmp, gmp_authenticate_info_ext_c_returns_error_when_status_empty) | |
| Ensure (gmp, gmp_authenticate_info_ext_c_returns_2_on_auth_failure) | |
| Ensure (gmp, gmp_authenticate_info_ext_c_leaves_jwt_null_when_requested_but_missing) | |
| Ensure (gmp, gmp_authenticate_info_ext_c_leaves_optional_outputs_null_when_absent) | |
| int | main (int argc, char **argv) |
| int __wrap_gvm_connection_sendf | ( | gvm_connection_t * | connection, |
| const char * | fmt, | ||
| ... ) |
Definition at line 71 of file gmp_tests.c.
| int __wrap_gvm_connection_sendf_xml_quiet | ( | gvm_connection_t * | connection, |
| const char * | fmt, | ||
| ... ) |
| int __wrap_gvm_server_sendf | ( | gnutls_session_t * | session, |
| const char * | fmt, | ||
| ... ) |
| int __wrap_gvm_server_sendf_xml | ( | gnutls_session_t * | session, |
| const char * | fmt, | ||
| ... ) |
Definition at line 24 of file gmp_tests.c.
| int __wrap_gvm_server_sendf_xml_quiet | ( | gnutls_session_t * | session, |
| const char * | fmt, | ||
| ... ) |
Definition at line 33 of file gmp_tests.c.
| int __wrap_read_entity | ( | gnutls_session_t * | session, |
| entity_t * | entity ) |
Definition at line 42 of file gmp_tests.c.
Referenced by Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), and Ensure().

| int __wrap_read_entity_c | ( | gvm_connection_t * | connection, |
| entity_t * | entity ) |
Definition at line 89 of file gmp_tests.c.
| int __wrap_try_read_entity | ( | gnutls_session_t * | session, |
| int | timeout, | ||
| entity_t * | entity ) |
| int __wrap_try_read_entity_c | ( | gvm_connection_t * | connection, |
| int | timeout, | ||
| entity_t * | entity ) |
Definition at line 103 of file gmp_tests.c.
Referenced by Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), and Ensure().

|
static |
Definition at line 137 of file gmp_tests.c.
References entity_s::attributes.
Referenced by Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), and Ensure().

Definition at line 144 of file gmp_tests.c.
References entity_s::entities.
Referenced by Ensure().

| AfterEach | ( | gmp | ) |
Definition at line 119 of file gmp_tests.c.
| BeforeEach | ( | gmp | ) |
Definition at line 115 of file gmp_tests.c.
|
static |
Definition at line 125 of file gmp_tests.c.
References entity_s::attributes, entity_s::name, and entity_s::text.
Referenced by Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), and Ensure().

| Describe | ( | gmp | ) |
| Ensure | ( | gmp | , |
| gmp_authenticate_info_ext_c_leaves_jwt_null_when_requested_but_missing | ) |
Definition at line 513 of file gmp_tests.c.
References __wrap_gvm_connection_sendf_xml_quiet(), __wrap_try_read_entity_c(), add_mock_attribute(), create_mock_entity(), gmp_authenticate_info_ext_c(), gmp_authenticate_info_opts_defaults, gmp_authenticate_info_opts_t::jwt, gmp_authenticate_info_opts_t::jwt_requested, gmp_authenticate_info_opts_t::password, gmp_authenticate_info_opts_t::timeout, and gmp_authenticate_info_opts_t::username.

| Ensure | ( | gmp | , |
| gmp_authenticate_info_ext_c_leaves_optional_outputs_null_when_absent | ) |
Definition at line 538 of file gmp_tests.c.
References __wrap_gvm_connection_sendf_xml_quiet(), __wrap_try_read_entity_c(), add_mock_attribute(), create_mock_entity(), gmp_authenticate_info_ext_c(), gmp_authenticate_info_opts_defaults, gmp_authenticate_info_opts_t::password, gmp_authenticate_info_opts_t::pw_warning, gmp_authenticate_info_opts_t::role, gmp_authenticate_info_opts_t::timeout, gmp_authenticate_info_opts_t::timezone, and gmp_authenticate_info_opts_t::username.

| Ensure | ( | gmp | , |
| gmp_authenticate_info_ext_c_returns_2_on_auth_failure | ) |
Definition at line 494 of file gmp_tests.c.
References __wrap_gvm_connection_sendf_xml_quiet(), __wrap_try_read_entity_c(), add_mock_attribute(), create_mock_entity(), gmp_authenticate_info_ext_c(), gmp_authenticate_info_opts_defaults, gmp_authenticate_info_opts_t::password, gmp_authenticate_info_opts_t::timeout, and gmp_authenticate_info_opts_t::username.

| Ensure | ( | gmp | , |
| gmp_authenticate_info_ext_c_returns_error_on_read_failure | ) |
Definition at line 460 of file gmp_tests.c.
References __wrap_gvm_connection_sendf_xml_quiet(), __wrap_try_read_entity_c(), gmp_authenticate_info_ext_c(), gmp_authenticate_info_opts_defaults, gmp_authenticate_info_opts_t::password, gmp_authenticate_info_opts_t::timeout, and gmp_authenticate_info_opts_t::username.

| Ensure | ( | gmp | , |
| gmp_authenticate_info_ext_c_returns_error_when_status_empty | ) |
Definition at line 475 of file gmp_tests.c.
References __wrap_gvm_connection_sendf_xml_quiet(), __wrap_try_read_entity_c(), add_mock_attribute(), create_mock_entity(), gmp_authenticate_info_ext_c(), gmp_authenticate_info_opts_defaults, gmp_authenticate_info_opts_t::password, gmp_authenticate_info_opts_t::timeout, and gmp_authenticate_info_opts_t::username.

| Ensure | ( | gmp | , |
| gmp_authenticate_info_ext_c_returns_send_error | ) |
Definition at line 432 of file gmp_tests.c.
References __wrap_gvm_connection_sendf_xml_quiet(), gmp_authenticate_info_ext_c(), gmp_authenticate_info_opts_defaults, gmp_authenticate_info_opts_t::password, and gmp_authenticate_info_opts_t::username.

| Ensure | ( | gmp | , |
| gmp_authenticate_info_ext_c_returns_success_and_sets_outputs | ) |
Definition at line 364 of file gmp_tests.c.
References __wrap_gvm_connection_sendf_xml_quiet(), __wrap_try_read_entity_c(), add_mock_attribute(), add_mock_child(), create_mock_entity(), gmp_authenticate_info_ext_c(), gmp_authenticate_info_opts_defaults, gmp_authenticate_info_opts_t::jwt, gmp_authenticate_info_opts_t::jwt_requested, gmp_authenticate_info_opts_t::password, gmp_authenticate_info_opts_t::pw_warning, gmp_authenticate_info_opts_t::role, gmp_authenticate_info_opts_t::timeout, gmp_authenticate_info_opts_t::timezone, and gmp_authenticate_info_opts_t::username.

| Ensure | ( | gmp | , |
| gmp_authenticate_info_ext_c_returns_timeout_on_try_read_timeout | ) |
Definition at line 445 of file gmp_tests.c.
References __wrap_gvm_connection_sendf_xml_quiet(), __wrap_try_read_entity_c(), gmp_authenticate_info_ext_c(), gmp_authenticate_info_opts_defaults, gmp_authenticate_info_opts_t::password, gmp_authenticate_info_opts_t::timeout, and gmp_authenticate_info_opts_t::username.

| Ensure | ( | gmp | , |
| gmp_authenticate_info_ext_c_succeeds_without_optional_outputs | ) |
Definition at line 413 of file gmp_tests.c.
References __wrap_gvm_connection_sendf_xml_quiet(), __wrap_try_read_entity_c(), add_mock_attribute(), create_mock_entity(), gmp_authenticate_info_ext_c(), gmp_authenticate_info_opts_defaults, gmp_authenticate_info_opts_t::password, gmp_authenticate_info_opts_t::timeout, and gmp_authenticate_info_opts_t::username.

| Ensure | ( | gmp | , |
| gmp_check_response_returns_error_on_read_failure | ) |
Definition at line 288 of file gmp_tests.c.
References __wrap_read_entity(), and gmp_check_response().

| Ensure | ( | gmp | , |
| gmp_check_response_returns_error_when_no_status | ) |
Definition at line 299 of file gmp_tests.c.
References __wrap_read_entity(), create_mock_entity(), and gmp_check_response().

| Ensure | ( | gmp | , |
| gmp_check_response_returns_gmp_error_code | ) |
Definition at line 273 of file gmp_tests.c.
References __wrap_read_entity(), add_mock_attribute(), create_mock_entity(), and gmp_check_response().

| Ensure | ( | gmp | , |
| gmp_check_response_succeeds_with_valid_response | ) |
Definition at line 256 of file gmp_tests.c.
References __wrap_read_entity(), add_mock_attribute(), create_mock_entity(), free_entity(), and gmp_check_response().

| Ensure | ( | gmp | , |
| gmp_ping_returns_error_on_read_failure | ) |
Definition at line 339 of file gmp_tests.c.
References __wrap_gvm_server_sendf(), __wrap_try_read_entity(), and gmp_ping().

| Ensure | ( | gmp | , |
| gmp_ping_returns_error_on_send_failure | ) |
Definition at line 330 of file gmp_tests.c.
References __wrap_gvm_server_sendf(), and gmp_ping().

| Ensure | ( | gmp | , |
| gmp_ping_returns_error_with_invalid_status | ) |
Definition at line 349 of file gmp_tests.c.
References __wrap_gvm_server_sendf(), __wrap_try_read_entity(), add_mock_attribute(), create_mock_entity(), and gmp_ping().

| Ensure | ( | gmp | , |
| gmp_ping_succeeds_with_valid_response | ) |
Definition at line 315 of file gmp_tests.c.
References __wrap_gvm_server_sendf(), __wrap_try_read_entity(), add_mock_attribute(), create_mock_entity(), and gmp_ping().

| Ensure | ( | gmp | , |
| gmp_read_create_response_returns_error_on_read_failure | ) |
Definition at line 243 of file gmp_tests.c.
References __wrap_read_entity(), and gmp_read_create_response().

| Ensure | ( | gmp | , |
| gmp_read_create_response_returns_error_when_no_status | ) |
Definition at line 229 of file gmp_tests.c.
References __wrap_read_entity(), create_mock_entity(), and gmp_read_create_response().

| Ensure | ( | gmp | , |
| gmp_read_create_response_returns_uuid_on_success | ) |
Definition at line 193 of file gmp_tests.c.
References __wrap_read_entity(), add_mock_attribute(), create_mock_entity(), and gmp_read_create_response().

| Ensure | ( | gmp | , |
| gmp_read_create_response_succeeds_without_uuid_parameter | ) |
Definition at line 214 of file gmp_tests.c.
References __wrap_read_entity(), add_mock_attribute(), create_mock_entity(), and gmp_read_create_response().

| Ensure | ( | gmp | , |
| gmp_task_status_returns_correct_string_for_valid_response | ) |
Definition at line 151 of file gmp_tests.c.
References create_mock_entity(), entity_s::entities, free_entity(), and gmp_task_status().

| Ensure | ( | gmp | , |
| gmp_task_status_returns_null_when_no_status | ) |
Definition at line 178 of file gmp_tests.c.
References create_mock_entity(), entity_s::entities, free_entity(), and gmp_task_status().

| Ensure | ( | gmp | , |
| gmp_task_status_returns_null_when_no_task | ) |
Definition at line 167 of file gmp_tests.c.
References create_mock_entity(), free_entity(), and gmp_task_status().

| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 571 of file gmp_tests.c.