feat(tests): Run tests using fluence cli [fixes DXJ-225] (#165)

* feat(tests): Run tests using fluence cli [DXJ-225]

* fix: remove .fluence from .gitignore

* Update example/fluence.yaml

Co-authored-by: Aleksey Proshutisnkiy <justprosh@users.noreply.github.com>

* fix: update tests

* fix: fix tests

* fix: set default key

* chore: update aqua to 0.9.2 in fluence.yml of aqua-tests

Co-authored-by: Aleksey Proshutisnkiy <justprosh@users.noreply.github.com>
Co-authored-by: folex <0xdxdy@gmail.com>
Co-authored-by: shamsartem
This commit is contained in:
shamsartem 2023-01-18 11:28:51 +01:00 committed by GitHub
parent 0ef980bf9e
commit 269373f0ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 24679 additions and 1299 deletions

View File

@ -144,8 +144,8 @@ jobs:
attempt_delay: 10000
current_path: ${{ github.workspace}}/aqua-tests
- name: Print aqua version
run: pytest -s test_aqua_version.py
- name: Print Fluence CLI version
run: pytest -s test_fluence_cli_version.py
working-directory: aqua-tests
- name: Run aqua tests

View File

@ -0,0 +1,18 @@
# yaml-language-server: $schema=schemas/project-secrets.yaml.json
# Defines project's secret keys that are used only in the scope of this particular Fluence project. You can manage project's keys using commands from `fluence key` group of commands
# Documentation: https://github.com/fluencelabs/fluence-cli/tree/main/docs/configs/project-secrets.md
version: 0
keyPairs:
[
{
peerId: 12D3KooWAtJ3RXGiW2WzZYUk7XxAEyfwLdqJHsPXmb7xd1dY7uZK,
secretKey: BNidntUryx+hxr7NK2z9nci23sMn3fURB6bTH1K2Ll4=,
publicKey: CAESIA/dWDmfLpI+PmldVAgQblramknRSyfivJ5x/Y0W6EQC,
name: key
}
]
defaultKeyPairName: key

View File

@ -0,0 +1,89 @@
{
"type": "object",
"$id": "https://fluence.dev/schemas/app.yaml",
"title": "app.yaml",
"description": "Defines what exactly is already deployed and where. This config is automatically generated by Fluence CLI after you deploy services defined in [fluence.yaml](./fluence.md) using `fluence deploy` or remove previously deployed services using `fluence remove`. In most of the cases you are not expected to modify this by hand",
"properties": {
"services": {
"type": "object",
"title": "Services",
"description": "A map of the deployed services",
"additionalProperties": {
"type": "object",
"title": "Deployment results",
"description": "Service names as keys and Deployment results as values",
"additionalProperties": {
"title": "A list of deployed services",
"type": "array",
"items": {
"type": "object",
"title": "Deployed service info",
"properties": {
"peerId": {
"type": "string"
},
"serviceId": {
"type": "string"
},
"blueprintId": {
"type": "string"
},
"keyPairName": {
"type": "string"
}
},
"required": [
"peerId",
"serviceId",
"blueprintId",
"keyPairName"
]
}
},
"required": []
},
"required": []
},
"timestamp": {
"type": "string",
"description": "ISO timestamp of the time when the services were deployed"
},
"relays": {
"title": "Relays",
"description": "Relays that you can connect to to find the peers where services are deployed",
"type": [
"string",
"array",
"null"
],
"oneOf": [
{
"type": "string",
"title": "Network name",
"enum": [
"kras",
"stage",
"testnet"
]
},
{
"type": "array",
"title": "Multi addresses",
"items": {
"type": "string"
}
}
],
"nullable": true
},
"version": {
"type": "number",
"const": 3
}
},
"required": [
"version",
"services",
"timestamp"
]
}

View File

@ -0,0 +1,29 @@
{
"type": "object",
"$id": "https://fluence.dev/schemas/fluence-lock.yaml",
"title": "fluence-lock.yaml",
"description": "Defines a lock file for Fluence Project dependencies. When dependencies are installed - their exact versions are saved here.",
"properties": {
"npm": {
"type": "object",
"title": "npm dependencies",
"description": "A map of the exact npm dependency versions. CLI ensures dependencies are installed each time you run aqua",
"required": [],
"nullable": true
},
"cargo": {
"type": "object",
"title": "Cargo dependencies",
"description": "A map of the exact cargo dependency versions. CLI ensures dependencies are installed each time you run commands that depend on Marine or Marine REPL",
"required": [],
"nullable": true
},
"version": {
"type": "number",
"const": 0
}
},
"required": [
"version"
]
}

View File

@ -0,0 +1,287 @@
{
"type": "object",
"properties": {
"services": {
"title": "Services",
"description": "A map with service names as keys and Service configs as values. You can have any number of services listed here (According to JSON schema they are called 'additionalProperties') as long as service name keys start with a lowercase letter and contain only letters numbers and underscores. You can use `fluence service add` command to add a service to this config",
"type": "object",
"additionalProperties": {
"title": "Service config",
"description": "Service names as keys (must start with a lowercase letter and contain only letters numbers and underscores) and Service config (defines where the service is and how to deploy it) as values",
"type": "object",
"properties": {
"get": {
"type": "string",
"description": "Path to service directory or URL to the tar.gz archive with the service"
},
"deploy": {
"type": "array",
"title": "Deployment list",
"description": "List of deployments for the particular service",
"items": {
"type": "object",
"title": "Deployment",
"description": "A small config for a particular deployment. You can have specific overrides for each and specific deployment properties like count, distribution, etc.",
"properties": {
"keyPairName": {
"type": "string",
"nullable": true,
"description": "The name of the Key Pair to use. It is resolved in the following order (from the lowest to the highest priority):\n1. \"defaultKeyPairName\" property from user-secrets.yaml\n1. \"defaultKeyPairName\" property from project-secrets.yaml\n1. \"keyPairName\" property from the top level of fluence.yaml\n1. \"keyPairName\" property from the \"services\" level of fluence.yaml\n1. \"keyPairName\" property from the individual \"deploy\" property item level of fluence.yaml"
},
"deployId": {
"type": "string",
"description": "This id can be used in Aqua to access actually deployed peer and service ids. The ID must start with a lowercase letter and contain only letters, numbers, and underscores."
},
"count": {
"type": "number",
"minimum": 1,
"nullable": true,
"description": "Number of services to deploy. Default: 1 or if \"peerIds\" property is provided - exactly the number of peerIds"
},
"peerId": {
"type": "string",
"nullable": true,
"description": "Peer id or peer id name to deploy to. Default: Peer ids from the \"relay\" property of fluence.yaml are selected for each deploy. Named peerIds can be listed in \"peerIds\" property of fluence.yaml)"
},
"peerIds": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"title": "Peer ids",
"description": "Peer ids or peer id names to deploy to. Overrides \"peerId\" property. Named peerIds can be listed in \"peerIds\" property of fluence.yaml)"
},
"distribution": {
"type": "string",
"enum": [
"even",
"random"
],
"nullable": true,
"description": "\"even\" distribution is used by default, means that the services will be deployed evenly across the listed peers. \"random\" distribution means that the services will be deployed randomly across the listed peers."
},
"overrideModules": {
"type": "object",
"title": "Overrides",
"description": "A map of modules to override",
"additionalProperties": {
"type": "object",
"title": "Module overrides",
"description": "Module names as keys and overrides for the module config as values",
"properties": {
"type": {
"type": "string",
"enum": [
"rust",
"compiled"
],
"nullable": true,
"default": "compiled",
"description": "Module type \"compiled\" is for the precompiled modules. Module type \"rust\" is for the source code written in rust which can be compiled into a Marine module"
},
"name": {
"type": "string",
"description": "\"name\" property from the Cargo.toml (for module type \"rust\") or name of the precompiled .wasm file (for module type \"compiled\")",
"nullable": true
},
"maxHeapSize": {
"type": "string",
"nullable": true,
"description": "Max size of the heap that a module can allocate in format: [number][whitespace?][specificator?] where ? is an optional field and specificator is one from the following (case-insensitive):\n\nK, Kb - kilobyte\n\nKi, KiB - kibibyte\n\nM, Mb - megabyte\n\nMi, MiB - mebibyte\n\nG, Gb - gigabyte\n\nGi, GiB - gibibyte\n\nCurrent limit is 4 GiB"
},
"loggerEnabled": {
"type": "boolean",
"nullable": true,
"description": "Set true to allow module to use the Marine SDK logger"
},
"loggingMask": {
"type": "number",
"nullable": true,
"description": "Used for logging management. Example:\n```rust\nconst TARGET_MAP: [(&str, i64); 4] = [\n(\"instruction\", 1 << 1),\n(\"data_cache\", 1 << 2),\n(\"next_peer_pks\", 1 << 3),\n(\"subtree_complete\", 1 << 4),\n];\npub fn main() {\nuse std::collections::HashMap;\nuse std::iter::FromIterator;\n\nlet target_map = HashMap::from_iter(TARGET_MAP.iter().cloned());\n\nmarine_rs_sdk::WasmLoggerBuilder::new()\n .with_target_map(target_map)\n .build()\n .unwrap();\n}\n#[marine]\npub fn foo() {\nlog::info!(target: \"instruction\", \"this will print if (loggingMask & 1) != 0\");\nlog::info!(target: \"data_cache\", \"this will print if (loggingMask & 2) != 0\");\n}\n```\n"
},
"volumes": {
"type": "object",
"nullable": true,
"required": [],
"title": "Volumes",
"description": "A map of accessible files and their aliases. Aliases should be used in Marine module development because it's hard to know the full path to a file. (This property replaces the legacy \"mapped_dirs\" property so there is no need to duplicate the same paths in \"preopenedFiles\" dir)"
},
"preopenedFiles": {
"type": "array",
"title": "Preopened files",
"description": "A list of files and directories that this module could access with WASI",
"items": {
"type": "string"
},
"nullable": true
},
"envs": {
"type": "object",
"title": "Environment variables",
"nullable": true,
"required": [],
"description": "environment variables accessible by a particular module with standard Rust env API like this: std::env::var(IPFS_ADDR_ENV_NAME).\n\nPlease note that Marine adds three additional environment variables. Module environment variables could be examined with repl"
},
"mountedBinaries": {
"title": "Mounted binaries",
"type": "object",
"nullable": true,
"required": [],
"description": "A map of binary executable files that module is allowed to call. Example: curl: /usr/bin/curl"
},
"version": {
"type": "number",
"const": 0
},
"get": {
"type": "string",
"nullable": true,
"description": "Path to module directory or URL to the tar.gz archive with the module"
}
},
"required": [],
"nullable": true
},
"nullable": true,
"required": []
}
},
"required": [
"deployId"
]
}
},
"keyPairName": {
"type": "string",
"nullable": true,
"description": "The name of the Key Pair to use. It is resolved in the following order (from the lowest to the highest priority):\n1. \"defaultKeyPairName\" property from user-secrets.yaml\n1. \"defaultKeyPairName\" property from project-secrets.yaml\n1. \"keyPairName\" property from the top level of fluence.yaml\n1. \"keyPairName\" property from the \"services\" level of fluence.yaml\n1. \"keyPairName\" property from the individual \"deploy\" property item level of fluence.yaml"
}
},
"required": [
"get",
"deploy"
]
},
"required": [],
"nullable": true
},
"relays": {
"title": "Relays",
"description": "List of Fluence Peer multi addresses or a name of the network. This multi addresses are used for connecting to the Fluence network when deploying. Peer ids from these addresses are also used for deploying in case if you don't specify \"peerId\" or \"peerIds\" property in the deployment config. Default: kras",
"type": [
"string",
"array",
"null"
],
"oneOf": [
{
"type": "string",
"title": "Network name",
"enum": [
"kras",
"stage",
"testnet"
]
},
{
"type": "array",
"title": "Multi addresses",
"items": {
"type": "string"
}
}
],
"nullable": true
},
"peerIds": {
"title": "Peer ids",
"description": "A map of named peerIds. Example:\n\nMY_PEER: 12D3KooWCMr9mU894i8JXAFqpgoFtx6qnV1LFPSfVc3Y34N4h4LS",
"type": "object",
"nullable": true,
"required": [],
"additionalProperties": {
"type": "string",
"description": "Peer id names as keys and the actual peer ids as values"
}
},
"keyPairName": {
"type": "string",
"nullable": true,
"description": "The name of the Key Pair to use. It is resolved in the following order (from the lowest to the highest priority):\n1. \"defaultKeyPairName\" property from user-secrets.yaml\n1. \"defaultKeyPairName\" property from project-secrets.yaml\n1. \"keyPairName\" property from the top level of fluence.yaml\n1. \"keyPairName\" property from the \"services\" level of fluence.yaml\n1. \"keyPairName\" property from the individual \"deploy\" property item level of fluence.yaml"
},
"version": {
"type": "number",
"const": 2
},
"dependencies": {
"type": "object",
"title": "Dependencies",
"description": "A map of dependency versions",
"properties": {
"npm": {
"type": "object",
"title": "npm dependencies",
"description": "A map of npm dependency versions. CLI ensures dependencies are installed each time you run aqua",
"properties": {
"@fluencelabs/aqua": {
"type": "string"
}
},
"required": [
"@fluencelabs/aqua"
]
},
"cargo": {
"type": "object",
"title": "Cargo dependencies",
"description": "A map of cargo dependency versions. CLI ensures dependencies are installed each time you run commands that depend on Marine or Marine REPL",
"properties": {
"marine": {
"type": "string"
},
"mrepl": {
"type": "string"
}
},
"required": []
}
},
"required": [
"npm",
"cargo"
]
},
"aquaInputPath": {
"type": "string",
"nullable": true,
"description": "Path to the aqua file or directory with aqua files that you want to compile by default"
},
"aquaOutputTSPath": {
"type": "string",
"nullable": true,
"description": "Default compilation target dir from aqua to ts"
},
"aquaOutputJSPath": {
"type": "string",
"nullable": true,
"description": "Default compilation target dir from aqua to js. Overrides \"aquaOutputTSPath\" property"
},
"appTSPath": {
"type": "string",
"nullable": true,
"description": "Path to the directory where you want to generate app.ts after deployment. If you run registerApp() function in your typescript code after initializing FluenceJS client you will be able to access ids of the deployed services in aqua"
},
"appJSPath": {
"type": "string",
"nullable": true,
"description": "Path to the directory where you want to generate app.js after deployment. If you run registerApp() function in your javascript code after initializing FluenceJS client you will be able to access ids of the deployed services in aqua"
}
},
"required": [
"version"
],
"$id": "https://fluence.dev/schemas/fluence.yaml",
"title": "fluence.yaml",
"description": "Defines Fluence Project, most importantly - what exactly you want to deploy and how. You can use `fluence init` command to generate a template for new Fluence project"
}

View File

@ -0,0 +1,50 @@
{
"$id": "https://fluence.dev/schemas/project-secrets.yaml",
"title": "project-secrets.yaml",
"type": "object",
"description": "Defines project's secret keys that are used only in the scope of this particular Fluence project. You can manage project's keys using commands from `fluence key` group of commands",
"properties": {
"keyPairs": {
"title": "Key Pairs",
"description": "Key Pairs available for the particular project",
"type": "array",
"items": {
"title": "Key Pair",
"type": "object",
"properties": {
"peerId": {
"type": "string"
},
"secretKey": {
"type": "string"
},
"publicKey": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"peerId",
"secretKey",
"publicKey",
"name"
]
}
},
"defaultKeyPairName": {
"type": "string",
"nullable": true,
"description": "Key pair with this name will be used for the deployment by default. You can override it with flags or by using keyPair properties in fluence.yaml"
},
"version": {
"type": "number",
"const": 0
}
},
"required": [
"version",
"keyPairs"
]
}

View File

@ -4,4 +4,5 @@
- `npm i`
- `pip3 install -r requirements.txt`
- `pip install -U pytest`
- `pytest -n auto`

View File

@ -0,0 +1,9 @@
# yaml-language-server: $schema=.fluence/schemas/fluence-lock.yaml.json
# Defines a lock file for Fluence Project dependencies. When dependencies are installed - their exact versions are saved here.
# Documentation: https://github.com/fluencelabs/fluence-cli/tree/main/docs/configs/fluence-lock.md
version: 0
npm:
"@fluencelabs/aqua": 0.9.2

14
aqua-tests/fluence.yaml Normal file
View File

@ -0,0 +1,14 @@
# yaml-language-server: $schema=.fluence/schemas/fluence.yaml.json
# Defines Fluence Project, most importantly - what exactly you want to deploy and how. You can use `fluence init` command to generate a template for new Fluence project
# Documentation: https://github.com/fluencelabs/fluence-cli/tree/main/docs/configs/fluence.md
version: 2
dependencies:
npm:
"@fluencelabs/aqua": 0.9.2
cargo:
marine: 0.12.5
mrepl: 0.18.8
aquaInputPath: aqua/test.aqua

View File

@ -0,0 +1,13 @@
const {
krasnodar,
stage,
testNet,
} = require('@fluencelabs/fluence-network-environment')
console.log(
JSON.stringify({
krasnodar,
stage,
testnet: testNet,
}),
)

File diff suppressed because it is too large Load Diff

View File

@ -28,6 +28,7 @@
},
"homepage": "https://github.com/fluencelabs/registry",
"devDependencies": {
"@fluencelabs/aqua": "0.9.2"
"@fluencelabs/cli": "0.2.33",
"@fluencelabs/fluence-network-environment": "1.0.13"
}
}

View File

@ -2,4 +2,4 @@ delegator.py==0.1.1
pytest==7.2.1
pytest-xdist==3.1.0
ed25519==1.5
pytest-repeat==0.9.1
pytest-repeat==0.9.1

View File

@ -1,138 +1,159 @@
import delegator
import random
import json
import ed25519
import os
from config import get_local
def get_sk():
return ed25519.create_keypair()[0].to_ascii(encoding="base64").decode("utf-8")
delegator.run("npx fluence dep npm i", block=True)
default_peers = json.loads(delegator.run(
f"node ./getDefaultPeers.js", block=True).out)
def get_relay():
def get_relays():
env = os.environ.get("FLUENCE_ENV")
if env == "local":
peers = get_local()
else:
if env is None:
env = "testnet"
c = delegator.run(f"npx aqua config default_peers {env}", block=True)
peers = c.out.strip().split("\n")
peers = [peer["multiaddr"] for peer in default_peers[env]]
assert len(peers) != 0, c.err
peer = peers[random.randint(0, len(peers) - 1)]
assert len(peer) != 0, c.err
assert len(peers) != 0
return peers
relays = get_relays()
peer_ids = [relay.split("/")[-1] for relay in relays]
def get_random_list_item(ar):
return ar[random.randint(0, len(ar) - 1)]
def get_random_relay():
return get_random_list_item(relays)
return peer
def get_random_peer_id():
addr = get_relay()
return addr.split("/")[-1]
return get_random_list_item(peer_ids)
def run_aqua(func, args, sk, relay=get_relay()):
def get_label():
return ''.join(random.choice('0123456789ABCDEF') for i in range(16))
def run_aqua(func, args, relay=get_random_relay()):
# "a" : arg1, "b" : arg2 .....
data = {chr(97 + i): arg for (i, arg) in enumerate(args)}
call = f"{func}(" + ", ".join([chr(97 + i) for i in range(0, len(args))]) + ")"
file = "./aqua/test.aqua"
call = f"{func}(" + ", ".join([chr(97 + i)
for i in range(0, len(args))]) + ")"
command = f"npx aqua run --addr {relay} -f '{call}' -i {file} --sk {sk} -d '{json.dumps(data)}'"
command = f"npx fluence run --relay {relay} -f '{call}' --data '{json.dumps(data)}' --import 'node_modules' --quiet"
print(command)
c = delegator.run(command, block=True)
if len(c.err) != 0:
print(c.err)
result = json.loads(c.out)
print(result)
try:
result = json.loads(c.out)
print(result)
return result
except:
print(c.out)
return c.out
def create_resource(label):
result, error = run_aqua("createResource", [label])
assert result != None, error
return result
def create_resource(label, sk):
result, error = run_aqua("createResource", [label], sk)
assert len(result) == 1, error
return result[0]
def get_peer_id(sk):
return run_aqua("get_peer_id", [], sk)
def get_peer_id():
return run_aqua("get_peer_id", [])
def test_create_resource():
sk = get_sk()
label = "some_label"
result = create_resource(label, sk)
peer_id = get_peer_id(sk)
resource_id = run_aqua("getResourceId", [label, peer_id], sk)
assert(result == resource_id)
label = get_label()
result = create_resource(label)
peer_id = get_peer_id()
resource_id = run_aqua("getResourceId", [label, peer_id])
assert result == resource_id
def test_get_resource():
sk = get_sk()
label = "some_label"
resource_id = create_resource(label, sk)
peer_id = get_peer_id(sk)
result, error = run_aqua("getResource", [resource_id], sk)
assert len(result) == 1, error
resource = result[0]
assert resource["id"] == resource_id, error
assert resource["owner_peer_id"] == peer_id, error
assert resource["label"] == label, error
label = get_label()
resource_id = create_resource(label)
peer_id = get_peer_id()
result, error = run_aqua("getResource", [resource_id])
assert result != None, error
assert result["id"] == resource_id, error
assert result["owner_peer_id"] == peer_id, error
assert result["label"] == label, error
def test_register_record_unregister():
sk = get_sk()
relay = get_relay()
label = "some_label"
relay = get_random_relay()
label = get_label()
value = "some_value"
peer_id = get_peer_id(sk)
peer_id = get_peer_id()
service_id = "id"
resource_id = create_resource(label, sk)
result, error = run_aqua("registerService", [resource_id, value, peer_id, service_id], sk, relay)
resource_id = create_resource(label)
result, error = run_aqua(
"registerService", [resource_id, value, peer_id, service_id], relay)
assert result, error
# we want at least 1 successful response
result, error = run_aqua("resolveResource", [resource_id, 1], sk, relay)
assert len(result) == 1, error
result, error = run_aqua("resolveResource", [resource_id, 1], relay)
assert result != None, error
records = result[0]
assert len(records) == 1, "records not found"
assert len(result) == 1, "records not found"
record = records[0]
record = result[0]
assert record["metadata"]["key_id"] == resource_id
assert record["metadata"]["issued_by"] == peer_id
assert record["metadata"]["peer_id"] == peer_id
assert record["metadata"]["service_id"] == [service_id]
result, error = run_aqua("unregisterService", [resource_id, peer_id], sk, relay)
result, error = run_aqua("unregisterService", [resource_id, peer_id],
relay)
assert result, error
result, error = run_aqua("resolveResource", [resource_id, 2], sk, relay)
assert len(result) == 1, error
assert len(result[0]) == 0
result, error = run_aqua("resolveResource", [resource_id, 2], relay)
assert result != None, error
assert len(result) == 0
def test_register_unregister_remote_record():
sk = get_sk()
relay = get_relay()
label = "some_label"
relay = get_random_relay()
label = get_label()
value = "some_value"
issuer_peer_id = get_peer_id(sk)
issuer_peer_id = get_peer_id()
peer_id = get_random_peer_id()
service_id = "id"
resource_id = create_resource(label, sk)
result, error = run_aqua("registerService", [resource_id, value, peer_id, service_id], sk, relay)
resource_id = create_resource(label)
result, error = run_aqua(
"registerService", [resource_id, value, peer_id, service_id], relay)
assert result, error
result, error = run_aqua("resolveResource", [resource_id, 2], sk, relay)
assert len(result) == 1, error
result, error = run_aqua("resolveResource", [resource_id, 2], relay)
assert result != None, error
records = result[0]
assert len(records) == 1, "records not found"
assert len(result) == 1, "records not found"
record = records[0]
record = result[0]
assert record["metadata"]["key_id"] == resource_id
assert record["metadata"]["issued_by"] == issuer_peer_id
assert record["metadata"]["peer_id"] == peer_id
assert record["metadata"]["service_id"] == [service_id]
result, error = run_aqua("unregisterService", [resource_id, peer_id], sk, relay)
result, error = run_aqua("unregisterService", [resource_id, peer_id],
relay)
assert result, error
result, error = run_aqua("resolveResource", [resource_id, 2], sk, relay)
assert len(result) == 1, error
assert len(result[0]) == 0
result, error = run_aqua("resolveResource", [resource_id, 2], relay)
assert result != None, error
assert len(result) == 0

View File

@ -1,7 +0,0 @@
import delegator
def test_aqua_version():
c = delegator.run(f"npx aqua --version", block=True)
print(f"Aqua version: {c.out}")
assert True

View File

@ -0,0 +1,7 @@
import delegator
def test_fluence_cli_version():
c = delegator.run(f"npx fluence --version", block=True)
print(f"Fluence CLI version: {c.out}")
assert True