Skip to content

Add licensing #7

@Tschasmine

Description

@Tschasmine

A valid license is required upon pressing the start button in the G30L0 Infosystem and upon pressing the yg30l0calcgeoloc button in the Customer screen.
Use the [ESDK client api] (https://documentation.abas.cloud/en/esdk/#_use_the_esdk_client_api) for validating the license.

To make the tests run a cloud-connect installation is necessary, for Travis CI add the following to the .travis.yml file:

- mkdir -p cloud-connect
- wget -qO- 'https://esdk-hybrid.eu.abas.cloud/cloud-connect.tgz' | tar xfz - --directory cloud-connect
- sed -e "s/hostname/$(hostname)/g" ci/configuration.json > cloud-connect/configuration.json
- cloud-connect/setup.sh -n --tenant-configuration $TENANT_SECRET
- cloud-connect/run.sh

Also add the file configuration.json to the ci directory within your project:

{
  "version": 1,
  "installation_mode": 2,
  "tenant": "esdk-hybrid",
  "domain": "eu.abas.cloud",
  "aws_region": "eu-central-1",
  "stage": "prod",
  "options": {
    "useSSH": true,
    "docker_host": "hostname",
    "cloud_connect_host": "hostname",
    "awslogsEnabled": "true"
  },
  "apps": {
    "screenFetcher": {
      "install": false,
      "generate_all_screens": false
    }
  },
  "add_ons": {
    "fts": {
      "install": false
    }
  },
  "services": {
    "environment": {},
    "license_server": {
      "enabled": true
    },
    "jwt": {
      "port": 19951,
      "userSyncMode": "full",
      "workspaces": "26a",
      "permissions": "26"
    },
    "workflow": {
      "host": "localhost",
      "port": 8088,
      "enabled": false
    },
    "bapps": {
      "host": "localhost",
      "port": 9990,
      "enabled": false
    },
    "search": {
      "host": "localhost",
      "port": 9200,
      "enabled": false
    },
    "erp": {
      "host": "hostname",
      "port": 6560,
      "user": null,
      "ssh": {
        "user": "s3",
        "port": 2205
      },
      "password": "sy"
    }
  }
}

Due to an open issue you have to add the following lines to your build.gradle file in order to have the test coverage calculated correctly:

test {
	jacoco {
		excludes += ['**/*']
	}
}

calculateCodeCoverage {
	...
	afterEvaluate {
		classDirectories = files(classDirectories.files.collect {
			fileTree(it).matching {
				include "de/abas/esdk/g30l0/**/*.class"
			}
		})
	}
}

codeCoverageVerification {
	afterEvaluate {
		classDirectories = files(classDirectories.files.collect {
			fileTree(it).matching {
				include "de/abas/esdk/g30l0/**/*.class"
			}
		})
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions