package
0.0.0-20250224202920-7f0ea50bac50
Repository: https://github.com/rancher/tests.git
Documentation: pkg.go.dev

# README

Rbac

Getting Started

Your GO suite should be set to -run ^Test<>TestSuite$. For example to run the rbac_additional_test.go, set the GO suite to -run ^TestRBACAdditionalTestSuite$ You can find specific tests by checking the test file you plan to run. In your config file, set the following:

"rancher": { 
  "host": "rancher_server_address",
  "adminToken": "rancher_admin_token",
  "clusterName": "cluster_to_run_tests_on",
  "insecure": true/optional,
  "cleanup": false/optional,
}

For the rbac_additional_test.go run, we need the following paramters to be passed in the config file as we create an rke1 cluster Please use the following links to continue adding to your config for provisioning tests: Define your test (#Provisioning-Input) Configure providers to use for Node Driver Clusters

RBAC input

rbacInput is needed to the run the TestRBACDynamicInput tests, specifically username, password and a cluster/project role. role takes the following as input only. Role takes a single value. Dynamic input will be executed on a single cluster. If the user is added to multiple downstream clusters, only the clusterName specified in the Rancher config will be taken into account. Some tests like VerifyListCluster may fail when the user is added in more than one downstream clusters. User must be already created in the rancher server. If any other format of roles is provided, the tests fail to run:

cluster-owner cluster-member project-owner project-member

rbacInput:
  role: "cluster-owner"
  username: "<userID>"
  password: "<password>"

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author