Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Merge f59d594 into 52d863e
Browse files Browse the repository at this point in the history
  • Loading branch information
csomh committed Jul 22, 2019
2 parents 52d863e + f59d594 commit e7cc941
Show file tree
Hide file tree
Showing 7 changed files with 153 additions and 309 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,57 +173,6 @@ spec:
fieldPath: metadata.name
customresourcedefinitions:
owned:
- name: etcdclusters.etcd.database.coreos.com
version: v1beta2
kind: EtcdCluster
displayName: etcd Cluster
description: Represents a cluster of etcd nodes.
resources:
- kind: Service
version: v1
- kind: Pod
version: v1
specDescriptors:
- description: The desired number of member Pods for the etcd cluster.
displayName: Size
path: size
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:podCount'
- description: Limits describes the minimum/maximum amount of compute resources required/allowed
displayName: Resource Requirements
path: pod.resources
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:resourceRequirements'
statusDescriptors:
- description: The status of each of the member Pods for the etcd cluster.
displayName: Member Status
path: members
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:podStatuses'
- description: The service at which the running etcd cluster can be accessed.
displayName: Service
path: serviceName
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes:Service'
- description: The current size of the etcd cluster.
displayName: Cluster Size
path: size
- description: The current version of the etcd cluster.
displayName: Current Version
path: currentVersion
- description: 'The target version of the etcd cluster, after upgrading.'
displayName: Target Version
path: targetVersion
- description: The current status of the etcd cluster.
displayName: Status
path: phase
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes.phase'
- description: Explanation for the current status of the cluster.
displayName: Status Details
path: reason
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes.phase:reason'
- name: etcdbackups.etcd.database.coreos.com
version: v1beta2
kind: EtcdBackup
Expand Down Expand Up @@ -256,36 +205,3 @@ spec:
path: reason
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes.phase:reason'
- name: etcdrestores.etcd.database.coreos.com
version: v1beta2
kind: EtcdRestore
displayName: etcd Restore
description: Represents the intent to restore an etcd cluster from a backup.
specDescriptors:
- description: References the EtcdCluster which should be restored,
displayName: etcd Cluster
path: etcdCluster.name
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes:EtcdCluster'
- 'urn:alm:descriptor:text'
- description: The full AWS S3 path where the backup is saved.
displayName: S3 Path
path: s3.path
x-descriptors:
- 'urn:alm:descriptor:aws:s3:path'
- description: The name of the secret object that stores the AWS credential and config files.
displayName: AWS Secret
path: s3.awsSecret
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes:Secret'
statusDescriptors:
- description: Indicates if the restore was successful.
displayName: Succeeded
path: succeeded
x-descriptors:
- 'urn:alm:descriptor:text'
- description: Indicates the reason for any restore related failures.
displayName: Reason
path: reason
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes.phase:reason'
Original file line number Diff line number Diff line change
Expand Up @@ -173,57 +173,6 @@ spec:
fieldPath: metadata.name
customresourcedefinitions:
owned:
- name: etcdclusters.etcd.database.coreos.com
version: v1beta2
kind: EtcdCluster
displayName: etcd Cluster
description: Represents a cluster of etcd nodes.
resources:
- kind: Service
version: v1
- kind: Pod
version: v1
specDescriptors:
- description: The desired number of member Pods for the etcd cluster.
displayName: Size
path: size
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:podCount'
- description: Limits describes the minimum/maximum amount of compute resources required/allowed
displayName: Resource Requirements
path: pod.resources
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:resourceRequirements'
statusDescriptors:
- description: The status of each of the member Pods for the etcd cluster.
displayName: Member Status
path: members
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:podStatuses'
- description: The service at which the running etcd cluster can be accessed.
displayName: Service
path: serviceName
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes:Service'
- description: The current size of the etcd cluster.
displayName: Cluster Size
path: size
- description: The current version of the etcd cluster.
displayName: Current Version
path: currentVersion
- description: 'The target version of the etcd cluster, after upgrading.'
displayName: Target Version
path: targetVersion
- description: The current status of the etcd cluster.
displayName: Status
path: phase
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes.phase'
- description: Explanation for the current status of the cluster.
displayName: Status Details
path: reason
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes.phase:reason'
- name: etcdbackups.etcd.database.coreos.com
version: v1beta2
kind: EtcdBackup
Expand Down Expand Up @@ -256,36 +205,3 @@ spec:
path: reason
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes.phase:reason'
- name: etcdrestores.etcd.database.coreos.com
version: v1beta2
kind: EtcdRestore
displayName: etcd Restore
description: Represents the intent to restore an etcd cluster from a backup.
specDescriptors:
- description: References the EtcdCluster which should be restored,
displayName: etcd Cluster
path: etcdCluster.name
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes:EtcdCluster'
- 'urn:alm:descriptor:text'
- description: The full AWS S3 path where the backup is saved.
displayName: S3 Path
path: s3.path
x-descriptors:
- 'urn:alm:descriptor:aws:s3:path'
- description: The name of the secret object that stores the AWS credential and config files.
displayName: AWS Secret
path: s3.awsSecret
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes:Secret'
statusDescriptors:
- description: Indicates if the restore was successful.
displayName: Succeeded
path: succeeded
x-descriptors:
- 'urn:alm:descriptor:text'
- description: Indicates the reason for any restore related failures.
displayName: Reason
path: reason
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes.phase:reason'
125 changes: 0 additions & 125 deletions tests/integration/flatten/flatten_test.py

This file was deleted.

37 changes: 37 additions & 0 deletions tests/integration/push_archive/push_archive_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,43 @@ def test_initial_upload(omps, quay, tmp_path):
assert releases[0]['release'] == '1.0.0'


def test_nested_manifest(omps, quay, tmp_path):
"""
When the manifest data in a zip file has a nested structure,
and the manifest data is pushed to Quay using the ZIP-file endpoint,
then pushing the data is successful.
"""
version = '1.0.0'
quay.delete(test_env['test_namespace'], test_env['test_package'])
archive = shutil.make_archive(tmp_path / 'archive', 'zip',
'tests/integration/artifacts/nested/')

response = omps.upload(organization=test_env['test_namespace'],
repo=test_env['test_package'], archive=archive)

assert response.status_code == requests.codes.ok
assert response.json() == {
'extracted_files': [
'0.6.1/int-testcluster.crd.yaml',
'0.6.1/int-testoperator.clusterserviceversion.yaml',
'0.9.0/int-testbackup.crd.yaml',
'0.9.0/int-testcluster.crd.yaml',
'0.9.0/int-testoperator.v0.9.0.clusterserviceversion.yaml',
'0.9.0/int-testrestore.crd.yaml',
'0.9.2/int-testbackup.crd.yaml',
'0.9.2/int-testoperator.v0.9.2.clusterserviceversion.yaml',
'int-test.package.yaml'
],
'organization': test_env['test_namespace'],
'repo': test_env['test_package'],
'version': version,
}
assert quay.get_release(test_env['test_namespace'],
test_env['test_package'],
version,
authorization=None)


def test_upload_with_version(omps, quay, tmp_path):
"""
When specifying the version for an upload,
Expand Down
Loading

0 comments on commit e7cc941

Please sign in to comment.