[ 
https://issues.apache.org/jira/browse/CASSANDRA-17465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Miklosovic updated CASSANDRA-17465:
------------------------------------------
    Status: Ready to Commit  (was: Review In Progress)

> python unit tests don't cleanup test keyspace
> ---------------------------------------------
>
>                 Key: CASSANDRA-17465
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17465
>             Project: Cassandra
>          Issue Type: Task
>          Components: CQL/Interpreter
>            Reporter: Brad Schoening
>            Assignee: Brad Schoening
>            Priority: Normal
>             Fix For: 4.x
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> The python unit tests in pylib/cqlshlib creates a temporary keyspace 
> cqlshtests_xxxxxxxx, but does not drop it upon completion.
> To reproduce:
> {code:java}
> $ pytest
> $ cqlsh
> cassandra@cqlsh> describe keyspaces
> cqlshtests_oatjjlyyxh ...
> {code}
> The above keyspace, created with a 10 character random suffix, will remain 
> after the tests are run.  This will then cause subsequent runs of 
> test_cqlsh_completion to fail.
>  
> {code:java}
> cqlshlib/test/test_cqlsh_completion.py:138: in _trycompletions_inner
> E   AssertionError: Items in the second set but not the first:
> E   'cqlshtests_oatjjlyyxh'
> {code}
> test/cassconnect.py;'s remove_db() has the code to perform this, but does not 
> seem to be properly called.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to