mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
31 lines
1.1 KiB
Python
31 lines
1.1 KiB
Python
from galaxy.selenium.navigates_galaxy import (
|
|
ConfigTemplateParameter,
|
|
FileSourceInstance,
|
|
)
|
|
from ._base_user_file_sources import BaseUserObjectStoreSeleniumIntegration
|
|
from .framework import (
|
|
managed_history,
|
|
selenium_test,
|
|
)
|
|
|
|
|
|
class TestObjectStoreSelectionSeleniumIntegration(BaseUserObjectStoreSeleniumIntegration):
|
|
example_filename = "production_ftp.yml"
|
|
|
|
@selenium_test
|
|
@managed_history
|
|
def test_create_and_use(self):
|
|
random_name = self._get_random_name(prefix="scene ftp")
|
|
instance = FileSourceInstance(
|
|
template_id="ftp",
|
|
name=random_name,
|
|
description="Archive of computer art from demoscene subsculture",
|
|
parameters=[
|
|
ConfigTemplateParameter("string", "host", "ftp.scene.org"),
|
|
ConfigTemplateParameter("string", "user", "ftp"),
|
|
ConfigTemplateParameter("string", "password", "email@example.com"),
|
|
],
|
|
)
|
|
uri_root = self.create_file_source_template(instance)
|
|
self.upload_uri(f"{uri_root}/welcome.msg", wait=True)
|