github.com/upcmd/up@v0.8.1-0.20230108151705-ad8b797bf04f/tests/modtests/0009/doc.yml (about)

     1  vars:
     2    folder: module
     3    title: module validation
     4    log: yes
     5    weight: 2149
     6    head: |
     7      Showcase the validation rules apply
     8  
     9    sections:
    10      - title: rules
    11        content: |
    12          1. no duplicated name of module, eg alias has to be unique
    13  
    14      - title: example
    15        content: |
    16          ```
    17          Ξ up-project/up-gitlab git:(v2) ▶  up mod list -d ./tests/modtests/$1 -i dev --configdir=./tests/modtests/$1 -w refdir 0009
    18          loading [Config]:  ./tests/modtests/0009/upconfig.yml
    19          Main config:
    20            Version -> 1.0.0
    21            RefDir -> ./tests/modtests/0009
    22            WorkDir -> refdir
    23            TaskFile -> up.yml
    24            Verbose -> vvv
    25            ModuleName -> silly_pare9
    26            MaxCallLayers -> 8
    27          work dir:
    28          loading [Task]:  ./up.yml
    29          module: [silly_pare9] instance id: [dev]
    30          -list all modules:
    31            +-----+-------------------------------+----------------------------+-------------------------------------------+---------+------------+------------+--------+
    32            | IDX |             ALIAS             |            DIR             |                   REPO                    | VERSION | PULLPOLICY | INSTANCEID | SUBDIR |
    33            +-----+-------------------------------+----------------------------+-------------------------------------------+---------+------------+------------+--------+
    34            |   1 | hello-module                  | .upmodules/hello-module    | https://github.com/upcmd/hello-module.git | master  | skip       | nonamed    |        |
    35            |   2 | module-a                      | .upmodules/module-a        | https://github.com/upcmd/module-a.git     | master  | always     | nonamed    |        |
    36            |   3 | himodule                      | himodule                   | https://github.com/upcmd/hello-module.git | master  | skip       | nonamed    |        |
    37            |   4 | module-b-subdir               | .upmodules/module-b-subdir | https://github.com/upcmd/module-b.git     | master  | skip       | nonamed    | a/b    |
    38            |   5 | module-c                      | .upmodules/module-c        | https://github.com/upcmd/module-c.git     | 1.0.0   | skip       | nonamed    |        |
    39            |   6 | hi                            | .upmodules/hi              | https://github.com/upcmd/hello-module.git | master  | skip       | nonamed    |        |
    40            |   7 | sayhello                      | .upmodules/sayhello        | https://github.com/up/sayhello.git        | abc123e | skip       | nonamed    |        |
    41            |   8 | a_relative_dir_module         | c/d                        |                                           |         |            | nonamed    |        |
    42            |   9 | himod                         | c/d                        |                                           |         |            | nonamed    |        |
    43            |  10 | absolute_path_module          | /etc/c/d                   |                                           |         |            | nonamed    |        |
    44            |  11 | absolute_path_with_iid_module | /etc/c/d                   |                                           |         |            | dev        |        |
    45            +-----+-------------------------------+----------------------------+-------------------------------------------+---------+------------+------------+--------+
    46          -validate all modules:
    47          ```
    48  
    49      - title: config file - upconfig.yml
    50        filelookup: upconfig.yml