question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[tests] Update TestMultitenantAdminMixin to use default operator group

See original GitHub issue

In this test utility code (which is reused across openwisp modules):

https://github.com/openwisp/openwisp-users/blob/cf5cd64f7d3c3515fcd0fc1f23077620b5a85964/openwisp_users/tests/utils.py#L23-L39

The test expects the permission of the operator to be defined as a class attribute.

This is obsolete, because in more recent versions of OpenWISP we added two default auth.Group instances: operator and administrator.

  • update the test method to assign those groups
  • remove operator_permission_filters = []
  • remove get_operator_permissions

Open a pull request in each openwisp module to remove the operator_permission_filters and ensuring the new code works: https://github.com/search?q=org%3Aopenwisp+operator_permission_filters&type=Code

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
niteshsinha17commented, Nov 15, 2020

I am working on this Issue 😊

0reactions
lehone-hpcommented, Jan 13, 2021

Okay, I will assign the appropriate permissions and then open a PR

Read more comments on GitHub >

github_iconTop Results From Across the Web

Operator groups | Operators | OpenShift Container Platform 4.8
This guide outlines the use of Operator groups with Operator Lifecycle Manager (OLM) in OpenShift Container Platform.
Read more >
Chapter 2. Understanding Operators - Red Hat Customer Portal
Operator Lifecycle Manager (OLM) controls the installation, upgrade, and role-based access control (RBAC) of Operators in a cluster. Deployed by default in ...
Read more >
Explained - Community operators
Testing your Operator with Operator Framework ... If you are using the packagemanifest format, don't forget to update the package.yaml file ...
Read more >
Operator scoping with OperatorGroups
By default, an operator can specify any set of permission(s) in the CSV and OLM will ... An admin may create a single...
Read more >
Account operators group in Active Directory - Microsoft Q&A
Can you explain me where is the risk with that group please ? Can someone escalade to admin account or privilege with this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found