• Stars
    star
    261
  • Rank 150,772 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 12 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Compatibility tests for S3 clones

S3 compatibility tests

This is a set of unofficial Amazon AWS S3 compatibility tests, that can be useful to people implementing software that exposes an S3-like API. The tests use the Boto2 and Boto3 libraries.

The tests use the Tox tool. To get started, ensure you have the tox software installed; e.g. on Debian/Ubuntu:

sudo apt-get install tox

You will need to create a configuration file with the location of the service and two different credentials. A sample configuration file named s3tests.conf.SAMPLE has been provided in this repo. This file can be used to run the s3 tests on a Ceph cluster started with vstart.

Once you have that file copied and edited, you can run the tests with:

S3TEST_CONF=your.conf tox

You can specify which directory of tests to run:

S3TEST_CONF=your.conf tox s3tests_boto3/functional

You can specify which file of tests to run:

S3TEST_CONF=your.conf tox s3tests_boto3/functional/test_s3.py

You can specify which test to run:

S3TEST_CONF=your.conf tox s3tests_boto3/functional/test_s3.py::test_bucket_list_empty

Some tests have attributes set based on their current reliability and things like AWS not enforcing their spec stricly. You can filter tests based on their attributes:

S3TEST_CONF=aws.conf tox -- -m 'not fails_on_aws'

Most of the tests have both Boto3 and Boto2 versions. Tests written in Boto2 are in the s3tests directory. Tests written in Boto3 are located in the s3test_boto3 directory.

You can run only the boto3 tests with:

S3TEST_CONF=your.conf tox -- -m 'not fails_on_rgw' s3tests_boto3/functional

STS compatibility tests

This section contains some basic tests for the AssumeRole, GetSessionToken and AssumeRoleWithWebIdentity API's. The test file is located under s3tests_boto3/functional.

To run the STS tests, the vstart cluster should be started with the following parameter (in addition to any parameters already used with it):

vstart.sh -o rgw_sts_key=abcdefghijklmnop -o rgw_s3_auth_use_sts=true

Note that the rgw_sts_key can be set to anything that is 128 bits in length. After the cluster is up the following command should be executed:

radosgw-admin caps add --tenant=testx --uid="9876543210abcdef0123456789abcdef0123456789abcdef0123456789abcdef" --caps="roles=*"

You can run only the sts tests (all the three API's) with:

S3TEST_CONF=your.conf tox s3tests_boto3/functional/test_sts.py

You can filter tests based on the attributes. There is a attribute named test_of_sts to run AssumeRole and GetSessionToken tests and webidentity_test to run the AssumeRoleWithWebIdentity tests. If you want to execute only test_of_sts tests you can apply that filter as below:

S3TEST_CONF=your.conf tox -- -m test_of_sts s3tests_boto3/functional/test_sts.py

For running webidentity_test you'll need have Keycloak running.

In order to run any STS test you'll need to add "iam" section to the config file. For further reference on how your config file should look check s3tests.conf.SAMPLE.

IAM policy tests

This is a set of IAM policy tests. This section covers tests for user policies such as Put, Get, List, Delete, user policies with s3 actions, conflicting user policies etc These tests uses Boto3 libraries. Tests are written in the s3test_boto3 directory.

These iam policy tests uses two users with profile name "iam" and "s3 alt" as mentioned in s3tests.conf.SAMPLE. If Ceph cluster is started with vstart, then above two users will get created as part of vstart with same access key, secrete key etc as mentioned in s3tests.conf.SAMPLE. Out of those two users, "iam" user is with capabilities --caps=user-policy=* and "s3 alt" user is without capabilities. Adding above capabilities to "iam" user is also taken care by vstart (If Ceph cluster is started with vstart).

To run these tests, create configuration file with section "iam" and "s3 alt" refer s3tests.conf.SAMPLE. Once you have that configuration file copied and edited, you can run all the tests with:

S3TEST_CONF=your.conf tox s3tests_boto3/functional/test_iam.py

You can also specify specific test to run:

S3TEST_CONF=your.conf tox s3tests_boto3/functional/test_iam.py::test_put_user_policy

Some tests have attributes set such as "fails_on_rgw". You can filter tests based on their attributes:

S3TEST_CONF=your.conf tox -- s3tests_boto3/functional/test_iam.py -m 'not fails_on_rgw'

More Repositories

1

ceph

Ceph is a distributed object, block, and file storage platform
C++
13,026
star
2

ceph-ansible

Ansible playbooks to deploy Ceph, the distributed filesystem.
Python
1,631
star
3

ceph-container

Docker files and images to run Ceph in containers
Shell
1,297
star
4

ceph-csi

CSI driver for Ceph
Go
1,123
star
5

go-ceph

Go bindings for Ceph 🐙 🐙 🐙
Go
585
star
6

ceph-deploy

Deploy Ceph with minimal infrastructure, using just SSH access
Python
417
star
7

calamari

Web-based monitoring and management for Ceph
Python
349
star
8

cbt

The Ceph Benchmarking Tool
Python
250
star
9

cn

Ceph Nano - One step S3 in container with Ceph.
Go
231
star
10

ceph-client

Ceph kernel client (kernel modules)
C
187
star
11

teuthology

Ceph test suite
Python
153
star
12

calamari-clients

Ceph Manager API Client Code
JavaScript
103
star
13

ceph-cookbook

Chef cookbooks for Ceph
Ruby
101
star
14

dmclock

Code that implements the dmclock distributed quality of service algorithm. See "mClock: Handling Throughput Variability for Hypervisor IO Scheduling" by Gulati, Merchant, and Varman.
C++
88
star
15

cephadm-ansible

ansible playbooks to be used with cephadm
Python
86
star
16

ceph-nagios-plugins

Nagios plugins for Ceph
Python
81
star
17

ceph-nvmeof

Service to provide Ceph storage over NVMe-oF protocol
Python
66
star
18

cephmetrics

ceph metric collectors with collectd integration
Python
64
star
19

gf-complete

this repository is a read only mirror, the upstream is
C
60
star
20

ceph-iscsi

Ceph iSCSI tools
Python
58
star
21

cephfs-hadoop

cephfs-hadoop
Java
57
star
22

romana

JavaScript
51
star
23

ceph-build

Helper scripts for building the official Ceph packages
Shell
41
star
24

qemu-kvm

Ceph RBD support for Qemu/KVM
C
40
star
25

phprados

PHP bindings for the RADOS client library
C
37
star
26

jerasure

this repository is a read only mirror, the upstream is
C
33
star
27

ceph-tools

Misc ceph tools
Python
33
star
28

libs3

Fork of http://git.ischo.com/libs3.git
C
32
star
29

ceph-qa-suite

[DEPRECATED; see ceph.git/qa] Suite of Ceph QA tests to run with Teuthology
Python
32
star
30

ceph-cosi

COSI driver for Ceph Object Store aka RGW
Go
29
star
31

ceph-chef

Chef cookbooks for managing a Ceph cluster
Ruby
29
star
32

ceph-salt

Deploy Ceph clusters using cephadm
Python
29
star
33

downburst

Fast Ubuntu Cloud Image creation on libvirt
Python
27
star
34

ceph-iscsi-cli

NOTICE: moved to https://github.com/ceph/ceph-iscsi
Python
25
star
35

ceph-medic

find common issues in ceph clusters
Python
22
star
36

pulpito

A dashboard for Ceph tests
JavaScript
22
star
37

ceph-iscsi-config

NOTICE: moved to https://github.com/ceph/ceph-iscsi
Python
22
star
38

radosgw-agent

radosgw sync agent
Python
22
star
39

python-crush

C++
20
star
40

ceph-cm-ansible

Ansible configurations for Ceph.com infrastructure
Shell
20
star
41

ceph-mixins

A set of Grafana dashboards and Prometheus alerts for Ceph.
Jsonnet
19
star
42

puppet-ceph

Mirror of stackforge/puppet-ceph
Ruby
18
star
43

ceph-ci

ceph.git clone as source for CI
C++
18
star
44

dpdk

DPDK
C
18
star
45

libcrush

C
15
star
46

ceph-installer

A service to provision Ceph clusters
Python
15
star
47

paddles

RESTful API to store (and report) on Ceph tests
Python
14
star
48

propernoun

Update PowerDNS from DHCP leases and libvirt virtual machines
Python
13
star
49

ceph.io

This repo contains static site content for www.ceph.io
HTML
13
star
50

persistent-volume-migrator

A collection of tools to migrate an ancient Kubernetes Ceph storage driver (in-tree, Flex) to Ceph-CSI
Go
13
star
51

rgw-pubsub-api

RGW PubSub API Clients
Go
13
star
52

obsync

rsync-like utility for syncing bucket data between object storage APIs like S3, Swift
Python
12
star
53

ceph-iscsi-tools

Useful tools for a ceph/iscsi gateway environment
Python
11
star
54

autobuild-ceph

Setup for running gitbuilder for the Ceph project
Shell
11
star
55

simplegpt

Simple Python library to parse GPT (GUID Partition Table) header and entries, useful as a learning tool
Python
11
star
56

ceph-openstack-tools

Tools to develop Ceph/OpenStack integration
Shell
11
star
57

ceph-ruby

Easy management of Ceph Distributed Storage System (rbd, images, rados objects) using ruby.
Ruby
11
star
58

python-jenkins

fork of python-jenkins for https://review.openstack.org/460363
Python
11
star
59

mod_fastcgi

Bugfixes and improves to mod_fastcgi, for use with RADOS Gateway
C
10
star
60

samba

Clone of the main samba repo: git://git.samba.org/samba.git
C
10
star
61

chacra

A binary/file REST API to aid in multi-distro|arch|release management
Python
9
star
62

ceph-client-standalone

Standalone Ceph kernel client -- you probably want https://github.com/NewDreamNetwork/ceph-client instead
C
9
star
63

barclamp-ceph

Crowbar Barclamp for installing Ceph clusters
Ruby
8
star
64

blkin

C++
8
star
65

shaman

source of truth for the state of repositories on Chacra nodes
Python
8
star
66

csi-charts

csi-charts
8
star
67

ceph-erasure-code-corpus

Objects erasure encoded by Ceph
Shell
8
star
68

apache2

A version of Apache HTTP Server with fixes for use with RADOS Gateway
C
7
star
69

ceph-qa-chef

Chef cookbooks used in Ceph QA jobs. (This is deprecated; please see ceph-cm-ansible instead.)
Ruby
7
star
70

ceph-kmod-rpm

kabi-tracking kmod RPMs for libceph, CephFS, and RDB for RHEL 7
7
star
71

mod-proxy-fcgi

mod_proxy_fcgi for apache 2.2
C
6
star
72

ceph-devstack

DevStack files
Shell
6
star
73

spawn

C++
6
star
74

leveldb

Fork of the LevelDB project
C++
5
star
75

gmock

C++
5
star
76

cn-core

Bootstrap Ceph AIO - source of cn project
Go
5
star
77

keys

SSH and other keys used by the project, mostly in the Sepia lab
Shell
5
star
78

qemu-iotests

Shell
5
star
79

ceph-autotests

HISTORICAL value only: Autotest helper for Ceph QA (obsolete)
Python
4
star
80

mita

Jenkins Slave orchestration service
Python
4
star
81

collectd-4.10.1

A version of collectd that supports monitoring Ceph clusters (on top of the Debian 4.10.1-1+squeeze2 package)
C
4
star
82

asphyxiate

Grab source code documentation via Doxygen into a Sphinx document
Python
4
star
83

ceph-nagios-plugin

A Nagios plugin that checks the health of a ceph cluster.
Perl
4
star
84

cookbook-vercoi

Chef Solo recipes used to bring up KVM hypervisors in the Sepia lab
Ruby
4
star
85

prado

Prado is a webservice that provides a single script to run Ansible playbooks
Python
4
star
86

handle_core

A userspace core file handler for Linux
C
4
star
87

ceph-telemetry

Python
4
star
88

rook-client-python

Python bindings for Rook-Ceph CRDs
Python
3
star
89

ceph-kdump-copy

ceph kdump handler
Shell
3
star
90

jenkins-slave-chef

Chef to setup jenkins slaves (pbuilder/regular).
Ruby
3
star
91

merfi

Finds and signs files with different signing tools (gpg, rpm-sign)
Python
3
star
92

run-crowbar-on-sepia

Quick & dirty script to run Crowbar on Sepia
Python
3
star
93

ceph-notes

3
star
94

ceph-object-corpus

corpus of encoded ceph structures
Shell
3
star
95

libkmip

C
3
star
96

cookbook-vm-general

Python
2
star
97

munging_http_proxy

Munging HTTP proxy, for developing and debugging
Python
2
star
98

javaws-kludge

Kludges to make working with Dell iDRAC remote consoles nicer
Python
2
star
99

sepia

Notes on the test lab for the Ceph project
Shell
2
star
100

bubbles

Bubbles is an experiment on a simplified management UI for Ceph.
TypeScript
2
star