sourcegraph/cmd/gitserver/image_test.yaml
Erik Seliger ab4477d9b2
gitserver: Simplify invocation of p4-fusion (#62070)
This wrapper existed to track performance issues, but we have since added better logging options for that through storing the last output and the ability to log to a file.

This adds another layer of indirection that could cause trouble, so simplifying here and calling p4-fusion directly, like we do in the p4-fusion CI pipeline.

Test plan:

The p4 integration test still passes.
2024-05-02 01:44:53 +02:00

59 lines
1.1 KiB
YAML

schemaVersion: "2.0.0"
commandTests:
- name: "binary is runnable"
command: "/gitserver"
envVars:
- key: "SANITY_CHECK"
value: "true"
- name: "git is runnable"
command: "git"
args:
- version
- name: "git-lfs is runnable"
command: "git-lfs"
args:
- version
- name: "git p4 is runnable"
command: "git"
args:
- p4
expectedOutput: ["valid commands: submit"]
exitCode: 2
- name: "ssh is runnable"
command: "ssh"
exitCode: 255
- name: "python3 is runnable"
command: "python3"
args:
- --version
- name: "bash is runnable"
command: "bash"
args:
- --version
- name: "p4 is runnable"
command: "p4"
args:
- -h
- name: "coursier is runnable"
command: "coursier"
- name: "p4-fusion is runnable"
command: "p4-fusion"
args:
expectedOutput: ["--noBaseCommit"]
exitCode: 1
- name: "not running as root"
command: "/usr/bin/id"
args:
- -u
excludedOutput: ["^0"]
exitCode: 0
fileExistenceTests:
- name: '/data/repos'
path: '/data/repos'
shouldExist: true
uid: 100
gid: 101