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

Test if changing the PATH variable works correctly #2

Open
zadigus opened this issue Aug 20, 2022 · 0 comments
Open

Test if changing the PATH variable works correctly #2

zadigus opened this issue Aug 20, 2022 · 0 comments

Comments

@zadigus
Copy link
Member

zadigus commented Aug 20, 2022

It's about this test that used to be failing on Jelastic, which is not acceptable:

def test_set_container_env_vars_by_group_bug(
        control_client: ControlClient,
        valid_environment_with_env_vars: str
):
    # Arrange
    vars_to_set = {
        "MY_FIRST_NEW_VAR": "value1",
        "MY_SECOND_NEW_VAR": "value2"
    }
    initial_env_vars = control_client.get_container_env_vars_by_group(valid_environment_with_env_vars, "cp")
    assert "PATH" in initial_env_vars

    # Act
    control_client.set_container_env_vars_by_group(valid_environment_with_env_vars, vars=vars_to_set, node_group="cp")
    actual_env_vars = control_client.get_container_env_vars_by_group(valid_environment_with_env_vars, "cp")

    # Assert
    assert "PATH" in actual_env_vars
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

No branches or pull requests

1 participant