Functions
grpc_authz.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/channel/channel_args.h"
#include "src/core/lib/security/authorization/grpc_authorization_policy_provider.h"
#include "src/core/lib/security/credentials/credentials.h"
#include "test/core/end2end/cq_verifier.h"
#include "test/core/end2end/end2end_tests.h"
#include "test/core/util/tls_utils.h"
Include dependency graph for grpc_authz.cc:

Go to the source code of this file.

Functions

static grpc_end2end_test_fixture begin_test (grpc_end2end_test_config config, const char *test_name, grpc_channel_args *client_args, grpc_channel_args *server_args)
 
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)
 
void grpc_authz (grpc_end2end_test_config config)
 
void grpc_authz_pre_init (void)
 
static gpr_timespec n_seconds_from_now (int n)
 
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_allow_authorized_request (grpc_end2end_test_fixture f)
 
static void test_deny_unauthorized_request (grpc_end2end_test_fixture f)
 
static void test_file_watcher_init_allow_authorized_request (grpc_end2end_test_config config)
 
static void test_file_watcher_init_deny_request_no_match_in_policy (grpc_end2end_test_config config)
 
static void test_file_watcher_init_deny_unauthorized_request (grpc_end2end_test_config config)
 
static void test_file_watcher_invalid_policy_skip_reload (grpc_end2end_test_config config)
 
static void test_file_watcher_recovers_from_failure (grpc_end2end_test_config config)
 
static void test_file_watcher_valid_policy_reload (grpc_end2end_test_config config)
 
static void test_static_init_allow_authorized_request (grpc_end2end_test_config config)
 
static void test_static_init_deny_request_no_match_in_policy (grpc_end2end_test_config config)
 
static void test_static_init_deny_unauthorized_request (grpc_end2end_test_config config)
 

Function Documentation

◆ begin_test()

static grpc_end2end_test_fixture begin_test ( grpc_end2end_test_config  config,
const char *  test_name,
grpc_channel_args client_args,
grpc_channel_args server_args 
)
static

Definition at line 34 of file grpc_authz.cc.

◆ drain_cq()

static void drain_cq ( grpc_completion_queue cq)
static

Definition at line 54 of file grpc_authz.cc.

◆ end_test()

static void end_test ( grpc_end2end_test_fixture f)
static

Definition at line 78 of file grpc_authz.cc.

◆ five_seconds_from_now()

static gpr_timespec five_seconds_from_now ( void  )
static

Definition at line 50 of file grpc_authz.cc.

◆ grpc_authz()

void grpc_authz ( grpc_end2end_test_config  config)

Definition at line 765 of file grpc_authz.cc.

◆ grpc_authz_pre_init()

void grpc_authz_pre_init ( void  )

Definition at line 777 of file grpc_authz.cc.

◆ n_seconds_from_now()

static gpr_timespec n_seconds_from_now ( int  n)
static

Definition at line 46 of file grpc_authz.cc.

◆ shutdown_client()

static void shutdown_client ( grpc_end2end_test_fixture f)
static

Definition at line 72 of file grpc_authz.cc.

◆ shutdown_server()

static void shutdown_server ( grpc_end2end_test_fixture f)
static

Definition at line 61 of file grpc_authz.cc.

◆ tag()

static void* tag ( intptr_t  t)
static

Definition at line 32 of file grpc_authz.cc.

◆ test_allow_authorized_request()

static void test_allow_authorized_request ( grpc_end2end_test_fixture  f)
static

Definition at line 87 of file grpc_authz.cc.

◆ test_deny_unauthorized_request()

static void test_deny_unauthorized_request ( grpc_end2end_test_fixture  f)
static

Definition at line 192 of file grpc_authz.cc.

◆ test_file_watcher_init_allow_authorized_request()

static void test_file_watcher_init_allow_authorized_request ( grpc_end2end_test_config  config)
static

Definition at line 384 of file grpc_authz.cc.

◆ test_file_watcher_init_deny_request_no_match_in_policy()

static void test_file_watcher_init_deny_request_no_match_in_policy ( grpc_end2end_test_config  config)
static

Definition at line 476 of file grpc_authz.cc.

◆ test_file_watcher_init_deny_unauthorized_request()

static void test_file_watcher_init_deny_unauthorized_request ( grpc_end2end_test_config  config)
static

Definition at line 425 of file grpc_authz.cc.

◆ test_file_watcher_invalid_policy_skip_reload()

static void test_file_watcher_invalid_policy_skip_reload ( grpc_end2end_test_config  config)
static

Definition at line 600 of file grpc_authz.cc.

◆ test_file_watcher_recovers_from_failure()

static void test_file_watcher_recovers_from_failure ( grpc_end2end_test_config  config)
static

Definition at line 662 of file grpc_authz.cc.

◆ test_file_watcher_valid_policy_reload()

static void test_file_watcher_valid_policy_reload ( grpc_end2end_test_config  config)
static

Definition at line 517 of file grpc_authz.cc.

◆ test_static_init_allow_authorized_request()

static void test_static_init_allow_authorized_request ( grpc_end2end_test_config  config)
static

Definition at line 257 of file grpc_authz.cc.

◆ test_static_init_deny_request_no_match_in_policy()

static void test_static_init_deny_request_no_match_in_policy ( grpc_end2end_test_config  config)
static

Definition at line 345 of file grpc_authz.cc.

◆ test_static_init_deny_unauthorized_request()

static void test_static_init_deny_unauthorized_request ( grpc_end2end_test_config  config)
static

Definition at line 296 of file grpc_authz.cc.



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