Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions lib/schema_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ def validate_compose_include(self, value):

return value

def valid_service_types(self, value):
if value != 'container':
raise SchemaError(f"{value} is not 'container'")
return value


def validate_networks_no_invalid_chars(self, value):
if isinstance(value, list):
for item in value:
Expand Down Expand Up @@ -105,7 +99,6 @@ def check_usage_scenario(self, usage_scenario):
Optional('restart'): str, # is part of compose. we ignore it as GMT has own orchestration
Optional('expose'): [str, int], # is part of compose. we ignore it as it is non functionaly anyway
Optional('init'): bool,
Optional('type'): Use(self.valid_service_types),
Optional('image'): And(str, Use(self.not_empty)),
Optional('build'): Or(
And(str, Use(self.not_empty)),
Expand Down
1 change: 0 additions & 1 deletion tests/data/bare-metal/usage_scenario.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ description: Run GMT Tests inside systemd and DinD compatible sysbox-runc contai

services:
ubuntu-systemd-docker:
type: container
image: greencoding/ubuntu-systemd-docker

flow:
Expand Down
1 change: 0 additions & 1 deletion tests/data/bare-metal/usage_scenario_enterprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ description: Run GMT Tests inside systemd and DinD compatible sysbox-runc contai

services:
ubuntu-systemd-docker:
type: container
image: greencoding/ubuntu-systemd-docker

flow:
Expand Down
2 changes: 0 additions & 2 deletions tests/data/metrics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ description: test

services:
test-container:
type: container
image: alpine
setup-commands:
- command: apk add stress-ng

net-container:
type: container
image: alpine
setup-commands:
- command: apk add curl
Expand Down
2 changes: 0 additions & 2 deletions tests/data/stress-application/usage_scenario.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ networks:

services:
ubuntu-stress:
type: container
image: gcb_stress
networks:
- network-for-pytests
Expand All @@ -24,7 +23,6 @@ services:
dockerfile: Dockerfile

ubuntu-stress-2:
type: container
image: gcb_stress # this will reuse the image earlier built
networks:
- network-for-pytests
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/basic_stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: test

services:
test-container:
type: container
image: gcb_stress
build:
context: ../stress-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/basic_stress_with_variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: test

services:
test-container:
type: container
image: gcb_stress
build:
context: ../stress-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/capture_logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: Capture logs from stdout and sterr

services:
test-container:
type: container
image: alpine
setup-commands:
- command: echo "Test log from setup-commands"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: Test handling of invalid UTF-8 character in log output

services:
test-container:
type: container
image: alpine
setup-commands:
- command: 'printf "Setup log with invalid UTF-8 character: \xff embedded\n"'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: Test handling of null bytes in log output

services:
test-container:
type: container
image: alpine
setup-commands:
- command: 'printf "Setup log with null byte: \x00 embedded\n"'
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/cmd_stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ description: test

services:
test-container:
type: container
image: gcb_stress
build:
context: ../stress-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/dependency_collection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: Test Dependency Resolving

services:
test-container:
type: container
image: greencoding/gcb_playwright:v20
setup-commands:
- shell: bash
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/entrypoint_empty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: test

services:
test-container:
type: container
image: gcb_stress_entrypoint # image with an endpoint
build:
context: ../entrypoint-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/entrypoint_script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: test

services:
test-container:
type: container
image: gcb_stress_entrypoint # image with an endpoint
build:
context: ../entrypoint-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/entrypoint_with_command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: test

services:
test-container:
type: container
image: gcb_stress_entrypoint # image with an endpoint
build:
context: ../entrypoint-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/env_vars_stress_allowed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ description: test

services:
test-container:
type: container
image: gcb_stress
build:
context: ../stress-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/env_vars_stress_forbidden.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: test

services:
test-container:
type: container
image: gcb_stress
build:
context: ../stress-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/import_one_services.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
test-container:
type: container
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/internal_network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ networks:

services:
test-container:
type: container
image: alpine/curl
networks:
- gmt-test-network
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/labels_stress_allowed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: test

services:
test-container:
type: container
image: gcb_stress
build:
context: ../stress-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/labels_stress_forbidden.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: test

services:
test-container:
type: container
image: gcb_stress
build:
context: ../stress-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/metric_providers_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ services:
command: sh

stress-container:
type: container
image: gcb_stress
build:
context: ../stress-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/network_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ networks:

services:
test-container:
type: container
image: gcb_stress
build:
context: ../stress-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/network_host_create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: test

services:
test-container:
type: container
image: gcb_stress
build:
context: ../stress-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/network_host_join.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: test

services:
test-container:
type: container
image: gcb_stress
build:
context: ../stress-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/network_stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ networks:

services:
test-container:
type: container
image: gcb_stress
build:
context: ../stress-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/noop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: Testing Noop

services:
test-container:
type: container
image: alpine

flow:
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/port_bindings_stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ description: test

services:
test-container:
type: container
image: gcb_stress
build:
context: ../stress-application
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/resource_limits_cpu_none.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ description: test
services:

test-container-memory-int:
type: container
image: alpine
cpus: null

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ description: test
services:

test-container-memory-int:
type: container
image: alpine
deploy:
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ description: test
services:

test-container-memory-int:
type: container
image: alpine
deploy:
resources:
Expand Down
12 changes: 0 additions & 12 deletions tests/data/usage_scenarios/resource_limits_good.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,20 @@ description: test

services:
test-container-only-cpu:
type: container
image: alpine
deploy:
resources:
limits:
cpus: "1.2"

test-container-only-memory:
type: container
image: alpine
deploy:
resources:
limits:
memory: "100MB"

test-container-both:
type: container
image: alpine
deploy:
resources:
Expand All @@ -30,7 +27,6 @@ services:
memory: "10M"

test-container-cpu-float:
type: container
image: alpine
deploy:
resources:
Expand All @@ -39,7 +35,6 @@ services:
memory: "10M"

test-container-cpu-int:
type: container
image: alpine
deploy:
resources:
Expand All @@ -48,7 +43,6 @@ services:
memory: "10M"

test-container-memory-int:
type: container
image: alpine
deploy:
resources:
Expand All @@ -58,7 +52,6 @@ services:


test-container-memory-float:
type: container
image: alpine
deploy:
resources:
Expand All @@ -67,12 +60,10 @@ services:
memory: 10000001.23

test-container-limits-partial:
type: container
image: alpine
deploy: # allowed to be None

test-container-cpu-and-memory-in-both:
type: container
image: alpine
deploy:
resources:
Expand All @@ -83,20 +74,17 @@ services:
mem_limit: "10M"

test-container-limit-only-service-level:
type: container
image: alpine
cpus: 1
mem_limit: "10M"


test-container-limit-only-service-level-memory-int:
type: container
image: alpine
cpus: 1
mem_limit: 11000000

test-container-limit-only-service-level-memory-float:
type: container
image: alpine
cpus: 1
mem_limit: 10000001.23
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ description: test
services:

test-container-memory-int:
type: container
image: alpine
deploy:
resources:
Expand Down
1 change: 0 additions & 1 deletion tests/data/usage_scenarios/resource_limits_memory_none.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ description: test
services:

test-container-memory-int:
type: container
image: alpine
deploy:
resources:
Expand Down
2 changes: 0 additions & 2 deletions tests/data/usage_scenarios/resource_limits_shm_good.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: Testing SHM

services:
test-container:
type: container
image: alpine
deploy:
resources:
Expand All @@ -16,7 +15,6 @@ services:
shm_size: "30MB"

test-container-2:
type: container
image: alpine
deploy:
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: test

services:
test-container:
type: container
image: gcb_stress
build:
context: ../../stress-application
Expand Down
Loading
Loading