Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* configuring app for test coverage Signed-off-by: Ceridwen Driskill <cdriskill@google.com> * update docker files to build and run with coverage Signed-off-by: Ceridwen Driskill <cdriskill@google.com> * updating tests to account for test coverage output Signed-off-by: Ceridwen Driskill <cdriskill@google.com> * adding e2e coverage to github actions in theory Signed-off-by: Ceridwen Driskill <cdriskill@google.com> * removing /pkg/generated/ from coverage report Signed-off-by: Ceridwen Driskill <cdriskill@google.com> * lint Signed-off-by: Ceridwen Driskill <cdriskill@google.com> * separate port for server test killswitch Signed-off-by: Ceridwen Driskill <cdriskill@google.com> * hide killswitch flag Signed-off-by: Ceridwen Driskill <cdriskill@google.com> * pin gocovmerge, factor out stripCoverageOutput Signed-off-by: Ceridwen Driskill <cdriskill@google.com> Signed-off-by: Ceridwen Driskill <cdriskill@google.com>
- Loading branch information
Ceridwen Driskill
committed
Sep 24, 2022
1 parent
7652a61
commit f989b43
Showing
12 changed files
with
185 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// Copyright 2022 The Sigstore Authors. | ||
// | ||
// Licensed 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 main | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/sigstore/rekor/cmd/rekor-cli/app" | ||
) | ||
|
||
func TestCover(t *testing.T) { | ||
app.Execute() | ||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// Copyright 2022 The Sigstore Authors. | ||
// | ||
// Licensed 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 main | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/sigstore/rekor/cmd/rekor-server/app" | ||
) | ||
|
||
func TestCover(t *testing.T) { | ||
app.Execute() | ||
} |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# | ||
# Copyright 2022 The Sigstore Authors. | ||
# | ||
# Licensed 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. | ||
|
||
version: '3.4' | ||
services: | ||
rekor-server: | ||
build: | ||
context: . | ||
target: "test" | ||
command: [ | ||
"rekor-server", | ||
"-test.coverprofile=rekor-server.cov", | ||
"serve", | ||
"--trillian_log_server.address=trillian-log-server", | ||
"--trillian_log_server.port=8090", | ||
"--redis_server.address=redis-server", | ||
"--redis_server.port=6379", | ||
"--rekor_server.address=0.0.0.0", | ||
"--rekor_server.signer=memory", | ||
"--enable_attestation_storage", | ||
"--attestation_storage_bucket=file:///var/run/attestations", | ||
"--enable_killswitch", | ||
] | ||
ports: | ||
- "3000:3000" | ||
- "2112:2112" | ||
- "2345:2345" |
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
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