<commit_before>#!/bin/bash
DIR=`dirname $0`
set -x

oc login -u test -p test --insecure-skip-tls-verify=true https://localhost:8443

function setup_test() {
    PROJECT_NAME=$1
    oc delete project $PROJECT_NAME

    oc new-project $PROJECT_NAME
    oc create sa enmasse-service-account -n $(oc project -q)
    oc policy add-role-to-user view system:serviceaccount:$(oc project -q):default
    oc policy add-role-to-user edit system:serviceaccount:$(oc project -q):enmasse-service-account
}

function setup_secure() {
    openssl req -x509 -newkey rsa:4096 -keyout server-key.pem -out server-cert.pem -days 1 -nodes -batch
    oc secret new qdrouterd-certs server-cert.pem server-key.pem
    oc secret add serviceaccount/default secrets/qdrouterd-certs --for=mount
    export OPENSHIFT_USE_TLS="true"
    export OPENSHIFT_SERVER_CERT=`cat server-cert.pem`
}

function run_test() {
    PROJECT_NAME=$1
    USE_TLS=$2
    TEMPLATE=$3

    oc process -f $TEMPLATE | oc create -f -

    $DIR/wait_until_up.sh 5 || exit 1
<commit_msg>Update expected pod when multitenancy is enabled<commit_after>#!/bin/bash
DIR=`dirname $0`
set -x

oc login -u test -p test --insecure-skip-tls-verify=true https://localhost:8443

function setup_test() {
    PROJECT_NAME=$1
    oc delete project $PROJECT_NAME

    oc new-project $PROJECT_NAME
    oc create sa enmasse-service-account -n $(oc project -q)
    oc policy add-role-to-user view system:serviceaccount:$(oc project -q):default
    oc policy add-role-to-user edit system:serviceaccount:$(oc project -q):enmasse-service-account
}

function setup_secure() {
    openssl req -x509 -newkey rsa:4096 -keyout server-key.pem -out server-cert.pem -days 1 -nodes -batch
    oc secret new qdrouterd-certs server-cert.pem server-key.pem
    oc secret add serviceaccount/default secrets/qdrouterd-certs --for=mount
    export OPENSHIFT_USE_TLS="true"
    export OPENSHIFT_SERVER_CERT=`cat server-cert.pem`
}

function run_test() {
    PROJECT_NAME=$1
    USE_TLS=$2
    TEMPLATE=$3

    oc process -f $TEMPLATE | oc create -f -

    $DIR/wait_until_up.sh 6 || exit 1

{'fraction_non_alphanumeric': 0.11073985680190931, 'fraction_numerical': 0.018138424821002388, 'mean_word_length': 3.546637744034707, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3584200', 'n_tokens_mistral': 755, 'n_tokens_neox': 714, 'n_words': 192}