...

Text file src/edge-infra.dev/hack/build/build-image/test.yaml

Documentation: edge-infra.dev/hack/build/build-image

     1##
     2# See https://github.com/GoogleContainerTools/container-structure-test
     3# for schema definition
     4##
     5schemaVersion: 2.0.0
     6
     7fileExistenceTests:
     8  # bzl-cache-rc-gen
     9  - name: 'bzl-cache-rc-gen'
    10    path: '/usr/local/bin/bzl-cache-rc-gen'
    11    shouldExist: true
    12    permissions: '-rwxr-xr-x'
    13  - name: 'system wide cache bazel config'
    14    path: '/etc/bazel.bazelrc'
    15    shouldExist: true
    16
    17  # docker
    18  - name: 'docker'
    19    path: '/usr/bin/docker'
    20    shouldExist: true
    21    permissions: '-rwxr-xr-x'
    22  - name: 'containerd-shim'
    23    path: '/usr/bin/containerd-shim'
    24    shouldExist: true
    25    permissions: '-rwxr-xr-x'
    26  - name: 'containerd'
    27    path: '/usr/bin/containerd'
    28    shouldExist: true
    29    permissions: '-rwxr-xr-x'
    30  - name: 'docker-init'
    31    path: '/usr/bin/docker-init'
    32    shouldExist: true
    33    permissions: '-rwxr-xr-x'
    34  - name: 'docker-proxy'
    35    path: '/usr/bin/docker-proxy'
    36    shouldExist: true
    37    permissions: '-rwxr-xr-x'
    38  - name: 'dockerd'
    39    path: '/usr/bin/dockerd'
    40    shouldExist: true
    41    permissions: '-rwxr-xr-x'
    42  - name: 'ctr'
    43    path: '/usr/bin/ctr'
    44    shouldExist: true
    45    permissions: '-rwxr-xr-x'
    46  - name: 'runc'
    47    path: '/usr/bin/runc'
    48    shouldExist: true
    49    permissions: '-rwxr-xr-x'
    50
    51  # kpt
    52  - name: 'kpt'
    53    path: '/usr/local/bin/kpt'
    54    shouldExist: true
    55    permissions: '-rwxr-xr-x'
    56
    57  # just
    58  - name: 'just'
    59    path: '/usr/local/bin/just'
    60    shouldExist: true
    61    permissions: '-rwxr-xr-x'
    62  
    63  # yq
    64  - name: 'yq'
    65    path: '/usr/local/bin/yq'
    66    shouldExist: true
    67    permissions: '-rwxr-xr-x'
    68
    69commandTests:
    70  # repo tools
    71  - name: 'bzl-cache-rc-gen --help'
    72    command: 'bzl-cache-rc-gen'
    73    args: ['--help']
    74    exitCode: 0
    75 
    76  - name: 'edgeadmin'
    77    command: 'edgeadmin'
    78    args: ['--help']
    79    exitCode: 0
    80
    81  # git
    82  - name: 'git'
    83    command: 'git'
    84    args: ['version']
    85    exitCode: 0
    86  
    87  # bazel
    88  - name: 'bazel'
    89    command: 'bazel'
    90    args: ['version']
    91
    92  # ruby
    93  - name: 'which ruby'
    94    command: 'which'
    95    args: ['ruby']
    96    exitCode: 0 
    97
    98  # rsync
    99  - name: 'which rsync'
   100    command: 'which'
   101    args: ['rsync']
   102    exitCode: 0
   103
   104  # python
   105  - name: 'which python3'
   106    command: 'which'
   107    args: ['python3']
   108    exitCode: 0
   109
   110  # node
   111  - name: 'which node'
   112    command: 'which'
   113    args: ['node']
   114    exitCode: 0 
   115  - name: 'node version'
   116    command: node
   117    args: ['--version']
   118    expectedOutput: ['v20.*']
   119  - name: 'which npm'
   120    command: 'which'
   121    args: ['npm']
   122    exitCode: 0
   123  - name: npm version
   124    command: 'npm'
   125    args: ['version']
   126    expectedOutput: ['v8.*']
   127
   128  # task runners
   129  - name: 'which make'
   130    command: 'which'
   131    args: ['make']
   132    exitCode: 0
   133
   134  

View as plain text