Skip to content

Commit

Permalink
Fix Access tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi committed Oct 21, 2024
1 parent 04bd24e commit a3aaa4d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/accessTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,10 @@ jobs:
- name: Setup Go with cache
uses: jfrog/.github/actions/install-go-with-cache@main

- name: Install local Artifactory
uses: jfrog/.github/actions/install-local-artifactory@main
with:
RTLIC: ${{ secrets.RTLIC }}

- name: Run Access tests
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.access --jfrog.url=${{ secrets.PLATFORM_URL }} --jfrog.adminToken=${{ secrets.PLATFORM_ADMIN_TOKEN }} --jfrog.user=${{ secrets.PLATFORM_USER }} --ci.runId=${{ runner.os }}-access
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.access --jfrog.adminToken=$JFROG_TESTS_LOCAL_ACCESS_TOKEN
2 changes: 1 addition & 1 deletion .github/workflows/artifactoryTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
RTLIC: ${{ secrets.RTLIC }}

- name: Run Artifactory tests
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.artifactory
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.artifactory --jfrog.adminToken=$JFROG_TESTS_LOCAL_ACCESS_TOKEN
if: ${{ matrix.suite == 'artifactory' }}

- name: Run Artifactory projects tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npmTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
RTLIC: ${{ secrets.RTLIC }}

- name: Run npm tests
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.npm
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.npm --jfrog.adminToken=$JFROG_TESTS_LOCAL_ACCESS_TOKEN
2 changes: 1 addition & 1 deletion utils/tests/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var (
)

func init() {
JfrogUrl = flag.String("jfrog.url", "http://localhost:8081/", "JFrog platform url")
JfrogUrl = flag.String("jfrog.url", "http://localhost:8082/", "JFrog platform url")
JfrogUser = flag.String("jfrog.user", "admin", "JFrog platform username")
JfrogPassword = flag.String("jfrog.password", "password", "JFrog platform password")
JfrogSshKeyPath = flag.String("jfrog.sshKeyPath", "", "Ssh key file path")
Expand Down

0 comments on commit a3aaa4d

Please sign in to comment.