Skip to content
Repo for the springboot based data set APIs
Java Shell Batchfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
.license
codequality/checkstyle
data-sets-api-server
data-sets-model
data-sets-tests
data-sets-zowe-server-package
dco_signoffs
gradle
scripts
.gitignore
.owasp-dependency-scan-suppression.xml
Jenkinsfile
LICENSE
README.md
bootstrap_gradlew.bat
bootstrap_gradlew.sh
build.gradle
data-sets.ppf
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

Explorer Data Sets API

Quality Gate Status

Build

./gradlew build

SonarQube Static Code Scan

./gradlew --info sonarqube -Psonar.host.url=${SONAR_HOST_URL}

*Note: please replace the ${SONAR_HOST_URL} variable in above with your SonarQube server URL.

Test

Unit Test

./gradlew test

Integration Test

  • Generate test certificate

    keytool -genkeypair -keystore localhost.keystore.p12 -storetype PKCS12 \
        -storepass password -alias localhost -keyalg RSA -keysize 2048 -validity 99999 \
        -dname \"CN=Zowe Explorer Data Sets API Default Certificate, OU=Zowe API Squad, O=Zowe, L=Hursley, ST=Hampshire, C=UK\" \
        -ext san=dns:localhost,ip:127.0.0.1
    
  • Start test server

    java -Xms16m -Xmx512m -Dibm.serversocket.recover=true -Dfile.encoding=UTF-8 \
      -Djava.io.tmpdir=/tmp \
      -Dserver.port=8443 \
      -Dserver.ssl.keyAlias=localhost \
      -Dserver.ssl.keyStore=localhost.keystore.p12 \
      -Dserver.ssl.keyStorePassword=password \
      -Dserver.ssl.keyStoreType=PKCS12 \
      -Dzosmf.httpsPort=${ZOSMF_PORT} \
      -Dzosmf.ipAddress=${ZOSMF_HOST} \
      -jar $(ls -1 data-sets-api-server/build/libs/data-sets-api-server-*-boot.jar) &
    

    *Note: please replace the ${ZOSMF_PORT} and ${ZOSMF_HOST} variable in above with your z/OSMF server information.

  • Run integration test

    ./gradlew runIntegrationTests \
      -Pserver.host=localhost \
      -Pserver.port=8443 \
      -Pserver.username=${USERNAME} \
      -Pserver.password=${PASSWORD}
    

    *Note: please replace the ${USERNAME} and ${PASSWORD} variable in above with your z/OSMF server information.

Package and Deploy

# packaging for Zowe
./gradlew packageDataSetsApiServer
# deploy artifact
./gradlew publishArtifacts --info -Pdeploy.username=${USERNAME} -Pdeploy.password=${PASSWORD}

*Note: please replace the ${USERNAME} and ${PASSWORD} variable in above with your artifactory account information.

You can’t perform that action at this time.