Skip to content

Commit bd8c078

Browse files
committed
testdata: change local instance keyspace name
1 parent 14413fa commit bd8c078

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

testdata/gen_accounts.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def gen_random_accounts(sess, n):
8383

8484
def populate_testdata(n, force_drop):
8585
sess = create_session('local')
86+
sess.execute('use vino9')
8687
print_db_version(sess)
8788
if force_drop:
8889
drop_and_recreate_table(sess)
@@ -127,11 +128,11 @@ def create_session(instance_type):
127128
if instance_type == 'astra':
128129
cluster = Cluster(
129130
cloud={'secure_connect_bundle': '../casa-account-v1/secure-connect-vino9.zip'},
130-
auth_provider=PlainTextAuthProvider('vino9', 'vinowine'))
131+
auth_provider=PlainTextAuthProvider('vino9', 'not_real_password'))
131132
return cluster.connect()
132133
else:
133134
cluster = Cluster(['127.0.0.1'])
134-
return cluster.connect('bank')
135+
return cluster.connect('vino9')
135136

136137

137138
def print_db_version(sess):

testdata/keyspace.cql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CREATE KEYSPACE bank
1+
CREATE KEYSPACE vino9
22
WITH REPLICATION = {
33
'class' : 'SimpleStrategy',
44
'replication_factor' : 1

0 commit comments

Comments
 (0)