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

Every command on cli will generate temp folders #38

Closed
tchiotludo opened this issue Jan 20, 2020 · 0 comments
Closed

Every command on cli will generate temp folders #38

tchiotludo opened this issue Jan 20, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@tchiotludo
Copy link
Member

for every command on cli, this code from TestCommand will be run :

    @SuppressWarnings("unused")
    public static Map<String, Object> propertiesOverrides() {
        try {
            Path tempDirectory = Files.createTempDirectory(TestCommand.class.getSimpleName());

            return ImmutableMap.of(
                "kestra.repository.type", "memory",
                "kestra.queue.type", "memory",
                "kestra.storage.type", "local",
                "kestra.storage.local.base-path", tempDirectory.toAbsolutePath().toString()
            );
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

and will create a temp folders, must be created only on test command

@tchiotludo tchiotludo added bug Something isn't working cli labels Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Archived in project
Development

No branches or pull requests

1 participant