-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Brooks Townsend <[email protected]>
- Loading branch information
1 parent
82146bc
commit df30a4e
Showing
12 changed files
with
258 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: core.oam.dev/v1beta1 | ||
kind: Application | ||
metadata: | ||
name: both-props | ||
annotations: | ||
description: 'Contains a component with image and application' | ||
spec: | ||
components: | ||
- name: httpserver | ||
type: capability | ||
properties: | ||
image: pull-from-me | ||
application: | ||
name: wheee | ||
component: httpserver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: core.oam.dev/v1beta1 | ||
kind: Application | ||
metadata: | ||
name: some-nonexistant-app | ||
annotations: | ||
description: 'Manifest that refers to a nonexistant app' | ||
spec: | ||
components: | ||
- name: hello | ||
type: component | ||
properties: | ||
image: ghcr.io/wasmcloud/components/http-hello-world-rust:0.1.0 | ||
traits: | ||
- type: spreadscaler | ||
properties: | ||
instances: 12 | ||
- name: httpserver | ||
type: capability | ||
properties: | ||
application: | ||
name: some-nonexistant-app | ||
component: httpserver | ||
traits: | ||
- type: link | ||
properties: | ||
namespace: wasi | ||
package: http | ||
interfaces: [incoming-handler] | ||
target: | ||
name: hello | ||
source: | ||
config: | ||
- name: httpaddr | ||
properties: | ||
address: 0.0.0.0:8080 |
35 changes: 35 additions & 0 deletions
35
tests/fixtures/manifests/shared/no_matching_component.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: core.oam.dev/v1beta1 | ||
kind: Application | ||
metadata: | ||
name: no-matching-component | ||
annotations: | ||
description: 'Manifest that refers to a nonexistant component' | ||
spec: | ||
components: | ||
- name: hello | ||
type: component | ||
properties: | ||
image: ghcr.io/wasmcloud/components/http-hello-world-rust:0.1.0 | ||
traits: | ||
- type: spreadscaler | ||
properties: | ||
instances: 12 | ||
- name: httpserver | ||
type: capability | ||
properties: | ||
application: | ||
name: shared-http | ||
component: some-nonexistant-component | ||
traits: | ||
- type: link | ||
properties: | ||
namespace: wasi | ||
package: http | ||
interfaces: [incoming-handler] | ||
target: | ||
name: hello | ||
source: | ||
config: | ||
- name: httpaddr | ||
properties: | ||
address: 0.0.0.0:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: core.oam.dev/v1beta1 | ||
kind: Application | ||
metadata: | ||
name: no-props | ||
annotations: | ||
description: 'Contains a component with neither image and application' | ||
spec: | ||
components: | ||
- name: httpserver | ||
type: capability | ||
properties: | ||
config: | ||
- name: log | ||
properties: | ||
level: info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: core.oam.dev/v1beta1 | ||
kind: Application | ||
metadata: | ||
name: not-shared-http | ||
annotations: | ||
description: 'My Precious! O my Precious! We needs it. Must have the precious. They stole it from us' | ||
spec: | ||
components: | ||
- name: httpserver | ||
type: capability | ||
properties: | ||
image: ghcr.io/wasmcloud/http-server:0.23.0 | ||
traits: | ||
- type: spreadscaler | ||
properties: | ||
instances: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: core.oam.dev/v1beta1 | ||
kind: Application | ||
metadata: | ||
name: not-shared-http-dev | ||
annotations: | ||
description: 'A Hello World app that tries to use a not shared component' | ||
spec: | ||
components: | ||
- name: hello | ||
type: component | ||
properties: | ||
image: ghcr.io/wasmcloud/components/http-hello-world-rust:0.1.0 | ||
traits: | ||
- type: spreadscaler | ||
properties: | ||
instances: 12 | ||
- name: httpserver | ||
type: capability | ||
properties: | ||
application: | ||
name: not-shared-http | ||
component: httpserver | ||
traits: | ||
- type: link | ||
properties: | ||
namespace: wasi | ||
package: http | ||
interfaces: [incoming-handler] | ||
target: | ||
name: hello | ||
source: | ||
config: | ||
- name: httpaddr | ||
properties: | ||
address: 0.0.0.0:8080 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.