forked from kyma-project/serverless
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate spec.runtime (kyma-project#1327)
- Loading branch information
Showing
5 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -432,6 +432,15 @@ func TestValidation_Invalid(t *testing.T) { | |
}, | ||
expectedCondMsg: "source.gitRepository.URL: parse \"[email protected]:kyma-project/kyma.git\": invalid URI for request", | ||
}, | ||
"Invalid runtime": { | ||
fn: serverlessv1alpha2.Function{ | ||
ObjectMeta: metav1.ObjectMeta{GenerateName: "test-fn"}, | ||
Spec: serverlessv1alpha2.FunctionSpec{ | ||
Runtime: "foo", | ||
}, | ||
}, | ||
expectedCondMsg: "invalid runtime value: cannot find runtime: foo", | ||
}, | ||
} | ||
|
||
//WHEN | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters