Enumerations | Functions | Variables
call_creds.cc File Reference
#include <stdio.h>
#include <string.h>
#include <grpc/byte_buffer.h>
#include <grpc/grpc_security.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/time.h>
#include "src/core/lib/security/credentials/credentials.h"
#include "test/core/end2end/cq_verifier.h"
#include "test/core/end2end/end2end_tests.h"
Include dependency graph for call_creds.cc:

Go to the source code of this file.

Enumerations

enum  override_mode { NONE, OVERRIDE, DESTROY, FAIL }
 

Functions

static grpc_end2end_test_fixture begin_test (grpc_end2end_test_config config, const char *test_name, bool use_secure_call_creds, int fail_server_auth_check)
 
void call_creds (grpc_end2end_test_config config)
 
void call_creds_pre_init (void)
 
static void drain_cq (grpc_completion_queue *cq)
 
static void end_test (grpc_end2end_test_fixture *f)
 
static gpr_timespec five_seconds_from_now (void)
 
static gpr_timespec n_seconds_from_now (int n)
 
static void print_auth_context (int is_client, const grpc_auth_context *ctx)
 
static void request_response_with_payload_and_call_creds (const char *test_name, grpc_end2end_test_config config, override_mode mode, bool use_secure_call_creds)
 
static void shutdown_client (grpc_end2end_test_fixture *f)
 
static void shutdown_server (grpc_end2end_test_fixture *f)
 
static void * tag (intptr_t t)
 
static void test_request_response_with_payload_and_call_creds (grpc_end2end_test_config config, bool use_secure_call_creds)
 
static void test_request_response_with_payload_and_deleted_call_creds (grpc_end2end_test_config config, bool use_secure_call_creds)
 
static void test_request_response_with_payload_and_overridden_call_creds (grpc_end2end_test_config config, bool use_secure_call_creds)
 
static void test_request_response_with_payload_fail_to_send_call_creds (grpc_end2end_test_config config, bool use_secure_call_creds)
 
static void test_request_with_server_rejecting_client_creds (grpc_end2end_test_config config)
 

Variables

static const char fake_md_key [] = "fake_key"
 
static const char fake_md_value [] = "fake_value"
 
static const char iam_selector [] = "selector"
 
static const char iam_token [] = "token"
 
static const char overridden_fake_md_key [] = "overridden_fake_key"
 
static const char overridden_fake_md_value [] = "overridden_fake_value"
 
static const char overridden_iam_selector [] = "overridden_selector"
 
static const char overridden_iam_token [] = "overridden_token"
 

Enumeration Type Documentation

◆ override_mode

Enumerator
NONE 
OVERRIDE 
DESTROY 
FAIL 

Definition at line 42 of file call_creds.cc.

Function Documentation

◆ begin_test()

static grpc_end2end_test_fixture begin_test ( grpc_end2end_test_config  config,
const char *  test_name,
bool  use_secure_call_creds,
int  fail_server_auth_check 
)
static

Definition at line 46 of file call_creds.cc.

◆ call_creds()

void call_creds ( grpc_end2end_test_config  config)

Definition at line 523 of file call_creds.cc.

◆ call_creds_pre_init()

void call_creds_pre_init ( void  )

Definition at line 550 of file call_creds.cc.

◆ drain_cq()

static void drain_cq ( grpc_completion_queue cq)
static

Definition at line 80 of file call_creds.cc.

◆ end_test()

static void end_test ( grpc_end2end_test_fixture f)
static

Definition at line 105 of file call_creds.cc.

◆ five_seconds_from_now()

static gpr_timespec five_seconds_from_now ( void  )
static

Definition at line 76 of file call_creds.cc.

◆ n_seconds_from_now()

static gpr_timespec n_seconds_from_now ( int  n)
static

Definition at line 72 of file call_creds.cc.

◆ print_auth_context()

static void print_auth_context ( int  is_client,
const grpc_auth_context ctx 
)
static

Definition at line 114 of file call_creds.cc.

◆ request_response_with_payload_and_call_creds()

static void request_response_with_payload_and_call_creds ( const char *  test_name,
grpc_end2end_test_config  config,
override_mode  mode,
bool  use_secure_call_creds 
)
static

Definition at line 131 of file call_creds.cc.

◆ shutdown_client()

static void shutdown_client ( grpc_end2end_test_fixture f)
static

Definition at line 99 of file call_creds.cc.

◆ shutdown_server()

static void shutdown_server ( grpc_end2end_test_fixture f)
static

Definition at line 87 of file call_creds.cc.

◆ tag()

static void* tag ( intptr_t  t)
static

Definition at line 44 of file call_creds.cc.

◆ test_request_response_with_payload_and_call_creds()

static void test_request_response_with_payload_and_call_creds ( grpc_end2end_test_config  config,
bool  use_secure_call_creds 
)
static

Definition at line 396 of file call_creds.cc.

◆ test_request_response_with_payload_and_deleted_call_creds()

static void test_request_response_with_payload_and_deleted_call_creds ( grpc_end2end_test_config  config,
bool  use_secure_call_creds 
)
static

Definition at line 410 of file call_creds.cc.

◆ test_request_response_with_payload_and_overridden_call_creds()

static void test_request_response_with_payload_and_overridden_call_creds ( grpc_end2end_test_config  config,
bool  use_secure_call_creds 
)
static

Definition at line 403 of file call_creds.cc.

◆ test_request_response_with_payload_fail_to_send_call_creds()

static void test_request_response_with_payload_fail_to_send_call_creds ( grpc_end2end_test_config  config,
bool  use_secure_call_creds 
)
static

Definition at line 417 of file call_creds.cc.

◆ test_request_with_server_rejecting_client_creds()

static void test_request_with_server_rejecting_client_creds ( grpc_end2end_test_config  config)
static

Definition at line 424 of file call_creds.cc.

Variable Documentation

◆ fake_md_key

const char fake_md_key[] = "fake_key"
static

Definition at line 37 of file call_creds.cc.

◆ fake_md_value

const char fake_md_value[] = "fake_value"
static

Definition at line 38 of file call_creds.cc.

◆ iam_selector

const char iam_selector[] = "selector"
static

Definition at line 34 of file call_creds.cc.

◆ iam_token

const char iam_token[] = "token"
static

Definition at line 33 of file call_creds.cc.

◆ overridden_fake_md_key

const char overridden_fake_md_key[] = "overridden_fake_key"
static

Definition at line 39 of file call_creds.cc.

◆ overridden_fake_md_value

const char overridden_fake_md_value[] = "overridden_fake_value"
static

Definition at line 40 of file call_creds.cc.

◆ overridden_iam_selector

const char overridden_iam_selector[] = "overridden_selector"
static

Definition at line 36 of file call_creds.cc.

◆ overridden_iam_token

const char overridden_iam_token[] = "overridden_token"
static

Definition at line 35 of file call_creds.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:05