Skip to content

Test 68#1066

Merged
TheRealFalcon merged 6 commits into
masterfrom
test-68
Jan 23, 2020
Merged

Test 68#1066
TheRealFalcon merged 6 commits into
masterfrom
test-68

Conversation

@TheRealFalcon
Copy link
Copy Markdown
Contributor

Major changes mentioned in commits but summarized here:

  • Materialized view tests: You now can't create a MV with clustering order by unless you specify ALL of the clustering columns. So tests are updated to do that.
  • DuplicateRpcTest: We used to be able to update system.peers, but that's not allowed anymore, so converted it to a simulacron test. Updated another test to use mocks for the same reason.
  • Updated virtual keyspace test to not verify exact structure since that will change between versions. Rather, verify a few known values that should exist in all versions to verify we parsed the structure correctly.
  • Tombstone settings have moved under guardrails, and delete entire row intead of just cells in tombstone tests due to DB-2426.
  • Added a few optional env vars to allow management of an external cluster
  • DSE version check stuff

I'll squash down to one commit when merging

- Materialized view tests: You now can't create a MV with clustering order by unless you specify ALL of the clustering columns. So tests are updated to do that.
- DuplicateRpcTest: We used to be able to update system.peers, but that's not allowed anymore, so converted it to a simulacron test.
…t will change between versions. Rather, verify a few known values that should exist in all versions to verify we parsed the structure correctly.
… intead of just cells in tombstone tests due to DB-2426.
from cassandra.cluster import Cluster, ControlConnection


PROTOCOL_VERSION = min(4, PROTOCOL_VERSION if (DSE_VERSION is None or DSE_VERSION >= Version('5.0')) else 3)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is only a default value?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stole it from another simulacron test after getting protocol errors. Looks like simulacron barfs when we try to pass a higher protocol version.

@TheRealFalcon TheRealFalcon merged commit 3a5bd85 into master Jan 23, 2020
@TheRealFalcon TheRealFalcon deleted the test-68 branch January 23, 2020 18:55
avikivity added a commit to scylladb/python-driver that referenced this pull request Jan 27, 2020
* 'master' of https://github.com/datastax/python-driver: (286 commits)
  Test 68 (apache#1066)
  Add all() function to the ResultSet API
  Changes from test failures.
  ninja fix invalid syntax in test
  remove test code
  Moved some utils module to fix import errors in unit tests
  release 3.21: update docs
  Last fix for the registered char for Cassandra
  release 3.21: docs
  use ® for docs summary
  release 3.21: docs
  use TM for docs summary, not the registered char
  release 3.21: docs
  release 3.21: changelog
  A few other docs fixes
  Minor documentation improvements
  update 3.21 hash in docs.yaml
  docs.yaml should install deps from test-datastax-requirements.txt
  add 3.21 in docs.yaml
  release 3.21: bump version
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants