Skip to content

Commit fec90ae

Browse files
Specify auth superuser name for tests (#759)
Recently scylladb started to rely on the options "--auth-superuser-name" and "--auth-superuser-salted-password" to ensure that a cassandra/cassandra user exists for tests - without those options a default superuser no longer exists.
1 parent efdc08a commit fec90ae

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/integration/standard/test_authentication.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
import os
16+
1517
from packaging.version import Version
1618
import logging
1719
import time
@@ -34,6 +36,7 @@
3436

3537

3638
def setup_module():
39+
os.environ['SCYLLA_EXT_OPTS'] = '--auth-superuser-name=cassandra --auth-superuser-salted-password=$6$x7IFjiX5VCpvNiFk$2IfjTvSyGL7zerpV.wbY7mJjaRCrJ/68dtT3UpT.sSmNYz1bPjtn3mH.kJKFvaZ2T4SbVeBijjmwGjcb83LlV/'
3740
if CASSANDRA_IP.startswith("127.0.0.") and not USE_CASS_EXTERNAL:
3841
use_singledc(start=False)
3942
ccm_cluster = get_cluster()

0 commit comments

Comments
 (0)