Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cassandra role consistency level #287

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

rhysmeister
Copy link
Collaborator

SUMMARY

Take over of #284

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

cassandra_role

Демьяненко Александр Сергеевич and others added 3 commits July 18, 2024 17:53
@rhysmeister
Copy link
Collaborator Author

Should also be added to...

  • cassandra_keyspace
  • cassandra_table

and then refactored at some point, to cassandra_common.py, as described in #248

@rhysmeister
Copy link
Collaborator Author

rhysmeister commented Oct 11, 2024

Note the tests for ANY consistency level...

- name: Create a test role - ANY consistency
  community.cassandra.cassandra_role:
    name: any_role
    password: p4ssw0rd
    login: true
    keyspace_permissions:
      test_keyspace:
        - "ALL PERMISSIONS"
    state: present
    login_user: "{{ cassandra_admin_user }}"
    login_password: "{{ cassandra_admin_pwd }}"
    debug: yes
    consistency_level: "ANY"
  ignore_errors: true
  register: any

- assert:
    that:
      - any.failed
      - "'ANY ConsistencyLevel is only supported for writes' in any.msg"

For this feature to be fully usable we need to create separate connections for read and write.

Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.33%. Comparing base (a94515f) to head (64a4f70).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #287      +/-   ##
==========================================
- Coverage   72.13%   67.33%   -4.81%     
==========================================
  Files          37       13      -24     
  Lines        2688     1356    -1332     
  Branches      605      307     -298     
==========================================
- Hits         1939      913    -1026     
+ Misses        394      295      -99     
+ Partials      355      148     -207     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant