mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-01 13:41:12 +02:00
#90 Small fixes in tests
This commit is contained in:
@@ -11,7 +11,7 @@ podTemplate(label: label,
|
||||
) {
|
||||
node(label) {
|
||||
container('alpine') {
|
||||
echo "its working"
|
||||
sh 'echo "Its working"'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ func TestConfiguration(t *testing.T) {
|
||||
verifyJenkinsSeedJobs(t, client, []seedJobConfig{mySeedJob})
|
||||
}
|
||||
|
||||
func TestPlugin(t *testing.T) {
|
||||
func TestPlugins(t *testing.T) {
|
||||
t.Parallel()
|
||||
namespace, ctx := setupTest(t)
|
||||
// Deletes test namespace
|
||||
@@ -127,6 +127,11 @@ func TestPlugin(t *testing.T) {
|
||||
require.NoError(t, err, job)
|
||||
i, err := job.InvokeSimple(map[string]string{})
|
||||
require.NoError(t, err, i)
|
||||
|
||||
build, err := job.GetLastBuild()
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, int64(1), build.GetBuildNumber())
|
||||
assert.True(t, build.IsGood())
|
||||
}
|
||||
|
||||
func createUserConfigurationSecret(t *testing.T, namespace string, stringData map[string]string) {
|
||||
|
||||
Reference in New Issue
Block a user