Skip to content

Commit

Permalink
Prepare release 1.0.0 (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano authored Aug 11, 2021
1 parent 545b1fb commit 8c259a9
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.15.7
1.16.7
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/elastic/package-registry/compare/v0.21.0...master)
## [Unreleased](https://github.com/elastic/package-registry/compare/v1.0.0...master)

### Breaking changes

Expand All @@ -16,6 +16,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Known Issues

## [1.0.0](https://github.com/elastic/package-registry/compare/v0.21.0...v1.0.0)

### Breaking changes

### Bugfixes

### Added

* Update Go to 1.16.7 [706](https://github.com/elastic/package-registry/pull/706).

### Deprecated

### Known Issues

## [0.21](https://github.com/elastic/package-registry/compare/v0.20.0...v0.21.0)

### Breaking changes
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ variations and will also get more complex over time.

## Running

There are several options to run this.
There are several options to run this for development purposes.

### Go command

Expand Down Expand Up @@ -178,7 +178,9 @@ Another Docker tag with the git branch or tag name
* `docker.elastic.co/package-registry/package-registry:pr-111`
* `docker.elastic.co/package-registry/package-registry:v0.2.0`

If you want to run the most recent registry, run the master tag.
If you want to run the most recent registry for development, run the master tag.

These images contain only the package registry, they don't contain any package.

### Testing with Kibana

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/elastic/package-registry

go 1.15
go 1.16

require (
github.com/Masterminds/semver/v3 v3.1.0
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (

const (
serviceName = "package-registry"
version = "0.21.1"
version = "1.0.0"
)

var (
Expand Down
23 changes: 23 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,29 @@ func TestArtifacts(t *testing.T) {
}
}

func TestStatics(t *testing.T) {
packagesBasePaths := []string{"./testdata/package"}

staticHandler := staticHandler(packagesBasePaths, "", testCacheTime)

tests := []struct {
endpoint string
path string
file string
handler func(w http.ResponseWriter, r *http.Request)
}{
{"/example/1.0.0/docs/README.md", "", "example-1.0.0-README.md", staticHandler},
{"/example/1.0.0/img/kibana-envoyproxy.jpg", "", "example-1.0.0-screenshot.jpg", staticHandler},
}

for _, test := range tests {
t.Run(test.endpoint, func(t *testing.T) {
runEndpoint(t, test.endpoint, test.path, test.file, test.handler)
})
}

}

func TestPackageIndex(t *testing.T) {
packagesBasePaths := []string{"./testdata/package"}

Expand Down
3 changes: 3 additions & 0 deletions testdata/generated/example-1.0.0-README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Example readme

This is a readme.
Binary file added testdata/generated/example-1.0.0-screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion testdata/generated/index.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"service.name": "package-registry",
"service.version": "0.21.1"
"service.version": "1.0.0"
}

0 comments on commit 8c259a9

Please sign in to comment.