Skip to content

Commit

Permalink
PMM-12557 Automate PMM3 builds - update api-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
surbhat1595 committed Nov 14, 2023
1 parent 259db25 commit a3e17ac
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions api-tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ build:
go test -c -v ./server

run:
go test -count=1 -p 1 -v ./... 2>&1 | tee pmm-api-tests-output.txt
cat pmm-api-tests-output.txt | bin/go-junit-report > pmm-api-tests-junit-report.xml
go test -count=1 -p 1 -v ./... 2>&1 | tee pmm3-api-tests-output.txt
cat pmm3-api-tests-output.txt | bin/go-junit-report > pmm3-api-tests-junit-report.xml

run-race:
go test -count=1 -p 1 -v -race ./... 2>&1 | tee pmm-api-tests-output.txt
cat pmm-api-tests-output.txt | bin/go-junit-report > pmm-api-tests-junit-report.xml
go test -count=1 -p 1 -v -race ./... 2>&1 | tee pmm3-api-tests-output.txt
cat pmm3-api-tests-output.txt | bin/go-junit-report > pmm3-api-tests-junit-report.xml

clean:
rm -f ./pmm-api-tests-output.txt
rm -f ./pmm-api-tests-junit-report.xml
rm -f ./pmm3-api-tests-output.txt
rm -f ./pmm3-api-tests-junit-report.xml
2 changes: 1 addition & 1 deletion api-tests/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pmm-api-tests
# pmm3-api-tests

API tests for PMM 2.x

Expand Down
2 changes: 1 addition & 1 deletion api-tests/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func TestString(t TestingT, name string) string {
t.Helper()

n := rand.Int() //nolint:gosec
return fmt.Sprintf("pmm-api-tests/%s/%s/%s/%d", Hostname, t.Name(), name, n)
return fmt.Sprintf("pmm3-api-tests/%s/%s/%s/%d", Hostname, t.Name(), name, n)
}

// AssertAPIErrorf check that actual API error equals expected.
Expand Down
4 changes: 2 additions & 2 deletions managed/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ crosscover.out
packages.png
*.zip
*.test
pmm-api-tests-output.txt
pmm-api-tests-junit-report.xml
pmm3-api-tests-output.txt
pmm3-api-tests-junit-report.xml
.env
.env.*
.dev.*
Expand Down

0 comments on commit a3e17ac

Please sign in to comment.