
1. Change embedded structs to pointers so json omitempty will behave as expected and omit empty structs from ws messages 2. Add dummy airshipui.json config file for testing 3. Add testutil package to build dummy config objects 4. Add tests for configs package 5. Add tests for webservice package 6. Add tests for integrations/ctl package Change-Id: I1a2ac543898cbbae96c764a983e7e9b73946a9d9
74 lines
1.8 KiB
YAML
74 lines
1.8 KiB
YAML
apiVersion: airshipit.org/v1alpha1
|
|
bootstrapInfo:
|
|
default:
|
|
builder:
|
|
networkConfigFileName: network-config
|
|
outputMetadataFileName: output-metadata.yaml
|
|
userDataFileName: user-data
|
|
container:
|
|
containerRuntime: docker
|
|
image: quay.io/airshipit/isogen:latest-debian_stable
|
|
volume: /srv/iso:/config
|
|
remoteDirect:
|
|
isoUrl: http://localhost:8099/debian-custom.iso
|
|
dummy_bootstrap_config:
|
|
builder:
|
|
networkConfigFileName: netconfig
|
|
outputMetadataFileName: output-metadata.yaml
|
|
userDataFileName: user-data
|
|
container:
|
|
containerRuntime: docker
|
|
image: dummy_image:dummy_tag
|
|
volume: /dummy:dummy
|
|
clusters:
|
|
kubernetes:
|
|
clusterType:
|
|
target:
|
|
bootstrapInfo: default
|
|
clusterKubeconf: kubernetes_target
|
|
managementConfiguration: default
|
|
contexts:
|
|
admin@kubernetes:
|
|
contextKubeconf: kubernetes_target
|
|
currentContext: admin@kubernetes
|
|
kind: Config
|
|
managementConfiguration:
|
|
default:
|
|
insecure: true
|
|
systemActionRetries: 30
|
|
systemRebootDelay: 30
|
|
type: redfish
|
|
dummy_management_config:
|
|
insecure: true
|
|
type: redfish
|
|
manifests:
|
|
default:
|
|
primaryRepositoryName: primary
|
|
repositories:
|
|
primary:
|
|
checkout:
|
|
branch: master
|
|
commitHash: ""
|
|
force: false
|
|
tag: ""
|
|
url: https://opendev.org/airship/treasuremap
|
|
subPath: treasuremap/manifests/site
|
|
targetPath: /tmp/default
|
|
dummy_manifest:
|
|
primaryRepositoryName: primary
|
|
repositories:
|
|
primary:
|
|
auth:
|
|
sshKey: testdata/test-key.pem
|
|
type: ssh-key
|
|
checkout:
|
|
branch: ""
|
|
commitHash: ""
|
|
force: false
|
|
tag: v1.0.1
|
|
url: http://dummy.url.com/manifests.git
|
|
subPath: manifests/site/test-site
|
|
targetPath: /var/tmp/
|
|
users:
|
|
admin: {}
|