All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rest-api-spec.test.cat.repositories.10_basic.yml Maven / Gradle / Ivy

There is a newer version: 2.18.0
Show newest version
---
"Help":
  - do:
      cat.repositories:
        help: true

  - match:
      $body: |
               /^  id   .+ \n
                   type .+ \n
               $/
---
"Test cat repositories output":

  - do:
      cat.repositories: {}

  - match:
      $body: |
               /^$/

  - do:
      snapshot.create_repository:
        repository: test_cat_repo_1
        body:
          type: fs
          settings:
            location: "test_cat_repo_1_loc"

  - do:
      snapshot.create_repository:
        repository: test_cat_repo_2
        body:
          type: fs
          settings:
            location: "test_cat_repo_2_loc"

  - do:
      cat.repositories: {}

  - match:
      $body: |
               /^   test_cat_repo_1\s+ fs\s*\n
                    test_cat_repo_2\s+ fs\s*\n
               $/

---
"Test cat repositories sort":
  - do:
      snapshot.create_repository:
        repository: test_cat_repo_1
        body:
          type: fs
          settings:
            location: "test_cat_repo_1_loc"

  - do:
      snapshot.create_repository:
        repository: test_cat_repo_2
        body:
          type: fs
          settings:
            location: "test_cat_repo_2_loc"

  - do:
      cat.repositories:
        s: [type, id]

  - match:
      $body: |
             /^ test_cat_repo_1 \s+ fs \n
                test_cat_repo_2 \s+ fs \n
             $/

  - do:
      cat.repositories:
        s: [type, "id:desc"]

  - match:
      $body: |
             /^ test_cat_repo_2 \s+ fs \n
                test_cat_repo_1 \s+ fs \n
             $/




© 2015 - 2024 Weber Informatics LLC | Privacy Policy