mirror of
https://github.com/elastic/logstash.git
synced 2025-06-28 09:46:03 -04:00
introduces two rake tasks: `rake artifact:docker_oss` and `rake artifact:docker`, which will create the docker images of the OSS and non OSS packages. These tasks depend on the tar artifacts being built. Also `rake artifact:all` has been modified to also call these two tasks. most code was moved from https://github.com/elastic/logstash-docker/
15 lines
684 B
Python
15 lines
684 B
Python
from .fixtures import logstash
|
|
|
|
|
|
def test_labels(logstash):
|
|
labels = logstash.docker_metadata['Config']['Labels']
|
|
assert labels['org.label-schema.name'] == 'logstash'
|
|
assert labels['org.label-schema.schema-version'] == '1.0'
|
|
assert labels['org.label-schema.url'] == 'https://www.elastic.co/products/logstash'
|
|
assert labels['org.label-schema.vcs-url'] == 'https://github.com/elastic/logstash'
|
|
assert labels['org.label-schema.vendor'] == 'Elastic'
|
|
assert labels['org.label-schema.version'] == logstash.tag
|
|
if logstash.image_flavor == 'oss':
|
|
assert labels['license'] == 'Apache-2.0'
|
|
else:
|
|
assert labels['license'] == 'Elastic License'
|