Search is not available for this dataset
repo
stringlengths
2
152
file
stringlengths
15
239
code
stringlengths
0
58.4M
file_length
int64
0
58.4M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
364 values
null
ceph-main/src/test/rgw/amqp_mock.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "amqp_mock.h" #include <amqp.h> #include <amqp_ssl_socket.h> #include <amqp_tcp_socket.h> #include <string> #include <stdarg.h> #include <mutex> #include <boost/lockfree/queue.hpp> #include <openssl/ssl.h> names...
11,183
27.530612
122
cc
null
ceph-main/src/test/rgw/amqp_mock.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string> namespace amqp_mock { void set_valid_port(int port); void set_valid_host(const std::string& host); void set_valid_vhost(const std::string& vhost); void set_valid_user(const std::string& use...
579
28
74
h
null
ceph-main/src/test/rgw/amqp_url.c
/* * ***** BEGIN LICENSE BLOCK ***** * Version: MIT * * Portions created by Alan Antonuk are Copyright (c) 2012-2013 * Alan Antonuk. All Rights Reserved. * * Portions created by VMware are Copyright (c) 2007-2012 VMware, Inc. * All Rights Reserved. * * Portions created by Tony Garnock-Jones are Copyright (c) ...
5,304
22.896396
78
c
null
ceph-main/src/test/rgw/bench_rgw_ratelimit.cc
#include "rgw_ratelimit.h" #include "rgw_common.h" #include "random" #include <cstdlib> #include <string> #include <boost/asio.hpp> #include <spawn/spawn.hpp> #include <boost/asio/steady_timer.hpp> #include <chrono> #include <mutex> #include <unordered_map> #include <atomic> #include <boost/program_options.hpp> using...
9,875
38.822581
206
cc
null
ceph-main/src/test/rgw/bench_rgw_ratelimit_gc.cc
#include "rgw_ratelimit.h" #include "rgw_common.h" #include "random" #include <cstdlib> #include <string> #include <chrono> #include <boost/program_options.hpp> int main(int argc, char **argv) { int num_qos_classes = 1; try { using namespace boost::program_options; options_description desc{"...
1,655
30.245283
91
cc
null
ceph-main/src/test/rgw/kafka_stub.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <librdkafka/rdkafka.h> const char *rd_kafka_topic_name(const rd_kafka_topic_t *rkt) { return ""; } rd_kafka_resp_err_t rd_kafka_last_error() { return rd_kafka_resp_err_t(); } const char *rd_kafka_err2s...
1,885
26.333333
79
cc
null
ceph-main/src/test/rgw/rgw_cr_test.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <cerrno> #include <iostream> #include <sstream> #include <string> #include <fmt/format.h> #include "include/rados/librados.hpp" #include "rgw_tools.h" #include "common/common_init.h" #include "common/c...
9,298
25.875723
81
cc
null
ceph-main/src/test/rgw/run-d4n-unit-tests.sh
#!/bin/bash ps cax | grep redis-server > /dev/null if [ $? -eq 0 ]; then echo "Redis process found; flushing!" redis-cli FLUSHALL fi redis-server --daemonize yes echo "-----------Redis Server Started-----------" ../../../build/bin/ceph_test_rgw_d4n_directory printf "\n-----------Directory Test Executed-----------\n"...
671
31
58
sh
null
ceph-main/src/test/rgw/test-ceph-diff-sorted.sh
#!/usr/bin/env bash # set -e -x . "`dirname $0`/test-rgw-common.sh" temp_prefix="/tmp/`basename $0`-$$" short=${temp_prefix}-short short_w_blank=${temp_prefix}-short-w-blank long=${temp_prefix}-long unsorted=${temp_prefix}-unsorted empty=${temp_prefix}-empty fake=${temp_prefix}-fake out1=${temp_prefix}-out1 out2=$...
1,963
17.018349
77
sh
null
ceph-main/src/test/rgw/test-rgw-call.sh
#!/usr/bin/env bash . "`dirname $0`/test-rgw-common.sh" . "`dirname $0`/test-rgw-meta-sync.sh" # Do not use eval here. We have eval in test-rgw-common.sh:x(), so adding # one here creates a double-eval situation. Passing arguments with spaces # becomes impossible when double-eval strips escaping and quotes. $@
314
30.5
73
sh
null
ceph-main/src/test/rgw/test-rgw-common.sh
#!/usr/bin/env bash rgw_flags="--debug-rgw=20 --debug-ms=1" function _assert { src=$1; shift lineno=$1; shift [ "$@" ] || echo "$src: $lineno: assert failed: $@" || exit 1 } assert="eval _assert \$BASH_SOURCE \$LINENO" function var_to_python_json_index { echo "['$1']" | sed "s/\./'\]\['/g" } function json_...
4,626
22.607143
149
sh
null
ceph-main/src/test/rgw/test-rgw-meta-sync.sh
#!/usr/bin/env bash . "`dirname $0`/test-rgw-common.sh" set -e function get_metadata_sync_status { cid=$1 realm=$2 meta_sync_status_json=`$(rgw_admin $cid) --rgw-realm=$realm metadata sync status` global_sync_status=$(json_extract sync_status.info.status $meta_sync_status_json) num_shards=$(json_extract ...
1,679
24.454545
89
sh
null
ceph-main/src/test/rgw/test-rgw-multisite.sh
#!/usr/bin/env bash [ $# -lt 1 ] && echo "usage: $0 <num-clusters> [rgw parameters...]" && exit 1 num_clusters=$1 shift [ $num_clusters -lt 1 ] && echo "clusters num must be at least 1" && exit 1 . "`dirname $0`/test-rgw-common.sh" . "`dirname $0`/test-rgw-meta-sync.sh" set -e realm_name=earth zg=zg1 system_acce...
1,605
18.119048
118
sh
null
ceph-main/src/test/rgw/test_cls_fifo_legacy.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License vers...
34,352
27.989873
90
cc
null
ceph-main/src/test/rgw/test_d4n_directory.cc
#include "d4n_directory.h" #include "rgw_process_env.h" #include <cpp_redis/cpp_redis> #include <iostream> #include <string> #include "gtest/gtest.h" using namespace std; string portStr; string hostStr; string redisHost = ""; string oid = "samoid"; string bucketName = "testBucket"; int blkSize = 123; class Directory...
5,176
24.009662
144
cc
null
ceph-main/src/test/rgw/test_d4n_filter.cc
#include "gtest/gtest.h" #include "common/ceph_context.h" #include <iostream> #include <string> #include "rgw_process_env.h" #include <cpp_redis/cpp_redis> #include "driver/dbstore/common/dbstore.h" #include "rgw_sal_store.h" #include "driver/d4n/rgw_sal_d4n.h" #include "rgw_sal.h" #include "rgw_auth.h" #include "rgw_...
61,670
30.178463
148
cc
null
ceph-main/src/test/rgw/test_http_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2015 Red Hat * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
4,109
26.583893
103
cc
null
ceph-main/src/test/rgw/test_log_backing.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License vers...
9,825
25.846995
82
cc
null
ceph-main/src/test/rgw/test_multen.py
# Test of mult-tenancy import json import sys from boto.s3.connection import S3Connection, OrdinaryCallingFormat # XXX once we're done, break out the common code into a library module # See https://github.com/ceph/ceph/pull/8646 import test_multi as t class TestException(Exception): pass # # Create a trad...
12,904
31.182045
77
py
null
ceph-main/src/test/rgw/test_multi.md
# Multi Site Test Framework This framework allows you to write and run tests against a **local** multi-cluster environment. The framework is using the `mstart.sh` script in order to setup the environment according to a configuration file, and then uses the [nose](https://nose.readthedocs.io/en/latest/) test framework t...
3,831
66.22807
391
md
null
ceph-main/src/test/rgw/test_multi.py
import subprocess import os import random import string import argparse import sys import logging try: import configparser except ImportError: import ConfigParser as configparser import nose.core from rgw_multi import multisite from rgw_multi.zone_rados import RadosZone as RadosZone from rgw_multi.zone_es imp...
15,346
36.340633
117
py
null
ceph-main/src/test/rgw/test_rgw_amqp.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "rgw_amqp.h" #include "common/ceph_context.h" #include "amqp_mock.h" #include <gtest/gtest.h> #include <chrono> #include <thread> #include <atomic> using namespace rgw; const std::chrono::milliseconds wait_time...
17,570
32.15283
119
cc
null
ceph-main/src/test/rgw/test_rgw_arn.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "rgw_arn.h" #include <gtest/gtest.h> using namespace rgw; const int BASIC_ENTRIES = 6; const std::string basic_str[BASIC_ENTRIES] = {"arn:aws:s3:us-east-1:12345:resource", "ar...
4,304
38.861111
96
cc
null
ceph-main/src/test/rgw/test_rgw_bencode.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "gtest/gtest.h" #include "rgw_torrent.h" using namespace std; TEST(Bencode, String) { bufferlist bl; bencode("foo", bl); bencode("bar", bl); bencode("baz", bl); string s(bl.c_str(), bl.length()); ...
1,001
15.16129
70
cc
null
ceph-main/src/test/rgw/test_rgw_bucket_sync_cache.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2020 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
5,163
26.178947
70
cc
null
ceph-main/src/test/rgw/test_rgw_common.cc
#include "test_rgw_common.h" void test_rgw_add_placement(RGWZoneGroup *zonegroup, RGWZoneParams *zone_params, const std::string& name, bool is_default) { zonegroup->placement_targets[name] = { name }; RGWZonePlacementInfo& pinfo = zone_params->placement_pools[name]; pinfo.index_pool = rgw_pool(name + ".index")....
2,572
26.967391
156
cc
null
ceph-main/src/test/rgw/test_rgw_common.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Gener...
13,858
26.335306
157
h
null
ceph-main/src/test/rgw/test_rgw_compression.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "gtest/gtest.h" #include "rgw_compression.h" class ut_get_sink : public RGWGetObj_Filter { bufferlist sink; public: ut_get_sink() {} virtual ~ut_get_sink() {} int handle_data(bufferlist& bl, off_t bl_of...
5,192
26.770053
84
cc
null
ceph-main/src/test/rgw/test_rgw_crypto.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2016 Mirantis <akupczyk@mirantis.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Pub...
26,493
31.036276
128
cc
null
ceph-main/src/test/rgw/test_rgw_dmclock_scheduler.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2018 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License vers...
15,482
35.090909
98
cc
null
ceph-main/src/test/rgw/test_rgw_gc_log.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "rgw_gc_log.h" #include "test/librados/test_cxx.h" #include "gtest/gtest.h" // creates a rados client and temporary pool struct RadosEnv : public ::testing::Environment { static std::optional<std::string> poo...
3,599
23.827586
75
cc
null
ceph-main/src/test/rgw/test_rgw_iam_policy.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2015 Red Hat * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
48,012
35.318457
211
cc
null
ceph-main/src/test/rgw/test_rgw_kms.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <gtest/gtest.h> #include <gmock/gmock.h> #include "common/ceph_context.h" #include "rgw_common.h" #define FORTEST_VIRTUAL virtual #include "rgw_kms.cc" using ::testing::_; using ::testing::Action; using ::testin...
10,248
33.742373
221
cc
null
ceph-main/src/test/rgw/test_rgw_lc.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "rgw_xml.h" #include "rgw_lc.h" #include "rgw_lc_s3.h" #include <gtest/gtest.h> //#include <spawn/spawn.hpp> #include <string> #include <vector> #include <stdexcept> static const char* xmldoc_1 = R"(<Filter> ...
2,795
24.418182
78
cc
null
ceph-main/src/test/rgw/test_rgw_lua.cc
#include <gtest/gtest.h> #include "common/ceph_context.h" #include "rgw_common.h" #include "rgw_auth_registry.h" #include "rgw_process_env.h" #include "rgw_sal_rados.h" #include "rgw_lua_request.h" #include "rgw_lua_background.h" #include "rgw_lua_data_filter.h" using namespace std; using namespace rgw; using boost::c...
41,017
26.200265
455
cc
null
ceph-main/src/test/rgw/test_rgw_manifest.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Gener...
11,568
28.067839
154
cc
null
ceph-main/src/test/rgw/test_rgw_obj.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Gener...
6,569
23.065934
103
cc
null
ceph-main/src/test/rgw/test_rgw_period_history.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2015 Red Hat * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
10,006
28.694362
110
cc
null
ceph-main/src/test/rgw/test_rgw_putobj.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2018 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License vers...
5,311
25.964467
79
cc
null
ceph-main/src/test/rgw/test_rgw_ratelimit.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <gtest/gtest.h> #include "rgw_ratelimit.h" using namespace std::chrono_literals; TEST(RGWRateLimit, op_limit_not_enabled) { // info.enabled = false, so no limit std::atomic_bool replacing; std::co...
13,171
33.938992
86
cc
null
ceph-main/src/test/rgw/test_rgw_reshard.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
2,939
41.608696
78
cc
null
ceph-main/src/test/rgw/test_rgw_reshard_wait.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2018 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License vers...
4,586
26.8
80
cc
null
ceph-main/src/test/rgw/test_rgw_string.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
2,251
28.246753
76
cc
null
ceph-main/src/test/rgw/test_rgw_throttle.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2018 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License vers...
5,124
26.116402
76
cc
null
ceph-main/src/test/rgw/test_rgw_url.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "rgw_url.h" #include <string> #include <gtest/gtest.h> using namespace rgw; TEST(TestURL, SimpleAuthority) { std::string host; std::string user; std::string password; const std::string url = "ht...
3,125
26.910714
77
cc
null
ceph-main/src/test/rgw/test_rgw_xml.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "rgw_xml.h" #include <gtest/gtest.h> #include <list> #include <stdexcept> struct NameAndStatus { // these are sub-tags std::string name; bool status; // intrusive XML decoding API bool decode_xml(XM...
17,124
35.907328
156
cc
null
ceph-main/src/test/rgw/bucket_notification/__init__.py
import configparser import os def setup(): cfg = configparser.RawConfigParser() try: path = os.environ['BNTESTS_CONF'] except KeyError: raise RuntimeError( 'To run tests, point environment ' + 'variable BNTESTS_CONF to a config file.', ) cfg.read(path...
1,181
23.122449
80
py
null
ceph-main/src/test/rgw/bucket_notification/api.py
import logging import ssl import urllib import hmac import hashlib import base64 import xmltodict from http import client as http_client from urllib import parse as urlparse from time import gmtime, strftime import boto3 from botocore.client import Config import os import subprocess log = logging.getLogger('bucket_not...
10,435
43.408511
116
py
null
ceph-main/src/test/rgw/bucket_notification/kafka-security.sh
FQDN=localhost KEYFILE=server.keystore.jks TRUSTFILE=server.truststore.jks CAFILE=y-ca.crt CAKEYFILE=y-ca.key REQFILE=$FQDN.req CERTFILE=$FQDN.crt MYPW=mypassword VALIDITY=36500 rm -f $KEYFILE rm -f $TRUSTFILE rm -f $CAFILE rm -f $REQFILE rm -f $CERTFILE echo "########## create the request in key store '$KEYFILE'" ke...
1,607
31.16
82
sh
null
ceph-main/src/test/rgw/bucket_notification/setup.py
#!/usr/bin/python from setuptools import setup, find_packages setup( name='bn_tests', version='0.0.1', packages=find_packages(), author='Kalpesh Pandya', author_email='kapandya@redhat.com', description='Bucket Notification compatibility tests', license='MIT', keywords='bn web testing',...
410
19.55
58
py
null
ceph-main/src/test/rgw/bucket_notification/test_bn.py
import logging import json import tempfile import random import threading import subprocess import socket import time import os import string import boto from botocore.exceptions import ClientError from http import server as http_server from random import randint import hashlib from nose.plugins.attrib import attr impo...
160,414
36.869452
170
py
null
ceph-main/src/test/rgw/rgw_multi/__init__.py
0
0
0
py
null
ceph-main/src/test/rgw/rgw_multi/conn.py
import boto import boto.s3.connection import boto.iam.connection def get_gateway_connection(gateway, credentials): """ connect to the given gateway """ if gateway.connection is None: gateway.connection = boto.connect_s3( aws_access_key_id = credentials.access_key, aws_se...
1,641
38.095238
76
py
null
ceph-main/src/test/rgw/rgw_multi/multisite.py
from abc import ABCMeta, abstractmethod from io import StringIO import json from .conn import get_gateway_connection, get_gateway_iam_connection, get_gateway_secure_connection class Cluster: """ interface to run commands against a distinct ceph cluster """ __metaclass__ = ABCMeta @abstractmethod def...
14,263
33.960784
113
py
null
ceph-main/src/test/rgw/rgw_multi/tests.py
import json import random import string import sys import time import logging import errno import dateutil.parser from itertools import combinations from itertools import zip_longest from io import StringIO import boto import boto.s3.connection from boto.s3.website import WebsiteConfiguration from boto.s3.cors import...
102,721
34.891684
189
py
null
ceph-main/src/test/rgw/rgw_multi/tests_az.py
import logging from nose import SkipTest from nose.tools import assert_not_equal, assert_equal from boto.s3.deletemarker import DeleteMarker from .tests import get_realm, \ ZonegroupConns, \ zonegroup_meta_checkpoint, \ zone_meta_checkpoint, \ zone_bucket_checkpoint, \ zone_data_checkpoint, \ ...
21,098
34.282609
89
py
null
ceph-main/src/test/rgw/rgw_multi/tests_es.py
import json import logging import boto import boto.s3.connection import datetime import dateutil from itertools import zip_longest # type: ignore from nose.tools import eq_ as eq from .multisite import * from .tests import * from .zone_es import * log = logging.getLogger(__name__) def check_es_configured(): ...
12,618
44.555957
164
py
null
ceph-main/src/test/rgw/rgw_multi/tools.py
import json import boto def append_attr_value(d, attr, attrv): if attrv and len(str(attrv)) > 0: d[attr] = attrv def append_attr(d, k, attr): try: attrv = getattr(k, attr) except: return append_attr_value(d, attr, attrv) def get_attrs(k, attrs): d = {} for a in attrs: ...
2,842
28.010204
88
py
null
ceph-main/src/test/rgw/rgw_multi/zone_az.py
import logging from .multisite import Zone log = logging.getLogger('rgw_multi.tests') class AZone(Zone): # pylint: disable=too-many-ancestors """ archive zone class """ def __init__(self, name, zonegroup=None, cluster=None, data=None, zone_id=None, gateways=None): super(AZone, self).__init__(name,...
1,115
24.953488
99
py
null
ceph-main/src/test/rgw/rgw_multi/zone_cloud.py
import json import requests.compat import logging import boto import boto.s3.connection import dateutil.parser import datetime import re from nose.tools import eq_ as eq from itertools import zip_longest # type: ignore from urllib.parse import urlparse from .multisite import * from .tools import * log = logging.g...
10,952
32.495413
122
py
null
ceph-main/src/test/rgw/rgw_multi/zone_es.py
import json import requests.compat import logging import boto import boto.s3.connection import dateutil.parser from nose.tools import eq_ as eq from itertools import zip_longest # type: ignore from .multisite import * from .tools import * log = logging.getLogger(__name__) def get_key_ver(k): if not k.version...
8,133
30.649805
147
py
null
ceph-main/src/test/rgw/rgw_multi/zone_rados.py
import logging from boto.s3.deletemarker import DeleteMarker from itertools import zip_longest # type: ignore from nose.tools import eq_ as eq from .multisite import * log = logging.getLogger(__name__) def check_object_eq(k1, k2, check_extra = True): assert k1 assert k2 log.debug('comparing key name=%...
5,719
41.37037
180
py
null
ceph-main/src/test/system/cross_process_sem.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
2,803
21.796748
84
cc
null
ceph-main/src/test/system/cross_process_sem.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
971
22.707317
70
h
null
ceph-main/src/test/system/rados_delete_pools_parallel.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
3,226
27.557522
78
cc
null
ceph-main/src/test/system/rados_list_parallel.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
9,720
26.853868
78
cc
null
ceph-main/src/test/system/rados_open_pools_parallel.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versio...
4,223
28.333333
84
cc
null
ceph-main/src/test/system/rados_watch_notify.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
6,442
31.872449
79
cc
null
ceph-main/src/test/system/rerun.sh
#!/usr/bin/env bash [ -z $ITERATIONS ] && ITERATIONS=10 TMPDIR=`mktemp -d -t rerun_logs.XXXXXXXXXX` || exit 1 rm -rf $TMPDIR/logs mkdir $TMPDIR/logs for i in `seq 1 $ITERATIONS`; do echo "********************* iteration $i *********************" LOG_FILE_BASE=$TMPDIR/logs $EXE "$@" if [ $? -ne 0 ]; then...
462
21.047619
67
sh
null
ceph-main/src/test/system/st_rados_create_pool.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
3,445
24.909774
76
cc
null
ceph-main/src/test/system/st_rados_create_pool.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
1,376
24.5
70
h
null
ceph-main/src/test/system/st_rados_delete_objs.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
1,910
25.541667
75
cc
null
ceph-main/src/test/system/st_rados_delete_objs.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
1,161
22.714286
70
h
null
ceph-main/src/test/system/st_rados_delete_pool.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
1,696
27.283333
75
cc
null
ceph-main/src/test/system/st_rados_delete_pool.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
1,066
23.25
70
h
null
ceph-main/src/test/system/st_rados_list_objects.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
2,727
24.259259
77
cc
null
ceph-main/src/test/system/st_rados_list_objects.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
1,356
24.12963
70
h
null
ceph-main/src/test/system/st_rados_notify.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
1,266
22.90566
70
h
null
ceph-main/src/test/system/st_rados_watch.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
1,372
23.087719
70
h
null
ceph-main/src/test/system/systest_runnable.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ...
5,575
22.82906
80
cc
null
ceph-main/src/test/system/systest_runnable.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ...
2,326
23.494737
80
h
null
ceph-main/src/test/system/systest_settings.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ...
1,578
20.930556
73
cc
null
ceph-main/src/test/system/systest_settings.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ...
872
22.594595
70
h
null
ceph-main/src/test/ubuntu-18.04/install-deps.sh
../../../install-deps.sh
24
24
24
sh
null
ceph-main/src/tools/RadosDump.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2015 Red Hat * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
3,225
17.976471
70
cc
null
ceph-main/src/tools/RadosDump.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2015 Red Hat * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
10,275
24.063415
83
h
null
ceph-main/src/tools/ceph-client-debug.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
4,709
23.53125
93
cc
null
ceph-main/src/tools/ceph-diff-sorted.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * diffsorted -- a utility to compute a line-by-line diff on two * sorted input files * * Copyright © 2019 Red Hat * * Author: J. Eric Ivancich * * This is free software; you can redistribute it and/or * modify...
3,697
20.252874
76
cc
null
ceph-main/src/tools/ceph-monstore-update-crush.sh
#!/usr/bin/env bash # # Copyright (C) 2015 Red Hat <contact@redhat.com> # # Author: Kefu Chai <kchai@redhat.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Library Public License as published by # the Free Software Foundation; either version 2, or (at your o...
4,950
27.291429
100
sh
null
ceph-main/src/tools/ceph_authtool.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2009 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
9,844
29.862069
93
cc
null
ceph-main/src/tools/ceph_conf.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2010 Dreamhost * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ver...
8,788
30.501792
105
cc
null
ceph-main/src/tools/ceph_dedup_tool.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Author: Myoungwon Oh <ohmyoungwon@gmail.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * ...
51,935
28.177528
150
cc
null
ceph-main/src/tools/ceph_kvstore_tool.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2012 Inktank, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1...
9,644
25.570248
95
cc
null
ceph-main/src/tools/ceph_monstore_tool.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2012 Inktank, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1...
42,154
30.935606
87
cc
null
ceph-main/src/tools/ceph_objectstore_tool.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 Inktank * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
132,437
27.941871
208
cc
null
ceph-main/src/tools/ceph_objectstore_tool.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 Inktank * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
1,481
31.933333
77
h
null
ceph-main/src/tools/ceph_osdomap_tool.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2012 Inktank, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License kkjversion ...
6,624
30.103286
151
cc
null
ceph-main/src/tools/crushtool.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * *...
44,467
32.06171
108
cc
null
ceph-main/src/tools/histogram_dump.py
#!/usr/bin/env python3 # coding: utf-8 # # Ceph - scalable distributed file system # # Copyright (C) 2017 OVH # Copyright (C) 2020 Marc Schöchlin <ms-github@256bit.org> # # This is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public # License version 2, as published by th...
5,002
27.588571
98
py
null
ceph-main/src/tools/kvstore_tool.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "kvstore_tool.h" #include <iostream> #include "common/errno.h" #include "common/url_escape.h" #include "common/pretty_binary.h" #include "include/buffer.h" #include "kv/KeyValueDB.h" #include "kv/KeyValueHistog...
9,897
24.979003
83
cc