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

Implement a test that makes sure the FTP directory was created and its content downloaded #3

Open
jeanlescure opened this issue Jun 30, 2022 · 0 comments
Assignees

Comments

@jeanlescure
Copy link
Contributor

Context

The file src/fixtures/project-structure.json contains a definition that reads:

        {
          "name": "content-from-ftp",
          "flags": [],
          "contentSources": [
            {
              "sourcePath": "ftp://ubuntu.osuosl.org/pub/elrepo/extras/el9/SRPMS",
              "sourceType": "ftp"
            }
          ]
        },

Task

Implement a test that makes sure the testfiles/content-dir/content-from-ftp directory was created and its content downloaded from the sourcePath.

Acceptance criteria

When you run pnpm test:

  • the test should make sure that a directory testfiles/content-dir/content-from-ftp exists
  • the test should somehow ensure that content was downloaded into the aforementioned directory

Files affected

  • src/index.test.ts
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

2 participants