Skip to content

Commit 8983b25

Browse files
committed
Add local charm and bundle for the integration test
1 parent 96e2a3d commit 8983b25

5 files changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
applications:
2+
test1:
3+
charm: "../charm-manifest"
4+
num_units: 1
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
options:
2+
status:
3+
type: string
4+
default: "active"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
status="$(config-get status)"
4+
5+
if [[ "$status" == "error" ]]; then
6+
if [[ -e .errored ]]; then
7+
status="active"
8+
else
9+
touch .errored
10+
exit 1
11+
fi
12+
fi
13+
status-set "$status"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
analysis:
2+
attributes:
3+
- name: language
4+
result: python
5+
- name: framework
6+
result: operator
7+
bases:
8+
- architectures:
9+
- amd64
10+
channel: '20.04'
11+
name: ubuntu
12+
charmcraft-started-at: '2021-08-20T08:09:00.639806Z'
13+
charmcraft-version: 1.2.1
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: charm
2+
summary: "test"
3+
description: "test"
4+
maintainers: ["test"]

0 commit comments

Comments
 (0)