| /* |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| */ |
| |
| package services |
| |
| import ( |
| "testing" |
| |
| "github.com/apache/incubator-devlake/core/plugin" |
| ae "github.com/apache/incubator-devlake/plugins/ae/impl" |
| bamboo "github.com/apache/incubator-devlake/plugins/bamboo/impl" |
| bitbucket "github.com/apache/incubator-devlake/plugins/bitbucket/impl" |
| customize "github.com/apache/incubator-devlake/plugins/customize/impl" |
| dbt "github.com/apache/incubator-devlake/plugins/dbt/impl" |
| dora "github.com/apache/incubator-devlake/plugins/dora/impl" |
| feishu "github.com/apache/incubator-devlake/plugins/feishu/impl" |
| gitee "github.com/apache/incubator-devlake/plugins/gitee/impl" |
| gitextractor "github.com/apache/incubator-devlake/plugins/gitextractor/impl" |
| github "github.com/apache/incubator-devlake/plugins/github/impl" |
| githubGraphql "github.com/apache/incubator-devlake/plugins/github_graphql/impl" |
| gitlab "github.com/apache/incubator-devlake/plugins/gitlab/impl" |
| icla "github.com/apache/incubator-devlake/plugins/icla/impl" |
| jenkins "github.com/apache/incubator-devlake/plugins/jenkins/impl" |
| jira "github.com/apache/incubator-devlake/plugins/jira/impl" |
| org "github.com/apache/incubator-devlake/plugins/org/impl" |
| pagerduty "github.com/apache/incubator-devlake/plugins/pagerduty/impl" |
| refdiff "github.com/apache/incubator-devlake/plugins/refdiff/impl" |
| slack "github.com/apache/incubator-devlake/plugins/slack/impl" |
| sonarqube "github.com/apache/incubator-devlake/plugins/sonarqube/impl" |
| starrocks "github.com/apache/incubator-devlake/plugins/starrocks/impl" |
| tapd "github.com/apache/incubator-devlake/plugins/tapd/impl" |
| teambition "github.com/apache/incubator-devlake/plugins/teambition/impl" |
| trello "github.com/apache/incubator-devlake/plugins/trello/impl" |
| webhook "github.com/apache/incubator-devlake/plugins/webhook/impl" |
| zentao "github.com/apache/incubator-devlake/plugins/zentao/impl" |
| "github.com/apache/incubator-devlake/test/helper" |
| "github.com/stretchr/testify/require" |
| ) |
| |
| func TestStartup(t *testing.T) { |
| client := helper.StartDevLakeServer(t, loadGoPlugins()) |
| projects := client.ListProjects() |
| require.Equal(t, 0, int(projects.Count)) |
| } |
| |
| func loadGoPlugins() []plugin.PluginMeta { |
| return []plugin.PluginMeta{ |
| ae.AE{}, |
| bamboo.Bamboo{}, |
| bitbucket.Bitbucket{}, |
| customize.Customize{}, |
| dbt.Dbt{}, |
| dora.Dora{}, |
| feishu.Feishu{}, |
| gitee.Gitee{}, |
| gitextractor.GitExtractor{}, |
| github.Github{}, |
| githubGraphql.GithubGraphql{}, |
| gitlab.Gitlab{}, |
| icla.Icla{}, |
| jenkins.Jenkins{}, |
| jira.Jira{}, |
| org.Org{}, |
| pagerduty.PagerDuty{}, |
| refdiff.RefDiff{}, |
| slack.Slack{}, |
| sonarqube.Sonarqube{}, |
| starrocks.StarRocks{}, |
| tapd.Tapd{}, |
| teambition.Teambition{}, |
| trello.Trello{}, |
| webhook.Webhook{}, |
| zentao.Zentao{}, |
| } |
| } |