Skip to content

Commit

Permalink
chore: update assertion values for file component
Browse files Browse the repository at this point in the history
  • Loading branch information
dvarasani-crest committed Sep 9, 2024
1 parent 82fd46b commit 8e4157c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/ui/test_splunk_ta_example_addon_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def test_account_example_file_validations(
account.entity.file.set_value(os.path.abspath(INVALID_FILE))
self.assert_util(
account.entity.file.get_error_text,
"The file must be in one of these formats: log, txt",
"The file must be in one of these formats: conf, txt",
)
self.assert_util(account.entity.file.cancel_selected_value, True)
# test for file size limit
Expand Down Expand Up @@ -565,9 +565,7 @@ def test_account_help_text_entity(
self.assert_util(
account.entity.name.get_help_text, "Enter a unique name for this account."
)
self.assert_util(
account.entity.file.get_help_text, "Upload service account's certificate"
)
self.assert_util(account.entity.file.get_help_text, "Upload example file")
self.assert_util(
account.entity.file.get_support_message, "Example Support message"
)
Expand Down Expand Up @@ -1078,7 +1076,7 @@ def test_account_add_backend_validation(
"disabled": False,
"password": ACCOUNT_CONFIG["password"],
"token": ACCOUNT_CONFIG["token"],
"example_file": ACCOUNT_CONFIG["example_file"],
"example_file": "Example test file for testing file component",
}

@pytest.mark.execute_enterprise_cloud_true
Expand Down Expand Up @@ -1111,7 +1109,7 @@ def test_account_edit_backend_validation(
"disabled": False,
"password": "TestEditPassword",
"token": "TestEditToken",
"example_file": "Example file content",
"example_file": "Example test file for testing file component",
}

@pytest.mark.execute_enterprise_cloud_true
Expand Down Expand Up @@ -1144,7 +1142,7 @@ def test_account_clone_backend_validation(
"disabled": False,
"password": "TestEditPassword",
"token": "TestEditToken",
"example_file": "Example file content",
"example_file": "Example test file for testing file component",
}

@pytest.mark.execute_enterprise_cloud_true
Expand Down

0 comments on commit 8e4157c

Please sign in to comment.