MCPcopy Index your code
hub / github.com/citrusframework/yaks

github.com/citrusframework/yaks @0.20.0-202404220034

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.20.0-202404220034 ↗ · + Follow
3,160 symbols 9,388 edges 409 files 1,015 documented · 32%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

YAKS logo

Maven Central build nightly Licensed under Apache License version 2.0 Chat on Zulip

What is YAKS!?

YAKS is a framework to enable Cloud Native BDD testing on Kubernetes! Cloud Native here means that your tests execute as Kubernetes PODs.

As a user you can run tests by creating a Test custom resource on your favorite Kubernetes based cloud provider. Once the YAKS operator is installed it will listen for custom resources and automatically prepare a test runtime that runs the test as part of the cloud infrastructure.

Tests in YAKS follow the BDD (Behavior Driven Development) concept and represent feature specifications written in Gherkin syntax.

As a framework YAKS provides a set of predefined Cucumber steps which help you to connect with different messaging transports (Http REST, JMS, Kafka, Knative eventing) and verify message data with assertions on the header and body content.

YAKS adds its functionality on top of on Citrus for connecting to different endpoints as a client and/or server.

Read more about YAKS in the reference manual

Getting started

Assuming you have a Kubernetes playground and that you are connected to a namespace on that cluster just write a helloworld.feature BDD file with the following content:

helloworld.feature

Feature: Hello

  Scenario: Print hello message
    Given print 'Hello from YAKS!'

You can then execute the following command using the YAKS CLI tool:

yaks run helloworld.feature

This runs the test immediately on the current namespace in your connected Kubernetes cluster. Nothing else is needed.

Please continue reading the documentation and learn how to install and get started working with YAKS.

For YAKS developers

Requirements:

  • Go 1.18+
  • Operator SDK 0.19.4+
  • Maven 3.8.4+
  • Git client

You can build the YAKS project and get the yaks CLI by running:

make build

If you want to build the operator image locally for development in Minishift for instance, then:

# Build binaries and images
eval $(minishift docker-env)
make clean images-no-test

If the operator pod is running, just delete it to let it grab the new image.

oc delete pod yaks

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 2,325
Class 348
Function 320
Struct 105
Interface 38
Enum 11
FuncType 8
TypeAlias 5

Languages

Java74%
Go26%

Modules by API surface

java/steps/yaks-camel-k/src/main/java/org/citrusframework/yaks/camelk/model/IntegrationStatus.java109 symbols
java/steps/yaks-camel-k/src/main/java/org/citrusframework/yaks/camelk/model/KameletSpec.java81 symbols
java/steps/yaks-camel-k/src/main/java/org/citrusframework/yaks/camelk/model/IntegrationSpec.java70 symbols
java/steps/yaks-http/src/main/java/org/citrusframework/yaks/http/HttpServerSteps.java49 symbols
java/steps/yaks-camel-k/src/main/java/org/citrusframework/yaks/camelk/model/PipeSpec.java43 symbols
pkg/apis/yaks/v1alpha1/zz_generated.deepcopy.go42 symbols
java/steps/yaks-kubernetes/src/main/java/org/citrusframework/yaks/kubernetes/KubernetesSteps.java41 symbols
java/steps/yaks-http/src/main/java/org/citrusframework/yaks/http/HttpClientSteps.java40 symbols
java/steps/yaks-kubernetes/src/main/java/org/citrusframework/yaks/kubernetes/actions/KubernetesActionBuilder.java39 symbols
java/steps/yaks-camel/src/main/java/org/citrusframework/yaks/camel/CamelSteps.java39 symbols
java/steps/yaks-camel-k/src/main/java/org/citrusframework/yaks/camelk/actions/integration/CreateIntegrationAction.java37 symbols
java/steps/yaks-camel-k/src/main/java/org/citrusframework/yaks/camelk/KameletSteps.java30 symbols

Datastores touched

testdbDatabase · 1 repos
(mongodb)Database · 1 repos

For agents

$ claude mcp add yaks \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page