Skip to content

Commit

Permalink
Merge branch 'w/2.7/bugfix/ZENKO-4723' into w/2.8/bugfix/ZENKO-4723
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisferrand committed Jan 11, 2024
2 parents c6e07bd + 18fa6f9 commit 3c3ccdf
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .github/actions/deploy/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ runs:
key: ${{ runner.os }}-helm-${{ hashFiles('.github/scripts/end2end/install-kind-dependencies.sh') }}
restore-keys: |
${{ runner.os }}-helm-
- name: Generate MongoDB database name
shell: bash
run: echo "ZENKO_MONGODB_DATABASE=$(cat /proc/sys/kernel/random/uuid)" >> "$GITHUB_ENV"
- name: Install kind cluster dependencies
shell: bash
run: bash install-kind-dependencies.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/end2end/configs/zenko.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
userSecretName: mongodb-db-creds
usernameKey: mongodb-username
passwordKey: mongodb-password
databaseName: datadb
databaseName: ${ZENKO_MONGODB_DATABASE}
${ZENKO_MONGODB_CONFIG}
redis:
provider: Zenko
Expand Down
1 change: 1 addition & 0 deletions .github/scripts/end2end/deploy-zenko.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ if [ "${ZENKO_MONGODB_SHARDED}" = 'true' ]; then
else
export ZENKO_MONGODB_ENDPOINT="dev-db-mongodb-primary-0.dev-db-mongodb-headless.default.svc.cluster.local:27017"
fi
export ZENKO_MONGODB_DATABASE="${ZENKO_MONGODB_DATABASE:-'datadb'}"

if [ "${TIME_PROGRESSION_FACTOR}" -gt 1 ]; then
export ZENKO_ANNOTATIONS="${ZENKO_ANNOTATIONS:-annotations:}
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/end2end/install-kind-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ MONGODB_ROOT_USERNAME=root
MONGODB_ROOT_PASSWORD=rootpass
MONGODB_APP_USERNAME=data
MONGODB_APP_PASSWORD=datapass
MONGODB_APP_DATABASE=datadb
MONGODB_APP_DATABASE="${ZENKO_MONGODB_DATABASE:-'datadb'}"
MONGODB_RS_KEY=0123456789abcdef
# force a 4.0 image as that's what artesca uses
DEPS_FILE="$DIR/../../../solution-base/deps.yaml"
Expand Down
4 changes: 2 additions & 2 deletions solution/deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ backbeat:
dashboard: backbeat-dashboards
image: backbeat
policy: backbeat-policies
tag: 8.6.33
tag: 8.6.34
envsubst: BACKBEAT_TAG
busybox:
image: busybox
Expand Down Expand Up @@ -93,7 +93,7 @@ vault:
zenko-operator:
sourceRegistry: registry.scality.com/zenko-operator
image: zenko-operator
tag: 1.5.39
tag: 1.5.40
envsubst: ZENKO_OPERATOR_TAG
zenko-ui:
sourceRegistry: registry.scality.com/zenko-ui
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let OBJ_KEY;

describe('Ingesting existing data from RING S3C bucket', () => {
beforeEach(() => {
INGESTION_DEST_BUCKET = `ingestion-dest-bucket-${uuid()}`;
INGESTION_DEST_BUCKET = `ingestion-${uuid()}`;
KEY_PREFIX = `${ingestionSrcBucket}-${uuid()}`;
OBJ_KEY = `${KEY_PREFIX}/object-to-ingest-${uuid()}`;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Ingestion pause resume', function () {
this.timeout(INGESTION_TIMEOUT);

beforeEach(done => {
INGESTION_DEST_BUCKET = `ingestion-dest-bucket-${uuid()}`;
INGESTION_DEST_BUCKET = `ingestion-${uuid()}`;
KEY_PREFIX = `${ingestionSrcBucket}-${uuid()}`;
OBJ_KEY1 = `${KEY_PREFIX}/object-to-ingest-${uuid()}`;
OBJ_KEY2 = `${KEY_PREFIX}/object-to-ingest-${uuid()}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let OBJ_KEY;

describe('OOB updates for RING S3C bucket', () => {
beforeEach(done => {
INGESTION_DEST_BUCKET = `ingestion-dest-bucket-${uuid()}`;
INGESTION_DEST_BUCKET = `ingestion-${uuid()}`;
OBJ_KEY = `${KEY_PREFIX}/object-to-ingest-${uuid()}`;
return scalityUtils.createIngestionBucket(INGESTION_DEST_BUCKET, location, done);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe('Lifecycle Expiration', function () {
this.timeout(360000);

describe('behavior: should not delete objects', () => {
const bucketName = getBucketName('exp-disabled-');
const bucketName = getBucketName('exp-dis-');
const objectKey = getObjectKey('exp-disabled-');

before(done => async.series([
Expand Down Expand Up @@ -201,7 +201,7 @@ describe('Lifecycle Expiration', function () {
[4, 6, 0, 0],
],
].forEach(([description, rules, expected]) => describe(description, () => {
const bucketName = getBucketName('exp-bucket-');
const bucketName = getBucketName('exp-');

before(done => async.series([
next => utils.createVersionedBucket(bucketName, next),
Expand Down Expand Up @@ -237,7 +237,7 @@ describe('Lifecycle Expiration', function () {
[4, 6, 0, 0],
],
].forEach(([description, rules, expected]) => describe(description, () => {
const bucketName = getBucketName('exp-tagged-bucket-');
const bucketName = getBucketName('exp-tagged-');

before(done => async.series([
next => utils.createVersionedBucket(bucketName, next),
Expand Down Expand Up @@ -273,7 +273,7 @@ describe('Lifecycle Expiration', function () {
[2, 3, 1, 0],
],
].forEach(([description, rules, expected]) => describe(description, () => {
const bucketName = getBucketName('exp-bucket-');
const bucketName = getBucketName('exp-');
const objectKey = getObjectKey(targetObjectPrefix);
const notTargetKey = getObjectKey(notTargetObjectPrefix);

Expand Down Expand Up @@ -312,7 +312,7 @@ describe('Lifecycle Expiration', function () {
[0, 0, 0, 1],
],
].forEach(([description, rules, expected]) => describe(description, () => {
const bucketName = getBucketName('exp-bucket-');
const bucketName = getBucketName('exp-');
const objectKey = getObjectKey(targetObjectPrefix);
const notTargetKey = getObjectKey(notTargetObjectPrefix);

Expand Down Expand Up @@ -347,7 +347,7 @@ describe('Lifecycle Expiration', function () {
[0, 4, 2, 0],
],
].forEach(([description, mode, expected]) => describe(description, () => {
const bucketName = getBucketName('object-lock-bucket-');
const bucketName = getBucketName('objectlock-');
const objectKeyPrefix = 'locked-key-';
const rules = [
// should delete current
Expand All @@ -370,7 +370,7 @@ describe('Lifecycle Expiration', function () {
}));

describe('with legal-hold defined', () => {
const bucketName = getBucketName('object-lock-bucket-');
const bucketName = getBucketName('objectlock-');
const objectKeyPrefix = 'legal-hold-key-';
const rules = [
// should delete current
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const testsToRun = [{
testsToRun.forEach(test => {
// eslint-disable-next-line prefer-arrow-callback
describe(`Lifecycle transition from ${test.from} to ${test.to}`, function () {
const srcBucket = `transition-bucket-${uuid()}`;
const srcBucket = `transition-${uuid()}`;
const keyPrefix = uuid();
const cloudServer = new LifecycleUtility(scalityS3Client)
.setBucket(srcBucket)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const uuidV4 = require('uuid/v4');

const s3 = require('../../../s3SDK').scalityS3Client;

const bucket = `get-v2-bucket-${uuidV4()}`;
const bucket = `list-v2-${uuidV4()}`;

function putObjects(cb) {
async.times(10, (n, next) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const uuidV4 = require('uuid/v4');
const { scalityS3Client, altScalityS3Client } = require('../../../s3SDK');
const testUtils = require('../../../utils/testUtils');

const bucket = `bpolicy-bucket-${uuidV4()}`;
const bucket = `bpolicy-${uuidV4()}`;
const bParam = { Bucket: bucket };
const objKey = 'bucket-pol-key';
const oParam = { Bucket: bucket, Key: objKey };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { scalityS3Client } = require('../../../s3SDK');
const QuotaUtility = require('../QuotaUtility');

const TEN_MB_BYTES = 10485760;
const bucket = `quota-bucket-${uuidV4()}`;
const bucket = `quota-${uuidV4()}`;

const scalityS3 = new QuotaUtility(scalityS3Client);

Expand Down

0 comments on commit 3c3ccdf

Please sign in to comment.