|
922 | 922 | "description": "*beta* tags images with a configurable template string.",
|
923 | 923 | "x-intellij-html-description": "<em>beta</em> tags images with a configurable template string."
|
924 | 924 | },
|
| 925 | + "CustomTest": { |
| 926 | + "required": [ |
| 927 | + "command" |
| 928 | + ], |
| 929 | + "properties": { |
| 930 | + "command": { |
| 931 | + "type": "string", |
| 932 | + "description": "custom command to be executed. If the command exits with a non-zero return code, the test will be considered to have failed.", |
| 933 | + "x-intellij-html-description": "custom command to be executed. If the command exits with a non-zero return code, the test will be considered to have failed." |
| 934 | + }, |
| 935 | + "dependencies": { |
| 936 | + "$ref": "#/definitions/CustomTestDependencies", |
| 937 | + "description": "additional test-specific file dependencies; changes to these files will re-run this test.", |
| 938 | + "x-intellij-html-description": "additional test-specific file dependencies; changes to these files will re-run this test." |
| 939 | + }, |
| 940 | + "timeoutSeconds": { |
| 941 | + "type": "integer", |
| 942 | + "description": "sets the wait time for skaffold for the command to complete. If unset or 0, Skaffold will wait until the command completes.", |
| 943 | + "x-intellij-html-description": "sets the wait time for skaffold for the command to complete. If unset or 0, Skaffold will wait until the command completes." |
| 944 | + } |
| 945 | + }, |
| 946 | + "preferredOrder": [ |
| 947 | + "command", |
| 948 | + "timeoutSeconds", |
| 949 | + "dependencies" |
| 950 | + ], |
| 951 | + "additionalProperties": false, |
| 952 | + "description": "describes the custom test command provided by the user. Custom tests are run after an image build whenever build or test dependencies are changed.", |
| 953 | + "x-intellij-html-description": "describes the custom test command provided by the user. Custom tests are run after an image build whenever build or test dependencies are changed." |
| 954 | + }, |
| 955 | + "CustomTestDependencies": { |
| 956 | + "properties": { |
| 957 | + "command": { |
| 958 | + "type": "string", |
| 959 | + "description": "represents a command that skaffold executes to obtain dependencies. The output of this command *must* be a valid JSON array.", |
| 960 | + "x-intellij-html-description": "represents a command that skaffold executes to obtain dependencies. The output of this command <em>must</em> be a valid JSON array." |
| 961 | + }, |
| 962 | + "ignore": { |
| 963 | + "items": { |
| 964 | + "type": "string" |
| 965 | + }, |
| 966 | + "type": "array", |
| 967 | + "description": "specifies the paths that should be ignored by skaffold's file watcher. If a file exists in both `paths` and in `ignore`, it will be ignored, and will be excluded from both retest and file synchronization. Will only work in conjunction with `paths`.", |
| 968 | + "x-intellij-html-description": "specifies the paths that should be ignored by skaffold's file watcher. If a file exists in both <code>paths</code> and in <code>ignore</code>, it will be ignored, and will be excluded from both retest and file synchronization. Will only work in conjunction with <code>paths</code>.", |
| 969 | + "default": "[]" |
| 970 | + }, |
| 971 | + "paths": { |
| 972 | + "items": { |
| 973 | + "type": "string" |
| 974 | + }, |
| 975 | + "type": "array", |
| 976 | + "description": "should be set to the file dependencies for this command, so that the skaffold file watcher knows when to retest and perform file synchronization.", |
| 977 | + "x-intellij-html-description": "should be set to the file dependencies for this command, so that the skaffold file watcher knows when to retest and perform file synchronization.", |
| 978 | + "default": "[]", |
| 979 | + "examples": [ |
| 980 | + "[\"src/test/**\"]" |
| 981 | + ] |
| 982 | + } |
| 983 | + }, |
| 984 | + "preferredOrder": [ |
| 985 | + "command", |
| 986 | + "paths", |
| 987 | + "ignore" |
| 988 | + ], |
| 989 | + "additionalProperties": false, |
| 990 | + "description": "used to specify dependencies for custom test command. `paths` should be specified for file watching to work as expected.", |
| 991 | + "x-intellij-html-description": "used to specify dependencies for custom test command. <code>paths</code> should be specified for file watching to work as expected." |
| 992 | + }, |
925 | 993 | "DateTimeTagger": {
|
926 | 994 | "properties": {
|
927 | 995 | "format": {
|
|
2910 | 2978 | "image"
|
2911 | 2979 | ],
|
2912 | 2980 | "properties": {
|
| 2981 | + "custom": { |
| 2982 | + "items": { |
| 2983 | + "$ref": "#/definitions/CustomTest" |
| 2984 | + }, |
| 2985 | + "type": "array", |
| 2986 | + "description": "the set of custom tests to run after an artifact is built.", |
| 2987 | + "x-intellij-html-description": "the set of custom tests to run after an artifact is built." |
| 2988 | + }, |
2913 | 2989 | "image": {
|
2914 | 2990 | "type": "string",
|
2915 | 2991 | "description": "artifact on which to run those tests.",
|
|
2933 | 3009 | },
|
2934 | 3010 | "preferredOrder": [
|
2935 | 3011 | "image",
|
| 3012 | + "custom", |
2936 | 3013 | "structureTests"
|
2937 | 3014 | ],
|
2938 | 3015 | "additionalProperties": false,
|
2939 |
| - "description": "a list of structure tests to run on images that Skaffold builds.", |
2940 |
| - "x-intellij-html-description": "a list of structure tests to run on images that Skaffold builds." |
| 3016 | + "description": "a list of tests to run on images that Skaffold builds.", |
| 3017 | + "x-intellij-html-description": "a list of tests to run on images that Skaffold builds." |
2941 | 3018 | }
|
2942 | 3019 | }
|
2943 | 3020 | }
|
0 commit comments