Пример #1
0
def test_update_user_inherit_group_policies(ddbt):
    create_user(ddbt, user_name="engineer", human_name="Engineer")
    update_user_inherit_group_policies(
        ddbt,
        user_name="engineer",
        group_name="engineers",
        policy_names=["ManageUsersReadOnly", "ManageDataAdmin"],
    )
    user = describe_user(ddbt, user_name="engineer")
    print(user)
Пример #2
0
def test_update_user_attach_policies(ddbt):
    create_user(ddbt, user_name="engineer", human_name="Engineer")
    update_user_attach_policies(ddbt, user_name="engineer", policy_names=["ManageUsersReadOnly"])
    user = describe_user(ddbt, user_name="engineer")
    print(user)
Пример #3
0
def test_update_user(ddbt):
    create_user(ddbt, user_name="joe", human_name="Joe")
    update_user(ddbt, user_name="joe", human_name="joseph")
    user = describe_user(ddbt, user_name="joe")
    print(user)
Пример #4
0
def test_update_user_remove_from_groups(ddbt):
    create_user(ddbt, user_name="joe", human_name="Joe")
    update_user_add_to_groups(ddbt, user_name="joe", group_names=["admin", "sales"])
    update_user_remove_from_groups(ddbt, user_name="joe", group_names=["admin", "sales"])
    user = describe_user(ddbt, user_name="joe")
    print(user)
Пример #5
0
def test_delete_user(ddbt):
    create_user(ddbt, user_name="joe", human_name="Joe")
    delete_user(ddbt, user_name="joe")
    user = describe_user(ddbt, user_name="joe")
    print(user)