diff --git a/.github/workflows/accessTests.yml b/.github/workflows/accessTests.yml index c4e863b4d..26d2eac7f 100644 --- a/.github/workflows/accessTests.yml +++ b/.github/workflows/accessTests.yml @@ -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 diff --git a/.github/workflows/artifactoryTests.yml b/.github/workflows/artifactoryTests.yml index 304ffebb9..eb8327db2 100644 --- a/.github/workflows/artifactoryTests.yml +++ b/.github/workflows/artifactoryTests.yml @@ -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 diff --git a/.github/workflows/npmTests.yml b/.github/workflows/npmTests.yml index 16861d26d..c4bb2090f 100644 --- a/.github/workflows/npmTests.yml +++ b/.github/workflows/npmTests.yml @@ -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 diff --git a/utils/tests/utils.go b/utils/tests/utils.go index 91f3cdd6b..5babf5a10 100644 --- a/utils/tests/utils.go +++ b/utils/tests/utils.go @@ -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")